From 8ed6be19fcd78bc598332605d562c17887c26da2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Wed, 25 Sep 2013 16:07:42 +0200 Subject: [PATCH] tx48: call save_omap_boot_params() --- board/karo/tx48/spl.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/board/karo/tx48/spl.c b/board/karo/tx48/spl.c index 38352627dc..8f157f3f1e 100644 --- a/board/karo/tx48/spl.c +++ b/board/karo/tx48/spl.c @@ -679,6 +679,15 @@ void s_init(void) struct uart_sys *uart_base = (struct uart_sys *)DEFAULT_UART_BASE; int timeout = 1000; + gd = &gdata; + + /* + * Save the boot parameters passed from romcode. + * We cannot delay the saving further than this, + * to prevent overwrites. + */ + save_omap_boot_params(); + /* Setup the PLLs and the clocks for the peripherals */ pll_init(); @@ -699,14 +708,11 @@ void s_init(void) writel((readl(&uart_base->uartsyscfg) & ~UART_IDLE_MODE_MASK) | UART_IDLE_MODE(1), &uart_base->uartsyscfg); - gd = &gdata; - preloader_console_init(); if (timeout <= 0) printf("Timeout waiting for UART RESET\n"); - timer_init(); tx48_ddr_init(); -- 2.39.5