]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MX31: fix bit masks in function mx31_decode_pll()
authorJens Gehrlein <sew_s@tqs.de>
Fri, 4 Jul 2008 14:50:05 +0000 (16:50 +0200)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Mon, 25 Aug 2008 19:47:01 +0000 (21:47 +0200)
Bits MPCTL[MFN] and MPCTL[MFD] were not fully covered.

Signed-off-by: Jens Gehrlein <sew_s@tqs.de>
cpu/arm1136/mx31/generic.c

index dc031c92ea936ab7104c5d19bcce5a2c11eed8a9..1415d6c2ae01a0552e17fb3b7915ecfbf96f9b02 100644 (file)
@@ -27,8 +27,8 @@
 static u32 mx31_decode_pll(u32 reg, u32 infreq)
 {
        u32 mfi = (reg >> 10) & 0xf;
-       u32 mfn = reg & 0x3f;
-       u32 mfd = (reg >> 16) & 0x3f;
+       u32 mfn = reg & 0x3ff;
+       u32 mfd = (reg >> 16) & 0x3ff;
        u32 pd =  (reg >> 26) & 0xf;
 
        mfi = mfi <= 5 ? 5 : mfi;