mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
On the H10 when we power the disk on again after spindown and poweroff we need to give it a little while to turn back on before we should try to access it. This should fix problems with disk accesses when coming from a disk poweroff state (related discussion in FS#6421).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12081 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
080e10da88
commit
041e5dceca
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ void ide_power_enable(bool on)
|
||||||
{
|
{
|
||||||
if(on){
|
if(on){
|
||||||
GPIOF_OUTPUT_VAL &=~ 0x1;
|
GPIOF_OUTPUT_VAL &=~ 0x1;
|
||||||
|
sleep(1);
|
||||||
} else {
|
} else {
|
||||||
GPIOF_OUTPUT_VAL |= 0x1;
|
GPIOF_OUTPUT_VAL |= 0x1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue