summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2009-10-17 22:32:46 +0000
committerMichael Sparmann <theseven@rockbox.org>2009-10-17 22:32:46 +0000
commit8f1709f434e88546f556e8971312b8e2162dbca7 (patch)
tree05148949c37368ab8edb211674cf42aed8731903 /firmware/target/arm
parent47e06dfe9e9565fbbed55d295ee757c9b58e8394 (diff)
Adjust iPod Nano 2G CPU speed to 192MHz, which measurements show it to be. Timers will be more accurate now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23237 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/s5l8700/kernel-s5l8700.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/s5l8700/kernel-s5l8700.c b/firmware/target/arm/s5l8700/kernel-s5l8700.c
index 61466af970..b7028ebd1f 100644
--- a/firmware/target/arm/s5l8700/kernel-s5l8700.c
+++ b/firmware/target/arm/s5l8700/kernel-s5l8700.c
@@ -24,7 +24,7 @@
/* S5L8700 driver for the kernel timer
- Timer B is configured as a 10 kHz timer (assuming PCLK = 100 MHz)
+ Timer B is configured as a 10 kHz timer (assuming PCLK = 48 MHz)
*/
void INT_TIMERB(void)
@@ -37,14 +37,14 @@ void INT_TIMERB(void)
void tick_start(unsigned int interval_in_ms)
{
- int cycles = 5 * interval_in_ms;
+ int cycles = 10 * interval_in_ms;
/* enable timer clock */
PWRCON &= ~(1 << 4);
/* configure timer for 10 kHz */
TBCMD = (1 << 1); /* TB_CLR */
- TBPRE = 625 - 1; /* prescaler */
+ TBPRE = 300 - 1; /* prescaler */
TBCON = (0 << 13) | /* TB_INT1_EN */
(1 << 12) | /* TB_INT0_EN */
(0 << 11) | /* TB_START */