summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2007-05-15 00:22:51 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2007-05-15 00:22:51 +0000
commit670559f86836cd4036b8ae31e0cc65bd65ecf814 (patch)
tree388286569fe478830ab3b900f032da0cc880e197
parent6190a0d68d4979a9933c6007b69686a08ec4f457 (diff)
downloadrockbox-670559f86836cd4036b8ae31e0cc65bd65ecf814.tar.gz
rockbox-670559f86836cd4036b8ae31e0cc65bd65ecf814.zip
Make sure that the IDE power pin is properly initialized
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13389 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/s3c2440/gigabeat-fx/power-meg-fx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/power-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/power-meg-fx.c
index a8a86479ab..7921e0ccd4 100644
--- a/firmware/target/arm/s3c2440/gigabeat-fx/power-meg-fx.c
+++ b/firmware/target/arm/s3c2440/gigabeat-fx/power-meg-fx.c
@@ -30,6 +30,10 @@
void power_init(void)
{
+ /* Initialize IDE power pin */
+ GPGCON=( GPGCON&~(1<<23) ) | (1<<22); /* Make the pin an output */
+ GPGUP |= 1<<11; /* Disable pullup in SOC as we are now driving */
+ ide_power_enable(true);
/* Charger detect */
}