summaryrefslogtreecommitdiff
path: root/cpu/arm1136/mx31
diff options
context:
space:
mode:
authorJens Gehrlein <sew_s@tqs.de>2008-07-04 16:50:05 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-08-25 21:47:01 +0200
commit079edb913dbae147b50a488cf02e03f473fc5f28 (patch)
tree6c59a4924cce88c71734679131f755aaddd99875 /cpu/arm1136/mx31
parente8f1207bbf2df6fb693ee1aa3329b2014c92e5e6 (diff)
downloadu-boot-imx-079edb913dbae147b50a488cf02e03f473fc5f28.zip
u-boot-imx-079edb913dbae147b50a488cf02e03f473fc5f28.tar.gz
u-boot-imx-079edb913dbae147b50a488cf02e03f473fc5f28.tar.bz2
MX31: fix bit masks in function mx31_decode_pll()
Bits MPCTL[MFN] and MPCTL[MFD] were not fully covered. Signed-off-by: Jens Gehrlein <sew_s@tqs.de>
Diffstat (limited to 'cpu/arm1136/mx31')
-rw-r--r--cpu/arm1136/mx31/generic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/arm1136/mx31/generic.c b/cpu/arm1136/mx31/generic.c
index dc031c9..1415d6c 100644
--- a/cpu/arm1136/mx31/generic.c
+++ b/cpu/arm1136/mx31/generic.c
@@ -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;