summaryrefslogtreecommitdiff
path: root/cpu/mips
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-01-21 20:46:28 +0000
committerwdenk <wdenk>2004-01-21 20:46:28 +0000
commitef978730dcb3e7e398fe9b57633f3f67260c1bbc (patch)
treeb48984c960bf12a153efad246cd6d520951aa2a4 /cpu/mips
parentc837dcb1a316745092567bfe4fb266d0941884ff (diff)
downloadu-boot-imx-ef978730dcb3e7e398fe9b57633f3f67260c1bbc.zip
u-boot-imx-ef978730dcb3e7e398fe9b57633f3f67260c1bbc.tar.gz
u-boot-imx-ef978730dcb3e7e398fe9b57633f3f67260c1bbc.tar.bz2
* Fix PS/2 keyboard problem caused by statically initialized variable
pointing to a location in flash * Fix INCA-IP clock calculation: 400/3 = 133.3 MHz, not 130.
Diffstat (limited to 'cpu/mips')
-rw-r--r--cpu/mips/incaip_clock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpu/mips/incaip_clock.c b/cpu/mips/incaip_clock.c
index a042b8a..9f32759 100644
--- a/cpu/mips/incaip_clock.c
+++ b/cpu/mips/incaip_clock.c
@@ -33,8 +33,8 @@
*
* RETURNS:
* 150.000.000 for 150 MHz
-* 130.000.000. for 130 Mhz
-* 100.000.000. for 100 Mhz
+* 133.333.333 for 133 Mhz (= 400MHz/3)
+* 100.000.000 for 100 Mhz (= 400MHz/4)
* NOTE:
* This functions should be used by the hardware driver to get the correct
* frequency of the CPU. Don't use the macros, which are set to init the CPU
@@ -55,7 +55,7 @@ uint incaip_get_cpuclk (void)
if (*((volatile ulong *) INCA_IP_CGU_CGU_DIVCR) & 0x40) {
/* Division value is 1/3, maximum CPU operating */
/* frequency is 133.3 MHz */
- return 130000000;
+ return 133333333;
} else {
/* Division value is 1/4, maximum CPU operating */
/* frequency is 100 MHz */