summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-01-18 18:21:54 +0000
committerwdenk <wdenk>2004-01-18 18:21:54 +0000
commitb0aef11c9f1f98d018adaa484f1e048fa626801e (patch)
tree3334d5d4bf14b749d547f92ad0c10949fdac88d2 /cpu
parent1c43771ba888bb9260692636d645fb2d73390a4b (diff)
downloadu-boot-imx-b0aef11c9f1f98d018adaa484f1e048fa626801e.zip
u-boot-imx-b0aef11c9f1f98d018adaa484f1e048fa626801e.tar.gz
u-boot-imx-b0aef11c9f1f98d018adaa484f1e048fa626801e.tar.bz2
Fix typo in Makefile;
fix problem with PARTNUM detection
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc8xx/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/mpc8xx/cpu.c b/cpu/mpc8xx/cpu.c
index 3504422..3fb97b0 100644
--- a/cpu/mpc8xx/cpu.c
+++ b/cpu/mpc8xx/cpu.c
@@ -513,7 +513,7 @@ unsigned long get_tbclk (void)
*
* For older chips, it's just MF field of PLPRCR plus one.
*/
- if ((immr & 0xFFFF) >= MPC8xx_NEW_CLK) { /* MPC866/87x/88x series */
+ if ((immr & 0x0FFF) >= MPC8xx_NEW_CLK) { /* MPC866/87x/88x series */
factor = (PLPRCR_val(MFI) + PLPRCR_val(MFN)/(PLPRCR_val(MFD)+1))/
(PLPRCR_val(PDF)+1) / (1<<PLPRCR_val(S));
} else {