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.

pp502x: Fully shut down storage power on older(4g/photo, mini, mini2g) iPods

On these older iPods, power was not being shut down completely, which led to a backfeed situation leading to decreased battery life and some stability issues.

This was particuarly apparent when using SD card adapters that do not
respect the ATA power management commands (ie all of them), as they never enter a low-power state on their own.

With this change, there are reports of battery life exceeding 20 hours of continuous playback (~30% increase with CF cards, 3x improvement with SD cards) and appears to resolve intermittent wakeup stability issues with SD adapters.

Change-Id: I46cfff7a59bb18a448989812303f30869df24d2d

authored by

Paul Sauro and committed by
Solomon Peachy
4bde992c f60892e2

+4
+4
firmware/target/arm/ipod/power-ipod.c
··· 106 106 if (on) 107 107 { 108 108 GPIO_CLEAR_BITWISE(GPIOJ_OUTPUT_VAL, 0x04); 109 + GPIO_CLEAR_BITWISE(GPIOI_ENABLE, 0xBF); 110 + GPIO_CLEAR_BITWISE(GPIOK_ENABLE, 0x1F); 109 111 DEV_EN |= DEV_IDE0; 110 112 } 111 113 else 112 114 { 113 115 DEV_EN &= ~DEV_IDE0; 114 116 GPIO_SET_BITWISE(GPIOJ_OUTPUT_VAL, 0x04); 117 + GPIO_SET_BITWISE(GPIOI_ENABLE, 0xBF); 118 + GPIO_SET_BITWISE(GPIOK_ENABLE, 0x1F); 115 119 } 116 120 #elif defined(IPOD_VIDEO) 117 121 if (on)