Skip to content

Commit

Permalink
arm: socfpga: gen5: don't zero bss in board_init_f()
Browse files Browse the repository at this point in the history
The socfpga gen5 SPL manually zeroed bss in board_init_f(). Now that the
DDR driver does not use bss any more, bss is not used before board_init_r()
and we can remove this hack.

bss is normally zeroed by crt0.S, but after board_init_f(), before
board_init_r(). socfpga just had this double-zeroing because it invalidly
used bss in board_init_f() already (during DDR initialization).

Signed-off-by: Simon Goldschmidt <[email protected]>
  • Loading branch information
goldsimon authored and Marek Vasut committed Aug 15, 2019
1 parent 998f7cb commit a89441a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/arm/mach-socfpga/spl_gen5.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ void board_init_f(ulong dummy)
writel(SYSMGR_ECC_OCRAM_DERR | SYSMGR_ECC_OCRAM_EN,
&sysmgr_regs->eccgrp_ocram);

memset(__bss_start, 0, __bss_end - __bss_start);

socfpga_sdram_remap_zero();
socfpga_pl310_clear();

Expand Down

0 comments on commit a89441a

Please sign in to comment.