summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-03-20 12:30:18 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-03-20 12:30:18 +0000
commitabce1b9927d7d2f9ae69fae1e35c4a400db7e9cf (patch)
tree733730fbf1698c65b8711121541463f01e1b32c5 /firmware/target/arm
parent43f2382c3a2fea60785b00f375c7a7080e406371 (diff)
downloadrockbox-abce1b9927d7d2f9ae69fae1e35c4a400db7e9cf.tar.gz
rockbox-abce1b9927d7d2f9ae69fae1e35c4a400db7e9cf.zip
Submit FS#9746 by Boris Gjenero. Set PP502x IDE pins low for iPod Video when IDE power is off. Done by OF the same way, might be used by other targets as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25255 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/ipod/power-ipod.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/target/arm/ipod/power-ipod.c b/firmware/target/arm/ipod/power-ipod.c
index 46701c8d3f..897527f6aa 100644
--- a/firmware/target/arm/ipod/power-ipod.c
+++ b/firmware/target/arm/ipod/power-ipod.c
@@ -117,11 +117,22 @@ void ide_power_enable(bool on)
117 if (on) 117 if (on)
118 { 118 {
119 GPO32_VAL &= ~0x40000000; 119 GPO32_VAL &= ~0x40000000;
120 sleep(1); /* only need 4 ms */
120 DEV_EN |= DEV_IDE0; 121 DEV_EN |= DEV_IDE0;
122 GPIOG_ENABLE = 0;
123 GPIOH_ENABLE = 0;
124 GPIOI_ENABLE &= 0x40;
125 GPIOK_ENABLE &= 0XE0;
126 udelay(10);
121 } 127 }
122 else 128 else
123 { 129 {
124 DEV_EN &= ~DEV_IDE0; 130 DEV_EN &= ~DEV_IDE0;
131 udelay(10);
132 GPIOG_ENABLE = 0xFF;
133 GPIOH_ENABLE = 0xFF;
134 GPIOI_ENABLE |= 0xBF;
135 GPIOK_ENABLE |= 0x1F;
125 GPO32_VAL |= 0x40000000; 136 GPO32_VAL |= 0x40000000;
126 } 137 }
127#else /* Nano */ 138#else /* Nano */