summaryrefslogtreecommitdiff
path: root/firmware/drivers/power.c
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2003-10-21 21:03:42 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2003-10-21 21:03:42 +0000
commit9ace15871d1d087d23a55ac5f48a887aa87872ba (patch)
treeb95fb0ee4b9f9c9cc2d92ddcc4aef02ad699cec8 /firmware/drivers/power.c
parentd9ae29a6910b2bd89cfd748a585fb8133a159c56 (diff)
downloadrockbox-9ace15871d1d087d23a55ac5f48a887aa87872ba.tar.gz
rockbox-9ace15871d1d087d23a55ac5f48a887aa87872ba.zip
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
Diffstat (limited to 'firmware/drivers/power.c')
-rw-r--r--firmware/drivers/power.c7
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
40bool charger_inserted(void) 44bool charger_inserted(void)
@@ -71,9 +75,6 @@ void charger_enable(bool on)
71void ide_power_enable(bool on) 75void 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