1
0
Fork 0
forked from len0rd/rockbox

New players: switch on the HD in ata_init()

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5443 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2004-11-20 00:15:12 +00:00
parent b8b94f171a
commit 2a89e7d122

View file

@ -1131,6 +1131,15 @@ int ata_init(void)
or_b(0x02, &PAIORH); /* output for ATA reset */
or_b(0x02, &PADRH); /* release ATA reset */
PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */
#ifdef HAVE_LCD_CHARCELLS
if (read_rom_version() > 451) /* new player: power on the HD */
{
PBCR2 &= ~0x0300; /* Set PB4 (IDE power) to GPIO */
or_b(0x10, &PBDRL); /* ... high */
or_b(0x10, &PBIORL); /* ... and output */
}
#endif
#elif defined HAVE_SCF5249
#endif