]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ppc/p4080: Fix mask width of RCW fields MEM_PLL_RAT, SYS_PLL_RAT
authorJames Yang <James.Yang@freescale.com>
Tue, 12 Jan 2010 21:50:18 +0000 (15:50 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 26 Jan 2010 04:13:25 +0000 (22:13 -0600)
The masks for MEM_PLL_RAT and SYS_PLL_RAT should have been 5-bits
instead of 4.

Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
cpu/mpc85xx/speed.c

index 2103e2edf1192fcaddfadaa0b3dc786a8956c3e0..8dab8d1cf240ef1ab81d17094263cb81eb5945b9 100644 (file)
@@ -80,8 +80,8 @@ void get_sys_info (sys_info_t * sysInfo)
        freqCC_PLL[2] = sysclk;
        freqCC_PLL[3] = sysclk;
 
-       sysInfo->freqSystemBus *= (in_be32(&gur->rcwsr[0]) >> 25) & 0xf;
-       sysInfo->freqDDRBus *= ((in_be32(&gur->rcwsr[0]) >> 17) & 0xf);
+       sysInfo->freqSystemBus *= (in_be32(&gur->rcwsr[0]) >> 25) & 0x1f;
+       sysInfo->freqDDRBus *= ((in_be32(&gur->rcwsr[0]) >> 17) & 0x1f);
        freqCC_PLL[0] *= (in_be32(&clk->pllc1gsr) >> 1) & 0x3f;
        freqCC_PLL[1] *= (in_be32(&clk->pllc2gsr) >> 1) & 0x3f;
        freqCC_PLL[2] *= (in_be32(&clk->pllc3gsr) >> 1) & 0x3f;