summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-01-24 04:27:58 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-02-12 10:11:22 +0100
commit204705111ca10f52f62e1a02ba567d8fc33a6d1e (patch)
treebd236624aa2d0782df29745962eade2c4e5ec47e /arch
parentd652a344a009854b72d7df97c11d2582b9e11c9a (diff)
downloadu-boot-imx-204705111ca10f52f62e1a02ba567d8fc33a6d1e.zip
u-boot-imx-204705111ca10f52f62e1a02ba567d8fc33a6d1e.tar.gz
u-boot-imx-204705111ca10f52f62e1a02ba567d8fc33a6d1e.tar.bz2
arm: omap3: Define save_boot_params in lowlevel_init.S for SPL only
Wrap the function save_boot_params with CONFIG_SPL_BUILD. This will allow non-SPL boards to define their own save_boot_params functions in U-Boot itself. Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/omap3/lowlevel_init.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/omap3/lowlevel_init.S b/arch/arm/cpu/armv7/omap3/lowlevel_init.S
index 2f6930b..c42c5dd 100644
--- a/arch/arm/cpu/armv7/omap3/lowlevel_init.S
+++ b/arch/arm/cpu/armv7/omap3/lowlevel_init.S
@@ -35,15 +35,15 @@
_TEXT_BASE:
.word CONFIG_SYS_TEXT_BASE /* sdram load addr from config.mk */
+#ifdef CONFIG_SPL_BUILD
.global save_boot_params
save_boot_params:
-#ifdef CONFIG_SPL_BUILD
ldr r4, =omap3_boot_device
ldr r5, [r0, #0x4]
and r5, r5, #0xff
str r5, [r4]
-#endif
bx lr
+#endif
.global omap3_gp_romcode_call
omap3_gp_romcode_call: