From 9ace15871d1d087d23a55ac5f48a887aa87872ba Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Tue, 21 Oct 2003 21:03:42 +0000 Subject: cosmetic: moved my port inits to the "new" init function git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3982 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/power.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'firmware/drivers') 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) PBIOR |= 0x20; /* Set charging control bit to output */ charger_enable(false); /* Default to charger OFF */ #endif +#ifdef HAVE_ATA_POWER_OFF + PAIOR |= 0x20; + PACR2 &= 0xFBFF; +#endif } bool charger_inserted(void) @@ -71,9 +75,6 @@ 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 */ - PACR2 &= 0xFBFF; - if(on) PADR |= 0x20; else -- cgit v1.2.3