summaryrefslogtreecommitdiff
path: root/firmware/drivers/power.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-01-12 00:35:50 +0000
committerDave Chapman <dave@dchapman.com>2006-01-12 00:35:50 +0000
commitd83e929f3fc369a5981e1e40e1c5307169a46cfc (patch)
treeac323ca5811374a030a1b65bb77fc7ccc163db04 /firmware/drivers/power.c
parent8d130684214d23a9163810d1dacc33d108f2338a (diff)
downloadrockbox-d83e929f3fc369a5981e1e40e1c5307169a46cfc.tar.gz
rockbox-d83e929f3fc369a5981e1e40e1c5307169a46cfc.zip
Work-in-progress iriver iFP-7xx port by Tomasz Malesinski
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8342 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/power.c')
-rw-r--r--firmware/drivers/power.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index 141d985ee6..da97233e57 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -182,6 +182,8 @@ void ide_power_enable(bool on)
182 P1 |= 0x08; 182 P1 |= 0x08;
183 else 183 else
184 P1 &= ~0x08; 184 P1 &= ~0x08;
185#elif CONFIG_CPU == PNX0101
186 /* no ide controller */
185#else /* SH1 based archos */ 187#else /* SH1 based archos */
186 bool touched = false; 188 bool touched = false;
187#ifdef NEEDS_ATA_POWER_ON 189#ifdef NEEDS_ATA_POWER_ON
@@ -266,6 +268,9 @@ void power_off(void)
266 /* We don't turn off the ipod, we put it in a deep sleep */ 268 /* We don't turn off the ipod, we put it in a deep sleep */
267 pcf50605_standby_mode(); 269 pcf50605_standby_mode();
268#endif 270#endif
271#elif CONFIG_CPU == PNX0101
272 GPIO1_CLR = 1 << 16;
273 GPIO2_SET = 1;
269#elif defined(GMINI_ARCH) 274#elif defined(GMINI_ARCH)
270 P1 &= ~1; 275 P1 &= ~1;
271 P1CON &= ~1; 276 P1CON &= ~1;