mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 05:32:40 -05:00
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:
parent
6190a0d68d
commit
670559f868
1 changed files with 4 additions and 0 deletions
|
|
@ -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 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue