summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2012-06-28 22:32:33 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2012-06-29 10:20:00 +0200
commitdbf834072701075078fb460fcbaf60e407cae7a8 (patch)
tree3f03adaf551e882aa7922827033c3f78a72d841d /arch
parente172909335b6238fca9d2f3f98f4de8331ed1501 (diff)
downloadbarebox-dbf834072701075078fb460fcbaf60e407cae7a8.tar.gz
barebox-dbf834072701075078fb460fcbaf60e407cae7a8.tar.xz
MIPS: XBurst: fix the JZ4755's clocksource input frequency value
The 40 KHz frequency value was used to parry __lshrdi3() error on little-endian MIPS because the __lshrdi3() function is used in clocksource code. The true value of the JZ4755's external clock frequency is 24 MHz. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/mach-xburst/csrc-jz4750.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mach-xburst/csrc-jz4750.c b/arch/mips/mach-xburst/csrc-jz4750.c
index f625b703a1..dc7135a4c4 100644
--- a/arch/mips/mach-xburst/csrc-jz4750.c
+++ b/arch/mips/mach-xburst/csrc-jz4750.c
@@ -28,7 +28,7 @@
#include <io.h>
#include <mach/jz4750d_regs.h>
-#define JZ_TIMER_CLOCK 40000
+#define JZ_TIMER_CLOCK 24000000
static uint64_t jz4750_cs_read(void)
{