summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-11-18 14:06:50 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-11-18 14:06:50 +0000
commitf4c2b96daa09e58e307d2f3998932553294b9098 (patch)
treef75bd401dc219faed5d5e70a96d44a798f2cbb4a
parentfa24eb940a6483c110beca691225a6968848d78b (diff)
downloadrockbox-f4c2b96daa09e58e307d2f3998932553294b9098.tar.gz
rockbox-f4c2b96daa09e58e307d2f3998932553294b9098.zip
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.c2
-rw-r--r--firmware/export/config-h100.h2
-rw-r--r--firmware/export/config-h120.h2
3 files changed, 6 insertions, 0 deletions
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)
1413 or_b(0x02, &PADRH); /* release ATA reset */ 1413 or_b(0x02, &PADRH); /* release ATA reset */
1414 PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */ 1414 PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */
1415#elif CONFIG_CPU == MCF5249 1415#elif CONFIG_CPU == MCF5249
1416#ifdef HAVE_ATA_LED_CTRL
1416 /* Enable disk LED & ISD chip power control */ 1417 /* Enable disk LED & ISD chip power control */
1417 and_l(~0x0000240, &GPIO_OUT); 1418 and_l(~0x0000240, &GPIO_OUT);
1418 or_l(0x00000240, &GPIO_ENABLE); 1419 or_l(0x00000240, &GPIO_ENABLE);
1419 or_l(0x00000200, &GPIO_FUNCTION); 1420 or_l(0x00000200, &GPIO_FUNCTION);
1421#endif
1420 1422
1421 /* ATA reset */ 1423 /* ATA reset */
1422 or_l(0x00080000, &GPIO_OUT); 1424 or_l(0x00080000, &GPIO_OUT);
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h
index 19bb99bc04..35b35e0f27 100644
--- a/firmware/export/config-h100.h
+++ b/firmware/export/config-h100.h
@@ -91,6 +91,8 @@
91 91
92#define USB_IRIVERSTYLE 92#define USB_IRIVERSTYLE
93 93
94#define HAVE_ATA_LED_CTRL
95
94/* Define this if you have adjustable CPU frequency */ 96/* Define this if you have adjustable CPU frequency */
95#define HAVE_ADJUSTABLE_CPU_FREQ 97#define HAVE_ADJUSTABLE_CPU_FREQ
96 98
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h
index b2c34c5a55..e6c829a2a5 100644
--- a/firmware/export/config-h120.h
+++ b/firmware/export/config-h120.h
@@ -88,6 +88,8 @@
88 88
89#define USB_IRIVERSTYLE 89#define USB_IRIVERSTYLE
90 90
91#define HAVE_ATA_LED_CTRL
92
91/* Define this if you have adjustable CPU frequency */ 93/* Define this if you have adjustable CPU frequency */
92#define HAVE_ADJUSTABLE_CPU_FREQ 94#define HAVE_ADJUSTABLE_CPU_FREQ
93 95