diff options
Diffstat (limited to 'firmware/drivers/power.c')
-rw-r--r-- | firmware/drivers/power.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c index a76021a5bf..33015b2f4c 100644 --- a/firmware/drivers/power.c +++ b/firmware/drivers/power.c | |||
@@ -35,6 +35,10 @@ void power_init(void) | |||
35 | PBIOR |= 0x20; /* Set charging control bit to output */ | 35 | PBIOR |= 0x20; /* Set charging control bit to output */ |
36 | charger_enable(false); /* Default to charger OFF */ | 36 | charger_enable(false); /* Default to charger OFF */ |
37 | #endif | 37 | #endif |
38 | #ifdef HAVE_ATA_POWER_OFF | ||
39 | PAIOR |= 0x20; | ||
40 | PACR2 &= 0xFBFF; | ||
41 | #endif | ||
38 | } | 42 | } |
39 | 43 | ||
40 | bool charger_inserted(void) | 44 | bool charger_inserted(void) |
@@ -71,9 +75,6 @@ void charger_enable(bool on) | |||
71 | void ide_power_enable(bool on) | 75 | void ide_power_enable(bool on) |
72 | { | 76 | { |
73 | #ifdef HAVE_ATA_POWER_OFF | 77 | #ifdef HAVE_ATA_POWER_OFF |
74 | PAIOR |= 0x20; /* there's no power driver init, so I have to do that here */ | ||
75 | PACR2 &= 0xFBFF; | ||
76 | |||
77 | if(on) | 78 | if(on) |
78 | PADR |= 0x20; | 79 | PADR |= 0x20; |
79 | else | 80 | else |