diff options
author | Stefan Roese <sr@denx.de> | 2008-10-13 11:17:31 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-10-13 11:17:31 +0200 |
commit | 1f6aa622e365fef9d87de84753eb08347e310a2a (patch) | |
tree | 232149e6d93c9387b03628c5d3283cecf7719476 /cpu/mpc85xx/cpu.c | |
parent | 542b385a620a1783454a00424930e51895f45073 (diff) | |
parent | df4a0796e86662536df2387ddcf969c2a704bcc2 (diff) | |
download | u-boot-imx-1f6aa622e365fef9d87de84753eb08347e310a2a.zip u-boot-imx-1f6aa622e365fef9d87de84753eb08347e310a2a.tar.gz u-boot-imx-1f6aa622e365fef9d87de84753eb08347e310a2a.tar.bz2 |
Merge branch 'master' of /home/stefan/git/u-boot/u-boot
Diffstat (limited to 'cpu/mpc85xx/cpu.c')
-rw-r--r-- | cpu/mpc85xx/cpu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu/mpc85xx/cpu.c b/cpu/mpc85xx/cpu.c index 67e81c0..f15b0a8 100644 --- a/cpu/mpc85xx/cpu.c +++ b/cpu/mpc85xx/cpu.c @@ -85,7 +85,8 @@ int checkcpu (void) struct cpu_type *cpu; #ifdef CONFIG_DDR_CLK_FREQ volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR); - u32 ddr_ratio = ((gur->porpllsr) & 0x00003e00) >> 9; + u32 ddr_ratio = ((gur->porpllsr) & MPC85xx_PORPLLSR_DDR_RATIO) + >> MPC85xx_PORPLLSR_DDR_RATIO_SHIFT; #else u32 ddr_ratio = 0; #endif |