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
This commit is contained in:
Karl Kurbjun 2007-05-15 00:22:51 +00:00
parent 6190a0d68d
commit 670559f868

View file

@ -30,6 +30,10 @@
void power_init(void) 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 */ /* Charger detect */
} }