diff options
| author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-10-16 15:01:15 +0200 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2008-10-18 21:54:03 +0200 | 
| commit | 6d0f6bcf337c5261c08fabe12982178c2c489d76 (patch) | |
| tree | ae13958ffa9c6b58c2ea97aac07a4ad2f04a350f /cpu/ppc4xx/44x_spd_ddr.c | |
| parent | 71edc271816ec82cf0550dd6980be2da3cc2ad9e (diff) | |
| download | olio-uboot-2014.01-6d0f6bcf337c5261c08fabe12982178c2c489d76.tar.xz olio-uboot-2014.01-6d0f6bcf337c5261c08fabe12982178c2c489d76.zip | |
rename CFG_ macros to CONFIG_SYS
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'cpu/ppc4xx/44x_spd_ddr.c')
| -rw-r--r-- | cpu/ppc4xx/44x_spd_ddr.c | 22 | 
1 files changed, 11 insertions, 11 deletions
| diff --git a/cpu/ppc4xx/44x_spd_ddr.c b/cpu/ppc4xx/44x_spd_ddr.c index 9efcedefe..153391e59 100644 --- a/cpu/ppc4xx/44x_spd_ddr.c +++ b/cpu/ppc4xx/44x_spd_ddr.c @@ -62,12 +62,12 @@  /*   * Set default values   */ -#ifndef CFG_I2C_SPEED -#define CFG_I2C_SPEED	50000 +#ifndef CONFIG_SYS_I2C_SPEED +#define CONFIG_SYS_I2C_SPEED	50000  #endif -#ifndef CFG_I2C_SLAVE -#define CFG_I2C_SLAVE	0xFE +#ifndef CONFIG_SYS_I2C_SLAVE +#define CONFIG_SYS_I2C_SLAVE	0xFE  #endif  #define ONE_BILLION	1000000000 @@ -119,7 +119,7 @@ struct bank_param {  typedef struct bank_param BANKPARMS; -#ifdef CFG_SIMULATE_SPD_EEPROM +#ifdef CONFIG_SYS_SIMULATE_SPD_EEPROM  extern const unsigned char cfg_simulate_spd_eeprom[128];  #endif @@ -174,7 +174,7 @@ long int spd_sdram(void) {  	 * Make sure I2C controller is initialized  	 * before continuing.  	 */ -	i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE); +	i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);  	/*  	 * Read the SPD information using I2C interface. Check to see if the @@ -265,7 +265,7 @@ long int spd_sdram(void) {  	/*  	 * If ecc is enabled, initialize the parity bits.  	 */ -	ecc_init(CFG_SDRAM_BASE, total_size); +	ecc_init(CONFIG_SYS_SDRAM_BASE, total_size);  #endif  	return total_size; @@ -275,14 +275,14 @@ static unsigned char spd_read(uchar chip, uint addr)  {  	unsigned char data[2]; -#ifdef CFG_SIMULATE_SPD_EEPROM -	if (chip == CFG_SIMULATE_SPD_EEPROM) { +#ifdef CONFIG_SYS_SIMULATE_SPD_EEPROM +	if (chip == CONFIG_SYS_SIMULATE_SPD_EEPROM) {  		/*  		 * Onboard spd eeprom requested -> simulate values  		 */  		return cfg_simulate_spd_eeprom[addr];  	} -#endif /* CFG_SIMULATE_SPD_EEPROM */ +#endif /* CONFIG_SYS_SIMULATE_SPD_EEPROM */  	if (i2c_probe(chip) == 0) {  		if (i2c_read(chip, addr, 1, data, 1) == 0) { @@ -1120,7 +1120,7 @@ static unsigned long program_bxcr(unsigned long *dimm_populated,  	/*  	 * reset the bank_base address  	 */ -	bank_base_addr = CFG_SDRAM_BASE; +	bank_base_addr = CONFIG_SYS_SDRAM_BASE;  	for (dimm_num = 0; dimm_num < num_dimm_banks; dimm_num++) {  		if (dimm_populated[dimm_num] == TRUE) { |