summaryrefslogtreecommitdiff
path: root/cpu/mcf532x/speed.c
diff options
context:
space:
mode:
authorTsiChung Liew <tsicliew@gmail.com>2010-03-09 18:32:16 -0600
committerTsiChung Liew <tsicliew@gmail.com>2010-03-24 11:09:03 -0500
commitd04c1efae3d834db6e21e9976e338bf1e588e987 (patch)
tree61c0c42980d18b5dd98531432bbfd53144bb30ee /cpu/mcf532x/speed.c
parent116095eb1f0f7017ea8062aa8a8ba8ceecb430b5 (diff)
ColdFire: Correct bit definition
Use correct definition for _MASK and _UNMASK. It was combined in the previous used and causes confusion. Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
Diffstat (limited to 'cpu/mcf532x/speed.c')
-rw-r--r--cpu/mcf532x/speed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/mcf532x/speed.c b/cpu/mcf532x/speed.c
index 67f08c7602..5a29e2567a 100644
--- a/cpu/mcf532x/speed.c
+++ b/cpu/mcf532x/speed.c
@@ -229,7 +229,7 @@ int clock_pll(int fsys, int flags)
PLL_PDR_OUTDIV3((BUSDIV / 2) - 1) |
PLL_PDR_OUTDIV4(USBDIV - 1);
- pll->pcr &= PLL_PCR_FBDIV_MASK;
+ pll->pcr &= PLL_PCR_FBDIV_UNMASK;
pll->pcr |= PLL_PCR_FBDIV(mfd - 1);
#endif
#ifdef CONFIG_MCF532x