From 61750ac07ddcf20f41f1d23cc4cc2b07d9f377b7 Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Thu, 17 Jul 2003 20:15:57 +0000 Subject: one more missing init, prevented powering down the disk git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3839 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/power.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'firmware') 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) 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; -- cgit v1.2.3