diff options
author | Tom Rini <trini@ti.com> | 2013-05-31 12:31:59 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-06-05 08:46:49 -0400 |
commit | 4596dcc1d4ea5763e0f92cf5becd9fc7d4c6e674 (patch) | |
tree | 95efd1376ba2b8e80dd6479fa21f95c9ace56fcd /board/phytec/pcm051/board.c | |
parent | 320d9746d3aa8373b86e8f6331bc7c8c8c87fced (diff) |
am33xx/omap: Move save_omap_boot_params to omap-common/boot-common.c
We need to call the save_omap_boot_params function on am33xx/ti81xx and
other newer TI SoCs, so move the function to boot-common. Only OMAP4+
has the omap_hw_init_context function so add ifdefs to not call it on
am33xx/ti81xx. Call save_omap_boot_params from s_init on am33xx/ti81xx
boards.
Reviewed-by: R Sricharan <r.sricharan@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'board/phytec/pcm051/board.c')
-rw-r--r-- | board/phytec/pcm051/board.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/phytec/pcm051/board.c b/board/phytec/pcm051/board.c index 43d7b6e15ac..93c611dfc6e 100644 --- a/board/phytec/pcm051/board.c +++ b/board/phytec/pcm051/board.c @@ -115,6 +115,15 @@ static struct emif_regs ddr3_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 */ |