diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2003-07-17 20:15:57 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2003-07-17 20:15:57 +0000 |
commit | 61750ac07ddcf20f41f1d23cc4cc2b07d9f377b7 (patch) | |
tree | 58acd2ce102ce83933fcd9108ddbeaf4ed6fd151 /firmware | |
parent | 16f57af62ba73057edf1929acce8bf80dacff185 (diff) | |
download | rockbox-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.c | 5 |
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) | |||
63 | void ide_power_enable(bool on) | 63 | void 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; |