summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-02-06 03:11:03 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-02-06 03:11:03 +0000
commit2c6f08ddfc9538988818b6a2b65ecd638571c49c (patch)
tree3453d0478ec03c99a6a8d57a18225875b6bb4f8c /firmware/drivers/ata.c
parent3a777cd79c1a547e168ac142e58ed79f07daadc3 (diff)
downloadrockbox-2c6f08ddfc9538988818b6a2b65ecd638571c49c.tar.gz
rockbox-2c6f08ddfc9538988818b6a2b65ecd638571c49c.zip
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
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 91ebf3fabd..f4a931b6c3 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -1361,9 +1361,9 @@ int ata_init(void)
1361 or_b(0x02, &PAIORH); /* output for ATA reset */ 1361 or_b(0x02, &PAIORH); /* output for ATA reset */
1362 or_b(0x02, &PADRH); /* release ATA reset */ 1362 or_b(0x02, &PADRH); /* release ATA reset */
1363 PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */ 1363 PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */
1364#elif defined HAVE_MCF5249 1364#elif CONFIG_CPU == MCF5249
1365 /* Enable disk LED & ISD chip power control */ 1365 /* Enable disk LED & ISD chip power control */
1366 GPIO_OUT &= ~0x0000200; 1366 GPIO_OUT &= ~0x0000240;
1367 GPIO_ENABLE |= 0x00000240; 1367 GPIO_ENABLE |= 0x00000240;
1368 GPIO_FUNCTION |= 0x00000200; 1368 GPIO_FUNCTION |= 0x00000200;
1369 1369