Merge with /home/stefan/git/u-boot/yucca-ddr2
This commit is contained in:
@@ -108,6 +108,7 @@
|
||||
*----------------------------------------------------------------------*/
|
||||
#define CONFIG_SPD_EEPROM 1 /* Use SPD EEPROM for setup */
|
||||
#define SPD_EEPROM_ADDRESS {0x51, 0x52} /* SPD i2c spd addresses*/
|
||||
#define CONFIG_DDR_ECC 1 /* with ECC support */
|
||||
#undef CONFIG_STRESS
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
|
||||
@@ -37,8 +37,9 @@
|
||||
#define CONFIG_440 1
|
||||
#define CONFIG_SYS_CLK_FREQ 33333333 /* external freq to pll */
|
||||
|
||||
#define CONFIG_BOARD_EARLY_INIT_F 1 /* call board_early_init_f() */
|
||||
#define CONFIG_BOARD_EARLY_INIT_F 1 /* call board_early_init_f() */
|
||||
#define CONFIG_MISC_INIT_R 1 /* call misc_init_r() */
|
||||
#define CONFIG_ADD_RAM_INFO 1 /* Print additional info */
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
* Base addresses -- Note these are effective addresses where the
|
||||
@@ -132,10 +133,9 @@
|
||||
/*-----------------------------------------------------------------------
|
||||
* DDR SDRAM
|
||||
*----------------------------------------------------------------------*/
|
||||
#undef CONFIG_SPD_EEPROM /* SPD EEPROM init doesn't support DDR2 */
|
||||
#define SPD_EEPROM_ADDRESS {0x52,0x53} /* I2C SPD addresses */
|
||||
#define IIC0_DIMM0_ADDR 0x52
|
||||
#define IIC0_DIMM1_ADDR 0x53
|
||||
#define CONFIG_SPD_EEPROM 1 /* Use SPD EEPROM for setup */
|
||||
#define SPD_EEPROM_ADDRESS {0x53, 0x52} /* SPD i2c spd addresses*/
|
||||
#undef CONFIG_DDR_ECC /* no ECC support for now */
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
* I2C
|
||||
@@ -206,11 +206,6 @@
|
||||
#define CONFIG_NETCONSOLE /* include NetConsole support */
|
||||
#define CONFIG_NET_MULTI /* needed for NetConsole */
|
||||
|
||||
/* Partitions */
|
||||
#define CONFIG_MAC_PARTITION
|
||||
#define CONFIG_DOS_PARTITION
|
||||
#define CONFIG_ISO_PARTITION
|
||||
|
||||
#ifdef DEBUG
|
||||
#define CONFIG_PANIC_HANG
|
||||
#else
|
||||
@@ -219,9 +214,7 @@
|
||||
|
||||
#define CONFIG_COMMANDS (CONFIG_CMD_DFL | \
|
||||
CFG_CMD_ASKENV | \
|
||||
CFG_CMD_CACHE | \
|
||||
CFG_CMD_DHCP | \
|
||||
CFG_CMD_DIAG | \
|
||||
CFG_CMD_ELF | \
|
||||
CFG_CMD_EEPROM | \
|
||||
CFG_CMD_I2C | \
|
||||
@@ -232,7 +225,6 @@
|
||||
CFG_CMD_PCI | \
|
||||
CFG_CMD_PING | \
|
||||
CFG_CMD_REGINFO | \
|
||||
CFG_CMD_SETGETDCR | \
|
||||
CFG_CMD_SDRAM | \
|
||||
0)
|
||||
|
||||
|
||||
@@ -45,11 +45,11 @@
|
||||
#define EXTCLK_50 50000000
|
||||
#define EXTCLK_83 83333333
|
||||
|
||||
#define CONFIG_IBM_EMAC4_V4 1
|
||||
#define CONFIG_MISC_INIT_F 1 /* Use misc_init_f() */
|
||||
#define CONFIG_MISC_INIT_F 1 /* Use misc_init_f() */
|
||||
#define CONFIG_ADD_RAM_INFO 1 /* Print additional info */
|
||||
#undef CONFIG_SHOW_BOOT_PROGRESS
|
||||
#undef CONFIG_STRESS
|
||||
#undef ENABLE_ECC
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
* Base addresses -- Note these are effective addresses where the
|
||||
* actual resources get mapped (not physical addresses)
|
||||
@@ -118,10 +118,9 @@
|
||||
/*-----------------------------------------------------------------------
|
||||
* DDR SDRAM
|
||||
*----------------------------------------------------------------------*/
|
||||
#undef CONFIG_SPD_EEPROM /* Use SPD EEPROM for setup */
|
||||
#define SPD_EEPROM_ADDRESS {0x53, 0x52} /* SPD i2c spd addresses */
|
||||
#define IIC0_DIMM0_ADDR 0x53
|
||||
#define IIC0_DIMM1_ADDR 0x52
|
||||
#define CONFIG_SPD_EEPROM 1 /* Use SPD EEPROM for setup */
|
||||
#define SPD_EEPROM_ADDRESS {0x53, 0x52} /* SPD i2c spd addresses*/
|
||||
#undef CONFIG_DDR_ECC /* no ECC support for now */
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
* I2C
|
||||
@@ -211,6 +210,7 @@
|
||||
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
|
||||
#include <cmd_confdefs.h>
|
||||
|
||||
#define CONFIG_IBM_EMAC4_V4 1
|
||||
#define CONFIG_MII 1 /* MII PHY management */
|
||||
#undef CONFIG_NET_MULTI
|
||||
#define CONFIG_PHY_ADDR 1 /* PHY address, See schematics */
|
||||
|
||||
@@ -417,7 +417,9 @@
|
||||
#define SDR0_PEGPLLSET1 0x000003A0 /* PE Pll LC Tank Setting1 */
|
||||
#define SDR0_PEGPLLSET2 0x000003A1 /* PE Pll LC Tank Setting2 */
|
||||
#define SDR0_PEGPLLSTS 0x000003A2 /* PE Pll LC Tank Status */
|
||||
#endif /* CONFIG_440SPE */
|
||||
|
||||
#if defined(CONFIG_440SP) || defined(CONFIG_440SPE)
|
||||
/*----------------------------------------------------------------------------+
|
||||
| SDRAM Controller
|
||||
+----------------------------------------------------------------------------*/
|
||||
@@ -453,9 +455,16 @@
|
||||
/*-----------------------------------------------------------------------------+
|
||||
| Memory Bank 0-7 configuration
|
||||
+-----------------------------------------------------------------------------*/
|
||||
#define SDRAM_RXBAS_SDBA_MASK 0xFF800000 /* Base address */
|
||||
#if defined(CONFIG_440SPE)
|
||||
#define SDRAM_RXBAS_SDBA_MASK 0xFFE00000 /* Base address */
|
||||
#define SDRAM_RXBAS_SDBA_ENCODE(n) ((((unsigned long)(n))&0xFFE00000)>>2)
|
||||
#define SDRAM_RXBAS_SDBA_DECODE(n) ((((unsigned long)(n))&0xFFE00000)<<2)
|
||||
#endif /* CONFIG_440SPE */
|
||||
#if defined(CONFIG_440SP)
|
||||
#define SDRAM_RXBAS_SDBA_MASK 0xFF800000 /* Base address */
|
||||
#define SDRAM_RXBAS_SDBA_ENCODE(n) ((((unsigned long)(n))&0xFF800000))
|
||||
#define SDRAM_RXBAS_SDBA_DECODE(n) ((((unsigned long)(n))&0xFF800000))
|
||||
#endif /* CONFIG_440SP */
|
||||
#define SDRAM_RXBAS_SDSZ_MASK 0x0000FFC0 /* Size */
|
||||
#define SDRAM_RXBAS_SDSZ_ENCODE(n) ((((unsigned long)(n))&0x3FF)<<6)
|
||||
#define SDRAM_RXBAS_SDSZ_DECODE(n) ((((unsigned long)(n))>>6)&0x3FF)
|
||||
@@ -2167,6 +2176,20 @@
|
||||
/*-----------------------------------------------------------------------------+
|
||||
| SDR0 Bit Settings
|
||||
+-----------------------------------------------------------------------------*/
|
||||
#if defined(CONFIG_440SP)
|
||||
#define SDR0_SRST 0x0200
|
||||
|
||||
#define SDR0_DDR0 0x00E1
|
||||
#define SDR0_DDR0_DPLLRST 0x80000000
|
||||
#define SDR0_DDR0_DDRM_MASK 0x60000000
|
||||
#define SDR0_DDR0_DDRM_DDR1 0x20000000
|
||||
#define SDR0_DDR0_DDRM_DDR2 0x40000000
|
||||
#define SDR0_DDR0_DDRM_ENCODE(n) ((((unsigned long)(n))&0x03)<<29)
|
||||
#define SDR0_DDR0_DDRM_DECODE(n) ((((unsigned long)(n))>>29)&0x03)
|
||||
#define SDR0_DDR0_TUNE_ENCODE(n) ((((unsigned long)(n))&0x2FF)<<0)
|
||||
#define SDR0_DDR0_TUNE_DECODE(n) ((((unsigned long)(n))>>0)&0x2FF)
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_440SPE)
|
||||
#define SDR0_CP440 0x0180
|
||||
#define SDR0_CP440_ERPN_MASK 0x30000000
|
||||
|
||||
Reference in New Issue
Block a user