u-boot-brain/arch/arm
Tom Rini 87acf194a2 arm:am33xx: Make dram_init call sdram_init() in some contexts
We have two contexts for booting these platforms.  One is SPL which is
roughly: reset, cpu_init_crit, lowlevel_init, s_init, sdram_init, _main,
board_init_f from SPL, ... then U-Boot loads.  The other is a
memory-mapped XIP case (NOR or QSPI) where we do not run an SPL.  In
this case we go, roughly: reset, cpu_init_crit, lowlevel_init, s_init,
_main, regular board_init_f.

In the first case s_init will set a valid gd and then be able to call
sdram_init which in many cases will need i2c (which needs a valid gd for
gd->cur_i2c_bus).  In this second case we must (and are able to and
should) defer sdram_init() into dram_init() called by board_init_f as gd
will have been set in _main and cleared in board_init_f.

Signed-off-by: Tom Rini <trini@ti.com>
2014-06-06 17:46:14 -04:00
..
cpu arm:am33xx: Make dram_init call sdram_init() in some contexts 2014-06-06 17:46:14 -04:00
dts Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master' 2014-06-02 08:43:48 +02:00
imx-common iomux-v3: Add support for mx6sl LVE bit 2014-05-09 15:10:53 +02:00
include/asm omap3: remove remnant macros GPMC_NAND_ECC_LP_x8_LAYOUT and GPMC_NAND_ECC_LP_x16_LAYOUT 2014-06-06 17:46:07 -04:00
lib Merge remote-tracking branch 'u-boot/master' 2014-05-20 10:05:42 +02:00
config.mk build:arm: Remove setting of CROSS_COMPILE environment variable 2014-04-07 20:04:36 +02:00