mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-03 11:41:38 +02:00
omap3: implement boot parameter saving
Implements the saving of boot params passed by OMAP3 ROM code. Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
This commit is contained in:
parent
3f6a4922d4
commit
409ef1bcfb
@ -194,8 +194,12 @@ static void mmc_load_image(void)
|
|||||||
printf("spl: mmc init failed: err - %d\n", err);
|
printf("spl: mmc init failed: err - %d\n", err);
|
||||||
hang();
|
hang();
|
||||||
}
|
}
|
||||||
|
/* For OMAP3 there is no automatic boot mode detection */
|
||||||
|
#ifdef CONFIG_OMAP34XX
|
||||||
|
boot_mode = CONFIG_SYS_MMC_SD_BOOTMODE;
|
||||||
|
#else
|
||||||
boot_mode = omap_boot_mode();
|
boot_mode = omap_boot_mode();
|
||||||
|
#endif
|
||||||
if (boot_mode == MMCSD_MODE_RAW) {
|
if (boot_mode == MMCSD_MODE_RAW) {
|
||||||
debug("boot mode - RAW\n");
|
debug("boot mode - RAW\n");
|
||||||
mmc_load_image_raw(mmc);
|
mmc_load_image_raw(mmc);
|
||||||
|
@ -37,8 +37,13 @@ _TEXT_BASE:
|
|||||||
|
|
||||||
.global save_boot_params
|
.global save_boot_params
|
||||||
save_boot_params:
|
save_boot_params:
|
||||||
#warning "Please implement save_boot_params for OMAP3"
|
#ifdef CONFIG_SPL_BUILD
|
||||||
bx lr
|
ldr r4, =omap3_boot_device
|
||||||
|
ldr r5, [r0, #0x4]
|
||||||
|
and r5, r5, #0xff
|
||||||
|
str r5, [r4]
|
||||||
|
#endif
|
||||||
|
bx lr
|
||||||
|
|
||||||
.global omap3_gp_romcode_call
|
.global omap3_gp_romcode_call
|
||||||
omap3_gp_romcode_call:
|
omap3_gp_romcode_call:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user