]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
sunxi: Move SPL s_init() code to board_init_f()
authorSimon Glass <sjg@chromium.org>
Tue, 23 Dec 2014 19:04:52 +0000 (12:04 -0700)
committerTom Rini <trini@ti.com>
Fri, 16 Jan 2015 19:52:52 +0000 (14:52 -0500)
commitf630974ccb3ce93e9607a3354e9acb266a8b7e95
tree2252244c1709bd613d46dad9b5666b773b13de9f
parent480ca13e74ddec62540079ddeb689cf275b3073f
sunxi: Move SPL s_init() code to board_init_f()

The current sunxi implementation uses gdata, which is going away. It also
sets up DRAM before board_init_f() in SPL.

There is really no reason to do much in s_init() since board_init_f() is
called immediately afterwards. The only change is that we need our own
implementation of board_init_f() which sets up DRAM before the BSS (which
is in DRAM) is cleared.

The s_init() code runs once for SPL and again for U-Boot proper. We
shouldn't need to init the clock/timer/gpio/i2c init twice, so just have it
in SPL.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/cpu/armv7/sunxi/board.c