Ingenic Jz4740 timer driver: fix stupid mistake

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22096 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2009-08-01 16:06:41 +00:00
parent f3298a4612
commit ddd82d6ab5

View file

@ -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;
}