diff options
| author | Jörg Hohensohn <hohensoh@rockbox.org> | 2003-10-21 21:03:42 +0000 |
|---|---|---|
| committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2003-10-21 21:03:42 +0000 |
| commit | 9ace15871d1d087d23a55ac5f48a887aa87872ba (patch) | |
| tree | b95fb0ee4b9f9c9cc2d92ddcc4aef02ad699cec8 | |
| parent | d9ae29a6910b2bd89cfd748a585fb8133a159c56 (diff) | |
| download | rockbox-9ace15871d1d087d23a55ac5f48a887aa87872ba.zip rockbox-9ace15871d1d087d23a55ac5f48a887aa87872ba.tar.gz rockbox-9ace15871d1d087d23a55ac5f48a887aa87872ba.tar.bz2 rockbox-9ace15871d1d087d23a55ac5f48a887aa87872ba.tar.xz | |
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
| -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 a76021a..33015b2 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 |