summaryrefslogtreecommitdiff
path: root/firmware/kernel.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-02-05 04:43:19 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-02-05 04:43:19 +0000
commit1f021af60cd0351a309666c2e32b3d1b8b2cbd6f (patch)
tree88710bcc59d80831327b00d59af0eb6a6f758de6 /firmware/kernel.c
parent3f85a4bc97fb2120870fcd4a6650fd72d4a6338f (diff)
downloadrockbox-1f021af60cd0351a309666c2e32b3d1b8b2cbd6f.zip
rockbox-1f021af60cd0351a309666c2e32b3d1b8b2cbd6f.tar.gz
rockbox-1f021af60cd0351a309666c2e32b3d1b8b2cbd6f.tar.bz2
rockbox-1f021af60cd0351a309666c2e32b3d1b8b2cbd6f.tar.xz
Gigabeat S mixer: Make some progress. Get the tick and core sleep working using the AVIC. Redo the startup code to remap from IRAM and not include the lcd driver frambuffer in the remapping (until it can be moved). Clean up LCD driver. For other misc. changes, see the diffs. Now it progresses to ATA init and fails with -11 but without crashing or hanging. Replace all bootloaders.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16216 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/kernel.c')
-rw-r--r--firmware/kernel.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c
index 35bdec7..8eba565 100644
--- a/firmware/kernel.c
+++ b/firmware/kernel.c
@@ -819,48 +819,6 @@ void tick_start(unsigned int interval_in_ms)
TIMER0.ctrl |= 0x80; /* Enable the counter */
}
-#elif CONFIG_CPU == IMX31L
-void tick_start(unsigned int interval_in_ms)
-{
- EPITCR1 &= ~0x1; /* Disable the counter */
-
- EPITCR1 &= ~0xE; /* Disable interrupt, count down from 0xFFFFFFFF */
- EPITCR1 &= ~0xFFF0; /* Clear prescaler */
-#ifdef BOOTLOADER
- EPITCR1 |= (2700 << 2); /* Prescaler = 2700 */
-#endif
- EPITCR1 &= ~(0x3 << 24);
- EPITCR1 |= (0x2 << 24); /* Set clock source to external clock (27mhz) */
- EPITSR1 = 1; /* Clear the interrupt request */
-#ifndef BOOTLOADER
- EPITLR1 = 27000000 * interval_in_ms / 1000;
- EPITCMPR1 = 27000000 * interval_in_ms / 1000;
-#else
- (void)interval_in_ms;
-#endif
-
- //avic_enable_int(EPIT1, IRQ, EPIT_HANDLER);
-
- EPITCR1 |= 0x1; /* Enable the counter */
-}
-
-#ifndef BOOTLOADER
-void EPIT_HANDLER(void) __attribute__((interrupt("IRQ")));
-void EPIT_HANDLER(void) {
- int i;
-
- /* Run through the list of tick tasks */
- for(i = 0;i < MAX_NUM_TICK_TASKS;i++)
- {
- if(tick_funcs[i])
- tick_funcs[i]();
- }
-
- current_tick++;
-
- EPITSR1 = 1; /* Clear the interrupt request */
-}
-#endif
#endif
int tick_add_task(void (*f)(void))