forked from len0rd/rockbox
port inits for cold start ability
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3764 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3019ac38b7
commit
545efb6c28
2 changed files with 8 additions and 1 deletions
|
|
@ -801,6 +801,11 @@ int ata_init(void)
|
|||
|
||||
led(false);
|
||||
|
||||
/* Port A setup */
|
||||
PAIOR |= 0x0200; /* output for ATA reset */
|
||||
PADR |= 0x0200; /* release ATA reset */
|
||||
PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */
|
||||
|
||||
ata_enable(true);
|
||||
|
||||
if ( !initialized ) {
|
||||
|
|
|
|||
|
|
@ -63,7 +63,9 @@ void charger_enable(bool on)
|
|||
void ide_power_enable(bool on)
|
||||
{
|
||||
#ifdef HAVE_ATA_POWER_OFF
|
||||
if(on)
|
||||
PAIOR |= 0x20; /* there's no power driver init, so I have to do that here */
|
||||
|
||||
if(on)
|
||||
PADR |= 0x20;
|
||||
else
|
||||
PADR &= ~0x20;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue