diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-11-18 14:06:50 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-11-18 14:06:50 +0000 |
| commit | f4c2b96daa09e58e307d2f3998932553294b9098 (patch) | |
| tree | f75bd401dc219faed5d5e70a96d44a798f2cbb4a | |
| parent | fa24eb940a6483c110beca691225a6968848d78b (diff) | |
| download | rockbox-f4c2b96daa09e58e307d2f3998932553294b9098.zip rockbox-f4c2b96daa09e58e307d2f3998932553294b9098.tar.gz rockbox-f4c2b96daa09e58e307d2f3998932553294b9098.tar.bz2 rockbox-f4c2b96daa09e58e307d2f3998932553294b9098.tar.xz | |
H300 has no ATA LED
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7961 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/drivers/ata.c | 2 | ||||
| -rw-r--r-- | firmware/export/config-h100.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-h120.h | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 9cc49c1..a3dd8be 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); diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h index 19bb99b..35b35e0 100644 --- a/firmware/export/config-h100.h +++ b/firmware/export/config-h100.h @@ -91,6 +91,8 @@ #define USB_IRIVERSTYLE +#define HAVE_ATA_LED_CTRL + /* Define this if you have adjustable CPU frequency */ #define HAVE_ADJUSTABLE_CPU_FREQ diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h index b2c34c5..e6c829a 100644 --- a/firmware/export/config-h120.h +++ b/firmware/export/config-h120.h @@ -88,6 +88,8 @@ #define USB_IRIVERSTYLE +#define HAVE_ATA_LED_CTRL + /* Define this if you have adjustable CPU frequency */ #define HAVE_ADJUSTABLE_CPU_FREQ |