summaryrefslogtreecommitdiff
path: root/firmware/drivers/power.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-02-16 20:44:38 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-02-16 20:44:38 +0000
commita4504bc276497aa7d30098446a71775045dbd16a (patch)
treed6db21ba363181b10c316efe1abde4ec58448928 /firmware/drivers/power.c
parent41e1aa888b9d1fc41aaf158191980cce3e548302 (diff)
downloadrockbox-a4504bc276497aa7d30098446a71775045dbd16a.tar.gz
rockbox-a4504bc276497aa7d30098446a71775045dbd16a.zip
Revert the ATA/USB power fix until I find an even more correct way of doing it :-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8707 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/power.c')
-rw-r--r--firmware/drivers/power.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index e11921ea91..d7750a33b2 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -71,13 +71,6 @@ void power_init(void)
71 or_l(0x00080000, &GPIO1_ENABLE); 71 or_l(0x00080000, &GPIO1_ENABLE);
72 or_l(0x00080000, &GPIO1_FUNCTION); 72 or_l(0x00080000, &GPIO1_FUNCTION);
73 73
74#ifdef IRIVER_H300_SERIES
75 /* ISD300 3.3V ON */
76 or_l(8,&GPIO1_FUNCTION);
77 or_l(8,&GPIO1_OUT);
78 or_l(8,&GPIO1_ENABLE);
79#endif
80
81#ifndef BOOTLOADER 74#ifndef BOOTLOADER
82 /* The boot loader controls the power */ 75 /* The boot loader controls the power */
83 ide_power_enable(true); 76 ide_power_enable(true);
@@ -185,13 +178,6 @@ void ide_power_enable(bool on)
185 and_l(~0x80000000, &GPIO_OUT); 178 and_l(~0x80000000, &GPIO_OUT);
186 else 179 else
187 or_l(0x80000000, &GPIO_OUT); 180 or_l(0x80000000, &GPIO_OUT);
188#ifdef IRIVER_H300_SERIES
189 if(on)
190 and_l(~0x00000008,&GPIO1_OUT); /* ISD300 3.3V on */
191 else
192 or_l(0x00000008,&GPIO1_OUT); /* ISD300 3.3V off */
193#endif
194
195#elif defined(IAUDIO_X5) 181#elif defined(IAUDIO_X5)
196 /* X5 TODO */ 182 /* X5 TODO */
197#elif (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) 183#elif (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020)