summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 */
}