X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fti%2Fam335x%2Fboard.c;h=ebddf0c7ca3275034583a3ac0db483575cfe4d39;hb=38d240dcf87923d49607ce2f243a0ac1c62612ca;hp=b371376bc72c0f6d0b5c6118057065a6cd1679e4;hpb=345be0b26734c560e8b33531ab21a1272179c5c3;p=u-boot diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index b371376bc7..ebddf0c7ca 100644 --- a/board/ti/am335x/board.c +++ b/board/ti/am335x/board.c @@ -304,6 +304,15 @@ static struct emif_regs ddr3_evm_emif_reg_data = { */ void s_init(void) { + /* + * Save the boot parameters passed from romcode. + * We cannot delay the saving further than this, + * to prevent overwrites. + */ +#ifdef CONFIG_SPL_BUILD + save_omap_boot_params(); +#endif + /* WDT1 is already running when the bootloader gets control * Disable it to avoid "random" resets */