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:
parent
b8b94f171a
commit
2a89e7d122
1 changed files with 9 additions and 0 deletions
|
|
@ -1131,6 +1131,15 @@ int ata_init(void)
|
||||||
or_b(0x02, &PAIORH); /* output for ATA reset */
|
or_b(0x02, &PAIORH); /* output for ATA reset */
|
||||||
or_b(0x02, &PADRH); /* release ATA reset */
|
or_b(0x02, &PADRH); /* release ATA reset */
|
||||||
PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */
|
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
|
#elif defined HAVE_SCF5249
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue