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:
Linus Nielsen Feltzing 2005-02-06 03:11:03 +00:00
parent 3a777cd79c
commit 2c6f08ddfc

View file

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