]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
tx48: call save_omap_boot_params()
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 25 Sep 2013 14:07:42 +0000 (16:07 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 25 Sep 2013 14:07:42 +0000 (16:07 +0200)
board/karo/tx48/spl.c

index 38352627dcab71767e9bf68748dcece446590989..8f157f3f1e039b884acf7e1159bad18739bd6d26 100644 (file)
@@ -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();