ARM: imx6qlogic: Cleanup board_init_f
authorAdam Ford <aford173@gmail.com>
Wed, 7 Aug 2019 17:05:58 +0000 (12:05 -0500)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:36:37 +0000 (16:36 +0200)
Per the workflow found in crt0.S, we don't need to clear BSS in
board_init_f nor do we need to call board_init_r since that will be
done for us from main when we return from board_init_f.

This patch removes the unneeded function calls from board_init_f.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
board/logicpd/imx6/imx6logic.c

index 7a59b89d94a201847f1ac8ffcc13bf3acf173624..36ebe12773ad6442a13cd44de47d4bbc00895666 100644 (file)
@@ -350,11 +350,5 @@ void board_init_f(ulong dummy)
 
        /* UART clocks enabled and gd valid - init serial console */
        preloader_console_init();
-
-       /* Clear the BSS. */
-       memset(__bss_start, 0, __bss_end - __bss_start);
-
-       /* load/boot image from boot device */
-       board_init_r(NULL, 0);
 }
 #endif