Skip to content
Snippets Groups Projects
Commit 60985bba authored by Axel Lin's avatar Axel Lin Committed by Tom Warren
Browse files

tegra: Define CONFIG_SKIP_LOWLEVEL_INIT for SPL build


Then we can get rid of the #ifdef CONFIG_TEGRA guard in cpu_init_crit.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Tested-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarTom Warren <twarren@nvidia.com>
parent 578e6378
No related branches found
No related tags found
No related merge requests found
...@@ -247,7 +247,6 @@ c_runtime_cpu_setup: ...@@ -247,7 +247,6 @@ c_runtime_cpu_setup:
#ifndef CONFIG_SKIP_LOWLEVEL_INIT #ifndef CONFIG_SKIP_LOWLEVEL_INIT
cpu_init_crit: cpu_init_crit:
#if !defined(CONFIG_TEGRA)
mov ip, lr mov ip, lr
/* /*
* before relocating, we have to setup RAM timing * before relocating, we have to setup RAM timing
...@@ -256,7 +255,6 @@ cpu_init_crit: ...@@ -256,7 +255,6 @@ cpu_init_crit:
*/ */
bl lowlevel_init bl lowlevel_init
mov lr, ip mov lr, ip
#endif
mov pc, lr mov pc, lr
#endif /* CONFIG_SKIP_LOWLEVEL_INIT */ #endif /* CONFIG_SKIP_LOWLEVEL_INIT */
......
...@@ -157,6 +157,8 @@ ...@@ -157,6 +157,8 @@
/* overrides for SPL build here */ /* overrides for SPL build here */
#ifdef CONFIG_SPL_BUILD #ifdef CONFIG_SPL_BUILD
#define CONFIG_SKIP_LOWLEVEL_INIT
/* remove devicetree support */ /* remove devicetree support */
#ifdef CONFIG_OF_CONTROL #ifdef CONFIG_OF_CONTROL
#undef CONFIG_OF_CONTROL #undef CONFIG_OF_CONTROL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment