Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

gigabeatS: Fix the timer startup oddness. Seems it likes the interrupt clear at the module level after enabling the vector.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16226 a1c6a512-1295-4272-9138-f99709370657

+3 -8
+1 -1
firmware/target/arm/imx31/gigabeat-s/ata-imx31.c
··· 44 44 45 45 bool ata_is_coldstart(void) 46 46 { 47 - return 0; 47 + return true; 48 48 } 49 49 50 50 unsigned long get_pll(bool serial) {
+2 -7
firmware/target/arm/imx31/gigabeat-s/kernel-imx31.c
··· 41 41 * Count from load value */ 42 42 EPITCR1 = (0x3 << 24) | (1 << 19) | (32 << 4) | 43 43 (1 << 3) | (1 << 2) | (1 << 1); 44 - EPITSR1 = 1; /* Clear any pending interrupt */ 45 44 #ifndef BOOTLOADER 46 45 EPITLR1 = interval_in_ms; 47 46 EPITCMPR1 = 0; /* Event when counter reaches 0 */ ··· 49 48 #else 50 49 (void)interval_in_ms; 51 50 #endif 51 + EPITSR1 = 1; /* Clear any pending interrupt after 52 + enabling the vector */ 52 53 53 54 EPITCR1 |= (1 << 0); /* Enable the counter */ 54 - 55 - /* Why does only this trigger the counter? Remove when we find out. */ 56 - asm volatile ( 57 - "mcr p15, 0, %0, c7, c0, 4 \n" 58 - : : "r" (0) 59 - ); 60 55 }