forked from len0rd/rockbox
H10: Disable IDE controller when the disk is powered down like on ipods.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17402 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
607b63a827
commit
82cda9b091
1 changed files with 2 additions and 0 deletions
|
|
@ -59,7 +59,9 @@ void ide_power_enable(bool on)
|
|||
{
|
||||
if(on){
|
||||
GPIO_CLEAR_BITWISE(GPIOF_OUTPUT_VAL, 0x01);
|
||||
DEV_EN |= DEV_IDE0;
|
||||
} else {
|
||||
DEV_EN &= ~DEV_IDE0;
|
||||
GPIO_SET_BITWISE(GPIOF_OUTPUT_VAL, 0x01);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue