提交 079edb91 编写于 作者: J Jens Gehrlein 提交者: Jean-Christophe PLAGNIOL-VILLARD

MX31: fix bit masks in function mx31_decode_pll()

Bits MPCTL[MFN] and MPCTL[MFD] were not fully covered.
Signed-off-by: NJens Gehrlein <sew_s@tqs.de>
上级 e8f1207b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册