mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-10 14:53:26 +09:00
44x_spd_ddr.c: Fix GCC 4.6 build warnings
Fix: 44x_spd_ddr.c: In function 'program_cfg0': 44x_spd_ddr.c:384:16: warning: variable 'dimm_64bit' set but not used [-Wunused-but-set-variable] 44x_spd_ddr.c:383:16: warning: variable 'dimm_32bit' set but not used [-Wunused-but-set-variable] Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
a6370da13e
commit
6cd71d0f17
@ -380,8 +380,6 @@ static void program_cfg0(unsigned long *dimm_populated,
|
|||||||
unsigned char ecc;
|
unsigned char ecc;
|
||||||
unsigned char attributes;
|
unsigned char attributes;
|
||||||
unsigned long data_width;
|
unsigned long data_width;
|
||||||
unsigned long dimm_32bit;
|
|
||||||
unsigned long dimm_64bit;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* get Memory Controller Options 0 data
|
* get Memory Controller Options 0 data
|
||||||
@ -423,10 +421,8 @@ static void program_cfg0(unsigned long *dimm_populated,
|
|||||||
(unsigned long)spd_read(iic0_dimm_addr[dimm_num],6) +
|
(unsigned long)spd_read(iic0_dimm_addr[dimm_num],6) +
|
||||||
(((unsigned long)spd_read(iic0_dimm_addr[dimm_num],7)) << 8);
|
(((unsigned long)spd_read(iic0_dimm_addr[dimm_num],7)) << 8);
|
||||||
if (data_width == 64 || data_width == 72) {
|
if (data_width == 64 || data_width == 72) {
|
||||||
dimm_64bit = TRUE;
|
|
||||||
cfg0 |= SDRAM_CFG0_DMWD_64;
|
cfg0 |= SDRAM_CFG0_DMWD_64;
|
||||||
} else if (data_width == 32 || data_width == 40) {
|
} else if (data_width == 32 || data_width == 40) {
|
||||||
dimm_32bit = TRUE;
|
|
||||||
cfg0 |= SDRAM_CFG0_DMWD_32;
|
cfg0 |= SDRAM_CFG0_DMWD_32;
|
||||||
} else {
|
} else {
|
||||||
printf("WARNING: DIMM with datawidth of %lu bits.\n",
|
printf("WARNING: DIMM with datawidth of %lu bits.\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user