Skip to content

Commit

Permalink
imx6: drop duplicated bss memset and board_init_r() call
Browse files Browse the repository at this point in the history
bss section is cleared in crt0.S. board_init_r() is also
entered from crt0 code.

Signed-off-by: Anatolij Gustschin <[email protected]>
Cc: Christian Gmeiner <[email protected]>
Cc: Nikita Kiryanov <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Tim Harvey <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: Fabio Estevam <[email protected]>
Reviewed-by: Lukasz Majewski <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Reviewed-by: Fabio Estevam <[email protected]>
  • Loading branch information
vdsao authored and sbabic committed Sep 18, 2017
1 parent 0bfd4f8 commit 30df9f7
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 42 deletions.
6 changes: 0 additions & 6 deletions board/bachmann/ot1200/ot1200_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
3 changes: 0 additions & 3 deletions board/compulab/cm_fx6/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 0 additions & 6 deletions board/engicam/common/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
3 changes: 0 additions & 3 deletions board/gateworks/gw_ventana/gw_ventana_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 0 additions & 6 deletions board/kosagi/novena/novena_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
6 changes: 0 additions & 6 deletions board/liebherr/mccmon6/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 0 additions & 6 deletions board/udoo/udoo_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 0 additions & 6 deletions board/wandboard/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 30df9f7

Please sign in to comment.