summaryrefslogtreecommitdiff
path: root/firmware/drivers/power.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-01-05 17:02:48 +0000
committerDave Chapman <dave@dchapman.com>2006-01-05 17:02:48 +0000
commitcb7e695ef9d0166b77f14d6d260733f0ff888f13 (patch)
treed43209034aaffbe28ce5fbc3b4c59cdd5187a3b6 /firmware/drivers/power.c
parent5a313efa0c685c52116e008b0e0fa132c05fd9bb (diff)
downloadrockbox-cb7e695ef9d0166b77f14d6d260733f0ff888f13.tar.gz
rockbox-cb7e695ef9d0166b77f14d6d260733f0ff888f13.zip
iPod: Fix the bootloader so it can load and run the original Apple firmware again. The Rockbox firmware was doing too much to the hardware so we remove most of the initialisation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8301 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/power.c')
-rw-r--r--firmware/drivers/power.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index 04168f9895..141d985ee6 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -262,8 +262,10 @@ void power_off(void)
262#if CONFIG_CPU == MCF5249 262#if CONFIG_CPU == MCF5249
263 and_l(~0x00080000, &GPIO1_OUT); 263 and_l(~0x00080000, &GPIO1_OUT);
264#elif CONFIG_CPU == PP5020 264#elif CONFIG_CPU == PP5020
265#ifndef BOOTLOADER
265 /* We don't turn off the ipod, we put it in a deep sleep */ 266 /* We don't turn off the ipod, we put it in a deep sleep */
266 pcf50605_standby_mode(); 267 pcf50605_standby_mode();
268#endif
267#elif defined(GMINI_ARCH) 269#elif defined(GMINI_ARCH)
268 P1 &= ~1; 270 P1 &= ~1;
269 P1CON &= ~1; 271 P1CON &= ~1;