Added ISD chip power control setup and used proper define for the MCF5249
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5808 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3a777cd79c
commit
2c6f08ddfc
1 changed files with 2 additions and 2 deletions
|
@ -1361,9 +1361,9 @@ 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) */
|
||||||
#elif defined HAVE_MCF5249
|
#elif CONFIG_CPU == MCF5249
|
||||||
/* Enable disk LED & ISD chip power control */
|
/* Enable disk LED & ISD chip power control */
|
||||||
GPIO_OUT &= ~0x0000200;
|
GPIO_OUT &= ~0x0000240;
|
||||||
GPIO_ENABLE |= 0x00000240;
|
GPIO_ENABLE |= 0x00000240;
|
||||||
GPIO_FUNCTION |= 0x00000200;
|
GPIO_FUNCTION |= 0x00000200;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue