From f4c2b96daa09e58e307d2f3998932553294b9098 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 18 Nov 2005 14:06:50 +0000 Subject: H300 has no ATA LED git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7961 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ata.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware/drivers/ata.c') diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 9cc49c1731..a3dd8be241 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -1413,10 +1413,12 @@ int ata_init(void) or_b(0x02, &PADRH); /* release ATA reset */ PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */ #elif CONFIG_CPU == MCF5249 +#ifdef HAVE_ATA_LED_CTRL /* Enable disk LED & ISD chip power control */ and_l(~0x0000240, &GPIO_OUT); or_l(0x00000240, &GPIO_ENABLE); or_l(0x00000200, &GPIO_FUNCTION); +#endif /* ATA reset */ or_l(0x00080000, &GPIO_OUT); -- cgit v1.2.3