1
0
Fork 0
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:
Jörg Hohensohn 2003-06-26 21:29:13 +00:00
parent 3019ac38b7
commit 545efb6c28
2 changed files with 8 additions and 1 deletions

View file

@ -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 ) {

View file

@ -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;