forked from len0rd/rockbox
Ondio PACR inits for cold start
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5141 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
47ba627f61
commit
c4b326c215
1 changed files with 4 additions and 0 deletions
|
|
@ -585,6 +585,7 @@ int ata_soft_reset(void)
|
||||||
void ata_enable(bool on)
|
void ata_enable(bool on)
|
||||||
{
|
{
|
||||||
PBCR1 &= ~0x0CF0; /* PB13, PB11 and PB10 become GPIOs, if not modified below */
|
PBCR1 &= ~0x0CF0; /* PB13, PB11 and PB10 become GPIOs, if not modified below */
|
||||||
|
PACR2 &= ~0x4000; /* use PA7 (bridge reset) as GPIO */
|
||||||
if (on)
|
if (on)
|
||||||
{
|
{
|
||||||
PBCR1 |= 0x08A0; /* as SCK1, TxD1, RxD1 */
|
PBCR1 |= 0x08A0; /* as SCK1, TxD1, RxD1 */
|
||||||
|
|
@ -607,6 +608,8 @@ int ata_init(void)
|
||||||
led(false);
|
led(false);
|
||||||
|
|
||||||
/* Port setup */
|
/* Port setup */
|
||||||
|
PACR1 &= ~0x0F00; /* GPIO function for PA12, /IRQ1 for PA13 */
|
||||||
|
PACR1 |= 0x0400;
|
||||||
PADR |= 0x0680; /* set all the selects + reset high (=inactive) */
|
PADR |= 0x0680; /* set all the selects + reset high (=inactive) */
|
||||||
PAIOR |= 0x1680; /* make outputs for them and the PA12 clock gate */
|
PAIOR |= 0x1680; /* make outputs for them and the PA12 clock gate */
|
||||||
|
|
||||||
|
|
@ -638,3 +641,4 @@ int ata_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* #ifdef HAVE_MMC */
|
#endif /* #ifdef HAVE_MMC */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue