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 | |
| parent | 16f57af62ba73057edf1929acce8bf80dacff185 (diff) | |
| download | rockbox-61750ac07ddcf20f41f1d23cc4cc2b07d9f377b7.zip rockbox-61750ac07ddcf20f41f1d23cc4cc2b07d9f377b7.tar.gz rockbox-61750ac07ddcf20f41f1d23cc4cc2b07d9f377b7.tar.bz2 rockbox-61750ac07ddcf20f41f1d23cc4cc2b07d9f377b7.tar.xz | |
one more missing init, prevented powering down the disk
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3839 a1c6a512-1295-4272-9138-f99709370657
| -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 5121a4c..88010f5 100644 --- a/firmware/drivers/power.c +++ b/firmware/drivers/power.c @@ -63,9 +63,10 @@ void charger_enable(bool on) void ide_power_enable(bool on) { #ifdef HAVE_ATA_POWER_OFF - PAIOR |= 0x20; /* there's no power driver init, so I have to do that here */ + PAIOR |= 0x20; /* there's no power driver init, so I have to do that here */ + PACR2 &= 0xFBFF; - if(on) + if(on) PADR |= 0x20; else PADR &= ~0x20; |