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>
This commit is contained in:
parent
d652a344a0
commit
204705111c
@ -35,15 +35,15 @@
|
|||||||
_TEXT_BASE:
|
_TEXT_BASE:
|
||||||
.word CONFIG_SYS_TEXT_BASE /* sdram load addr from config.mk */
|
.word CONFIG_SYS_TEXT_BASE /* sdram load addr from config.mk */
|
||||||
|
|
||||||
|
#ifdef CONFIG_SPL_BUILD
|
||||||
.global save_boot_params
|
.global save_boot_params
|
||||||
save_boot_params:
|
save_boot_params:
|
||||||
#ifdef CONFIG_SPL_BUILD
|
|
||||||
ldr r4, =omap3_boot_device
|
ldr r4, =omap3_boot_device
|
||||||
ldr r5, [r0, #0x4]
|
ldr r5, [r0, #0x4]
|
||||||
and r5, r5, #0xff
|
and r5, r5, #0xff
|
||||||
str r5, [r4]
|
str r5, [r4]
|
||||||
#endif
|
|
||||||
bx lr
|
bx lr
|
||||||
|
#endif
|
||||||
|
|
||||||
.global omap3_gp_romcode_call
|
.global omap3_gp_romcode_call
|
||||||
omap3_gp_romcode_call:
|
omap3_gp_romcode_call:
|
||||||
|
Loading…
Reference in New Issue
Block a user