Port A inits for cold-start capability
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3780 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
09e42d5657
commit
b2a2022cc3
1 changed files with 5 additions and 0 deletions
|
@ -441,6 +441,11 @@ int ata_wait_for_rdy(void)
|
|||
|
||||
int ata_spindown(int time)
|
||||
{
|
||||
/* Port A setup */
|
||||
PAIOR |= 0x0280; /* output for ATA reset, IDE enable */
|
||||
PADR |= 0x0200; /* release ATA reset */
|
||||
PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */
|
||||
|
||||
/* activate ATA */
|
||||
PADR &= ~0x80;
|
||||
|
||||
|
|
Loading…
Reference in a new issue