From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 20 Jan 2015 16:40:09 -0500 Subject: [U-Boot] [U-Boot, 2/9] sunxi: Move SPL s_init() code to board_init_f() In-Reply-To: <1419361499-31967-3-git-send-email-sjg@chromium.org> References: <1419361499-31967-3-git-send-email-sjg@chromium.org> Message-ID: <20150120214009.GP10826@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Dec 23, 2014 at 12:04:52PM -0700, Simon Glass wrote: > 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 Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: