diff options
| author | Scott Wood <scottwood@freescale.com> | 2012-09-20 19:02:18 -0500 | 
|---|---|---|
| committer | Scott Wood <scottwood@freescale.com> | 2012-11-26 15:41:25 -0600 | 
| commit | c97cd1ba480482e220c5dcef0cd751d21a1bf74e (patch) | |
| tree | 72fc693655e3e8e6b9532a347202103db2d5ff8a /arch/powerpc/cpu/mpc85xx/cpu.c | |
| parent | 4b919725b66152edd8c7cecc9e42864eec12c57d (diff) | |
| download | olio-uboot-2014.01-c97cd1ba480482e220c5dcef0cd751d21a1bf74e.tar.xz olio-uboot-2014.01-c97cd1ba480482e220c5dcef0cd751d21a1bf74e.zip | |
spl/85xx: new SPL support
Update CONFIG_RAMBOOT and CONFIG_NAND_SPL references to accept CONFIG_SPL
and CONFIG_SPL_BUILD, respectively.  CONFIG_NAND_SPL can be removed once
the last mpc85xx nand_spl target is gone.
CONFIG_RAMBOOT will need to remain for other use cases, but it doesn't
seem right to overload it for meaning SPL as well as nand_spl does.  Even
if it's somewhat appropriate for the main u-boot, the SPL itself isn't
(necessarily) ramboot, and we don't have separate configs for SPL and
main u-boot.  It was also inconsistent, as other platforms such as
mpc83xx didn't use CONFIG_RAMBOOT in this way.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx/cpu.c')
| -rw-r--r-- | arch/powerpc/cpu/mpc85xx/cpu.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/arch/powerpc/cpu/mpc85xx/cpu.c b/arch/powerpc/cpu/mpc85xx/cpu.c index db232e64f..78486aab8 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu.c +++ b/arch/powerpc/cpu/mpc85xx/cpu.c @@ -332,7 +332,8 @@ void mpc85xx_reginfo(void)  /* Common ddr init for non-corenet fsl 85xx platforms */  #ifndef CONFIG_FSL_CORENET -#if defined(CONFIG_SYS_RAMBOOT) && !defined(CONFIG_SYS_INIT_L2_ADDR) +#if (defined(CONFIG_SYS_RAMBOOT) || defined(CONFIG_SPL)) && \ +	!defined(CONFIG_SYS_INIT_L2_ADDR)  phys_size_t initdram(int board_type)  {  #if defined(CONFIG_SPD_EEPROM) || defined(CONFIG_DDR_SPD) |