projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8f1207
)
MX31: fix bit masks in function mx31_decode_pll()
author
Jens Gehrlein
<sew_s@tqs.de>
Fri, 4 Jul 2008 14:50:05 +0000
(16:50 +0200)
committer
Jean-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
patch
|
blob
|
history
diff --git
a/cpu/arm1136/mx31/generic.c
b/cpu/arm1136/mx31/generic.c
index
dc031c9
..
1415d6c
100644
(file)
--- 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 & 0x3f
f
;
+ u32 mfd = (reg >> 16) & 0x3f
f
;
u32 pd = (reg >> 26) & 0xf;
mfi = mfi <= 5 ? 5 : mfi;