u-boot-brain/arch/arm/mach-davinci
Sekhar Nori 2a766db938 ARM: davinci: SPL: fix BSS initialization
U-Boot README recommends initializing SDRAM in board_init_f(). DA850
was doing it as part of board_init_r() (through call to spl_board_init()
which calls arch_cpu_init() which calls da850_ddr_setup())

This worked fine till commit 15b8c75058 ("davinci:
da850evm/omapl138-lcdk: Move BSS to SDRAM because SRAM is full") moved
BSS to SDRAM.

Functions like mmc_initialize() called in board_init_r() assume BSS is
available. Since SDRAM was not initialized when arch/arm/lib/crt0.S tried
to initialize BSS to 0, BSS is not initialized correctly.

Fix this by simply calling arch_cpu_init() from board_init_f(). Also move
preloader_console_init() there to help debug issues with board_init_r().

With this spl_board_init() is no longer needed, we remove it.

Tested using MMC/SD boot on OMAP-L138 LCDK board.

Tested-by: Adam Ford <aford173@gmail.com> #da850evm
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Tested-by: Peter Howard <phoward@gme.net.au> #omapl138_lcdk
2019-06-05 12:14:02 -04:00
..
include/mach arm: davinci: remove leftover code for dm* SoCs 2019-05-04 13:04:10 -04:00
config.mk SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cpu.c arm: davinci: remove leftover code for dm* SoCs 2019-05-04 13:04:10 -04:00
da850_lowlevel.c ARM: da850evm_direct_nor_defconfig: Enable DM_SERIAL 2018-09-29 08:07:28 -04:00
da850_pinmux.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig ipam390: remove board 2019-05-28 13:58:06 -04:00
lowlevel_init.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile arm: davinci: remove dead code for PHYs used by DaVinci DM* boards 2019-05-04 13:04:06 -04:00
misc.c arm: davinci: remove leftover code for dm* SoCs 2019-05-04 13:04:10 -04:00
pinmux.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
psc.c arm: davinci: remove leftover code for dm* SoCs 2019-05-04 13:04:10 -04:00
reset.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spl.c ARM: davinci: SPL: fix BSS initialization 2019-06-05 12:14:02 -04:00
timer.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00