summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2011-11-15 22:59:51 +0000
committerWolfgang Denk <wd@denx.de>2011-11-16 21:40:26 +0100
commit9da752e97f6546b66af6b250b43af164521a0138 (patch)
treecca119c21ba9e1e09782bd967dffea31f2ef3bd5 /arch
parent986bb0e6a0c24fe1678b437be838986068a49644 (diff)
downloadu-boot-imx-9da752e97f6546b66af6b250b43af164521a0138.zip
u-boot-imx-9da752e97f6546b66af6b250b43af164521a0138.tar.gz
u-boot-imx-9da752e97f6546b66af6b250b43af164521a0138.tar.bz2
mpc83xx: spd_sdram - fix gcc 4.6 compiler warning
Configuring for sbc8349 board... spd_sdram.c: In function 'spd_sdram': spd_sdram.c:152:41: warning: variable 'trfc_high' set but not used [-Wunused-but-set-variable] Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/cpu/mpc83xx/spd_sdram.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/mpc83xx/spd_sdram.c b/arch/powerpc/cpu/mpc83xx/spd_sdram.c
index 3855bfd..04d519a 100644
--- a/arch/powerpc/cpu/mpc83xx/spd_sdram.c
+++ b/arch/powerpc/cpu/mpc83xx/spd_sdram.c
@@ -149,7 +149,7 @@ long int spd_sdram()
unsigned int memsize;
unsigned int law_size;
unsigned char caslat, caslat_ctrl;
- unsigned int trfc, trfc_clk, trfc_low, trfc_high;
+ unsigned int trfc, trfc_clk, trfc_low;
unsigned int trcd_clk, trtp_clk;
unsigned char cke_min_clk;
unsigned char add_lat, wr_lat;
@@ -542,7 +542,6 @@ long int spd_sdram()
* so preadjust it down 8 first before splitting it up.
*/
trfc_low = (trfc_clk - 8) & 0xf;
- trfc_high = ((trfc_clk - 8) >> 4) & 0x3;
ddr->timing_cfg_1 =
(((picos_to_clk(spd.trp * 250) & 0x07) << 28 ) | /* PRETOACT */