diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/timer-jz4740.c | 2 |
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) | |||
49 | /* Increase prescale values starting from 0 to make the cycle count fit */ | 49 | /* Increase prescale values starting from 0 to make the cycle count fit */ |
50 | while(divider > 65535 && prescaler <= 1024) | 50 | while(divider > 65535 && prescaler <= 1024) |
51 | { | 51 | { |
52 | prescaler >>= 2; /* 1, 4, 16, 64, 256, 1024 */ | 52 | prescaler <<= 2; /* 1, 4, 16, 64, 256, 1024 */ |
53 | prescaler_bit++; | 53 | prescaler_bit++; |
54 | divider = cycles / prescaler; | 54 | divider = cycles / prescaler; |
55 | } | 55 | } |