summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2003-07-17 20:15:57 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2003-07-17 20:15:57 +0000
commit61750ac07ddcf20f41f1d23cc4cc2b07d9f377b7 (patch)
tree58acd2ce102ce83933fcd9108ddbeaf4ed6fd151 /firmware
parent16f57af62ba73057edf1929acce8bf80dacff185 (diff)
downloadrockbox-61750ac07ddcf20f41f1d23cc4cc2b07d9f377b7.tar.gz
rockbox-61750ac07ddcf20f41f1d23cc4cc2b07d9f377b7.zip
one more missing init, prevented powering down the disk
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3839 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/power.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index 5121a4c4f1..88010f5cbb 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -63,9 +63,10 @@ void charger_enable(bool on)
63void ide_power_enable(bool on) 63void ide_power_enable(bool on)
64{ 64{
65#ifdef HAVE_ATA_POWER_OFF 65#ifdef HAVE_ATA_POWER_OFF
66 PAIOR |= 0x20; /* there's no power driver init, so I have to do that here */ 66 PAIOR |= 0x20; /* there's no power driver init, so I have to do that here */
67 PACR2 &= 0xFBFF;
67 68
68 if(on) 69 if(on)
69 PADR |= 0x20; 70 PADR |= 0x20;
70 else 71 else
71 PADR &= ~0x20; 72 PADR &= ~0x20;