summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/timer-jz4740.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-01 16:06:41 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-01 16:06:41 +0000
commitddd82d6ab56f01ef18ac34ec691acd57f39ea1a2 (patch)
treedac7497eba9ca6e8ff5e09f9e375f391934f0926 /firmware/target/mips/ingenic_jz47xx/timer-jz4740.c
parentf3298a46126be6ee649da68d2d952daeb79e2a53 (diff)
downloadrockbox-ddd82d6ab56f01ef18ac34ec691acd57f39ea1a2.tar.gz
rockbox-ddd82d6ab56f01ef18ac34ec691acd57f39ea1a2.tar.bz2
rockbox-ddd82d6ab56f01ef18ac34ec691acd57f39ea1a2.zip
Ingenic Jz4740 timer driver: fix stupid mistake
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22096 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/timer-jz4740.c')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/timer-jz4740.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/timer-jz4740.c b/firmware/target/mips/ingenic_jz47xx/timer-jz4740.c
index 5bc030eeb2..538547041d 100644
--- a/firmware/target/mips/ingenic_jz47xx/timer-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/timer-jz4740.c
@@ -49,7 +49,7 @@ bool timer_set(long cycles, bool start)
/* Increase prescale values starting from 0 to make the cycle count fit */
while(divider > 65535 && prescaler <= 1024)
{
- prescaler >>= 2; /* 1, 4, 16, 64, 256, 1024 */
+ prescaler <<= 2; /* 1, 4, 16, 64, 256, 1024 */
prescaler_bit++;
divider = cycles / prescaler;
}