summaryrefslogtreecommitdiff
path: root/cpu/mpc83xx/spd_sdram.c
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2008-03-28 10:18:40 -0500
committerKim Phillips <kim.phillips@freescale.com>2008-03-28 14:32:07 -0500
commit35cf155c5ec1ceab2849fa5b6aa3d9a3e9e6f482 (patch)
treeb02793871ebb103cdb9af394559b04f093450e40 /cpu/mpc83xx/spd_sdram.c
parent730e792926ca3fe4dd1b734a3bf44e55afa6f536 (diff)
downloadu-boot-imx-35cf155c5ec1ceab2849fa5b6aa3d9a3e9e6f482.zip
u-boot-imx-35cf155c5ec1ceab2849fa5b6aa3d9a3e9e6f482.tar.gz
u-boot-imx-35cf155c5ec1ceab2849fa5b6aa3d9a3e9e6f482.tar.bz2
mpc83xx: unreinvent mem_clk
delete ddr_clk and use mem_clk instead. Rename other ddr_*_clk to mem_*_clk for consistency's sake. Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'cpu/mpc83xx/spd_sdram.c')
-rw-r--r--cpu/mpc83xx/spd_sdram.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpu/mpc83xx/spd_sdram.c b/cpu/mpc83xx/spd_sdram.c
index 0acca47..c9151d7 100644
--- a/cpu/mpc83xx/spd_sdram.c
+++ b/cpu/mpc83xx/spd_sdram.c
@@ -78,12 +78,12 @@ extern int dma_xfer(void *dest, uint count, void *src);
int
picos_to_clk(int picos)
{
- unsigned int ddr_bus_clk;
+ unsigned int mem_bus_clk;
int clks;
- ddr_bus_clk = gd->ddr_clk >> 1;
- clks = picos / (1000000000 / (ddr_bus_clk / 1000));
- if (picos % (1000000000 / (ddr_bus_clk / 1000)) != 0)
+ mem_bus_clk = gd->mem_clk >> 1;
+ clks = picos / (1000000000 / (mem_bus_clk / 1000));
+ if (picos % (1000000000 / (mem_bus_clk / 1000)) != 0)
clks++;
return clks;
@@ -313,7 +313,7 @@ long int spd_sdram()
debug("DDR:Module maximum data rate is: %dMhz\n", max_data_rate);
- ddrc_clk = gd->ddr_clk / 1000000;
+ ddrc_clk = gd->mem_clk / 1000000;
effective_data_rate = 0;
if (max_data_rate >= 390 && max_data_rate < 460) { /* it is DDR 400 */