summaryrefslogtreecommitdiff
path: root/firmware/drivers/power.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-05 17:16:34 +0000
committerDave Chapman <dave@dchapman.com>2006-02-05 17:16:34 +0000
commit465596b1639393ef320decced442537133ab09e8 (patch)
tree79c88e59c7ab15e2dab33caf045835b5a118a2e9 /firmware/drivers/power.c
parentd16a8b8845ed496e9375c5dfac6da2011c9eb362 (diff)
downloadrockbox-465596b1639393ef320decced442537133ab09e8.tar.gz
rockbox-465596b1639393ef320decced442537133ab09e8.zip
More iPod 3G code from Seven Le Mesle
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8582 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/power.c')
-rw-r--r--firmware/drivers/power.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index e91d8a25cc..2150040dd6 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -84,7 +84,7 @@ void power_init(void)
84 pcf50606_init(); 84 pcf50606_init();
85#endif 85#endif
86#endif 86#endif
87#elif CONFIG_CPU == PP5020 87#elif CONFIG_CPU == PP5020 || CONFIG_CPU == PP5002
88 /* TODO: Implement power_init() */ 88 /* TODO: Implement power_init() */
89#else 89#else
90#ifdef HAVE_POWEROFF_ON_PB5 90#ifdef HAVE_POWEROFF_ON_PB5
@@ -181,7 +181,7 @@ void ide_power_enable(bool on)
181 or_l(0x80000000, &GPIO_OUT); 181 or_l(0x80000000, &GPIO_OUT);
182#elif defined(IAUDIO_X5) 182#elif defined(IAUDIO_X5)
183 /* X5 TODO */ 183 /* X5 TODO */
184#elif CONFIG_CPU == PP5020 184#elif (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020)
185 /* We do nothing on the iPod */ 185 /* We do nothing on the iPod */
186#elif defined(GMINI_ARCH) 186#elif defined(GMINI_ARCH)
187 if(on) 187 if(on)
@@ -237,7 +237,7 @@ bool ide_powered(void)
237 return (GPIO_OUT & 0x80000000)?false:true; 237 return (GPIO_OUT & 0x80000000)?false:true;
238#elif defined(IAUDIO_X5) 238#elif defined(IAUDIO_X5)
239 return false; /* X5 TODO */ 239 return false; /* X5 TODO */
240#elif CONFIG_CPU == PP5020 240#elif (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020)
241 /* pretend we are always powered - we don't turn it off on the ipod */ 241 /* pretend we are always powered - we don't turn it off on the ipod */
242 return true; 242 return true;
243#elif defined(GMINI_ARCH) 243#elif defined(GMINI_ARCH)
@@ -273,7 +273,7 @@ void power_off(void)
273 and_l(~0x00080000, &GPIO1_OUT); 273 and_l(~0x00080000, &GPIO1_OUT);
274#elif defined(IAUDIO_X5) 274#elif defined(IAUDIO_X5)
275 and_l(~0x00000008, &GPIO_OUT); 275 and_l(~0x00000008, &GPIO_OUT);
276#elif CONFIG_CPU == PP5020 276#elif (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5002)
277#ifndef BOOTLOADER 277#ifndef BOOTLOADER
278 /* We don't turn off the ipod, we put it in a deep sleep */ 278 /* We don't turn off the ipod, we put it in a deep sleep */
279 pcf50605_standby_mode(); 279 pcf50605_standby_mode();