]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
imx6: drop duplicated bss memset and board_init_r() call
authorAnatolij Gustschin <agust@denx.de>
Mon, 28 Aug 2017 18:58:38 +0000 (20:58 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 18 Sep 2017 15:15:28 +0000 (17:15 +0200)
bss section is cleared in crt0.S. board_init_r() is also
entered from crt0 code.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: Nikita Kiryanov <nikita@compulab.co.il>
Cc: Jagan Teki <jagan@amarulasolutions.com>
Cc: Tim Harvey <tharvey@gateworks.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Lukasz Majewski <lukma@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
board/bachmann/ot1200/ot1200_spl.c
board/compulab/cm_fx6/spl.c
board/engicam/common/spl.c
board/gateworks/gw_ventana/gw_ventana_spl.c
board/kosagi/novena/novena_spl.c
board/liebherr/mccmon6/spl.c
board/udoo/udoo_spl.c
board/wandboard/spl.c

index 9d28da4ba410ec18c22f378346dcbb73d204926c..f3dff95710aa609f38599ddfa14c0faca818babd 100644 (file)
@@ -151,10 +151,4 @@ void board_init_f(ulong dummy)
 
        /* configure MMDC for SDRAM width/size and per-model calibration */
        ot1200_spl_dram_init();
-
-       /* Clear the BSS. */
-       memset(__bss_start, 0, __bss_end - __bss_start);
-
-       /* load/boot image from boot device */
-       board_init_r(NULL, 0);
 }
index bba977ff8e2979eabcc811bde2a44f0a0354ba54..56aac60239cfabceb7f19b77956fca82f7417743 100644 (file)
@@ -336,9 +336,6 @@ void board_init_f(ulong dummy)
                puts("!!!ERROR!!! DRAM detection failed!!!\n");
                hang();
        }
-
-       memset(__bss_start, 0, __bss_end - __bss_start);
-       board_init_r(NULL, 0);
 }
 
 void board_boot_order(u32 *spl_boot_list)
index 6964c131d90dd660bb6ef0d5f56c86b4cb319877..8711418fb4724e6e3dd7bba575df78214e3baec5 100644 (file)
@@ -384,10 +384,4 @@ void board_init_f(ulong dummy)
 
        /* DDR initialization */
        spl_dram_init();
-
-       /* Clear the BSS. */
-       memset(__bss_start, 0, __bss_end - __bss_start);
-
-       /* load/boot image from boot device */
-       board_init_r(NULL, 0);
 }
index c2e370ba0be7dc48f43c9a6eb370d324651c884a..bdbe5e70270eb8684ecd07cfba37c14b66a5aa89 100644 (file)
@@ -626,9 +626,6 @@ void board_init_f(ulong dummy)
        spl_dram_init(8 << ventana_info.sdram_width,
                      16 << ventana_info.sdram_size,
                      board_model);
-
-       /* Clear the BSS. */
-       memset(__bss_start, 0, __bss_end - __bss_start);
 }
 
 void board_boot_order(u32 *spl_boot_list)
index 512f06da76b6565fd9d6ddea0db11fa9a0f08188..b4a68da88f239329ea642148823bdd60d50e583d 100644 (file)
@@ -596,10 +596,4 @@ void board_init_f(ulong dummy)
        udelay(100);
        mmdc_do_write_level_calibration(&novena_ddr_info);
        mmdc_do_dqs_calibration(&novena_ddr_info);
-
-       /* Clear the BSS. */
-       memset(__bss_start, 0, __bss_end - __bss_start);
-
-       /* load/boot image from boot device */
-       board_init_r(NULL, 0);
 }
index a2f804db8fee1f70a0468ae155f8c0177b5b21b9..196da46df9a0d3652020f11751624fcebbcdda79 100644 (file)
@@ -296,11 +296,5 @@ void board_init_f(ulong dummy)
 
        /* DDR initialization */
        spl_dram_init();
-
-       /* Clear the BSS. */
-       memset(__bss_start, 0, __bss_end - __bss_start);
-
-       /* load/boot image from boot device */
-       board_init_r(NULL, 0);
 }
 #endif
index 3645969e4341ecf348611496a08a97d23c96ebb3..694055bd2e51aee22d9f8fafe43614a236ebd154 100644 (file)
@@ -252,11 +252,5 @@ void board_init_f(ulong dummy)
 
        /* DDR initialization */
        spl_dram_init();
-
-       /* Clear the BSS. */
-       memset(__bss_start, 0, __bss_end - __bss_start);
-
-       /* load/boot image from boot device */
-       board_init_r(NULL, 0);
 }
 #endif
index 99a02865ecf63ffacab74bef188e8b50a60d0c2a..00c75d06826ad5e7562abbf518741a00e4cf63ed 100644 (file)
@@ -300,11 +300,5 @@ void board_init_f(ulong dummy)
 
        /* DDR initialization */
        spl_dram_init();
-
-       /* Clear the BSS. */
-       memset(__bss_start, 0, __bss_end - __bss_start);
-
-       /* load/boot image from boot device */
-       board_init_r(NULL, 0);
 }
 #endif