mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 01:51:33 +00:00
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>
This commit is contained in:
parent
986bb0e6a0
commit
9da752e97f
1 changed files with 1 additions and 2 deletions
|
@ -149,7 +149,7 @@ long int spd_sdram()
|
||||||
unsigned int memsize;
|
unsigned int memsize;
|
||||||
unsigned int law_size;
|
unsigned int law_size;
|
||||||
unsigned char caslat, caslat_ctrl;
|
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 int trcd_clk, trtp_clk;
|
||||||
unsigned char cke_min_clk;
|
unsigned char cke_min_clk;
|
||||||
unsigned char add_lat, wr_lat;
|
unsigned char add_lat, wr_lat;
|
||||||
|
@ -542,7 +542,6 @@ long int spd_sdram()
|
||||||
* so preadjust it down 8 first before splitting it up.
|
* so preadjust it down 8 first before splitting it up.
|
||||||
*/
|
*/
|
||||||
trfc_low = (trfc_clk - 8) & 0xf;
|
trfc_low = (trfc_clk - 8) & 0xf;
|
||||||
trfc_high = ((trfc_clk - 8) >> 4) & 0x3;
|
|
||||||
|
|
||||||
ddr->timing_cfg_1 =
|
ddr->timing_cfg_1 =
|
||||||
(((picos_to_clk(spd.trp * 250) & 0x07) << 28 ) | /* PRETOACT */
|
(((picos_to_clk(spd.trp * 250) & 0x07) << 28 ) | /* PRETOACT */
|
||||||
|
|
Loading…
Add table
Reference in a new issue