summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index babbab016a..39827f7188 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -1476,12 +1476,6 @@ int ata_hard_reset(void)
1476 /* state HRR1 */ 1476 /* state HRR1 */
1477 or_b(0x02, &PADRH); /* negate _RESET */ 1477 or_b(0x02, &PADRH); /* negate _RESET */
1478 sleep(1); /* > 2ms */ 1478 sleep(1); /* > 2ms */
1479#elif defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)
1480 and_l(~0x00080000, &GPIO_OUT);
1481 sleep(1); /* > 25us */
1482
1483 or_l(0x00080000, &GPIO_OUT);
1484 sleep(1); /* > 25us */
1485#elif CONFIG_CPU == TCC730 1479#elif CONFIG_CPU == TCC730
1486 1480
1487 P6 &= ~0x40; 1481 P6 &= ~0x40;
@@ -1627,14 +1621,6 @@ void ata_enable(bool on)
1627 or_b(0x80, &PADRL); /* disable ATA */ 1621 or_b(0x80, &PADRL); /* disable ATA */
1628 1622
1629 or_b(0x80, &PAIORL); 1623 or_b(0x80, &PAIORL);
1630#elif defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)
1631 if(on)
1632 and_l(~0x0040000, &GPIO_OUT);
1633 else
1634 or_l(0x0040000, &GPIO_OUT);
1635
1636 or_l(0x00040000, &GPIO_ENABLE);
1637 or_l(0x00040000, &GPIO_FUNCTION);
1638#elif CONFIG_CPU == TCC730 1624#elif CONFIG_CPU == TCC730
1639 1625
1640#endif 1626#endif
@@ -1788,8 +1774,6 @@ int ata_init(void)
1788 bool coldstart = ata_is_coldstart(); 1774 bool coldstart = ata_is_coldstart();
1789#elif CONFIG_CPU == TCC730 1775#elif CONFIG_CPU == TCC730
1790 bool coldstart = (P1 & 0x80) == 0; 1776 bool coldstart = (P1 & 0x80) == 0;
1791#elif defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)
1792 bool coldstart = (GPIO_FUNCTION & 0x00080000) == 0;
1793#else 1777#else
1794 bool coldstart = (PACR2 & 0x4000) != 0; 1778 bool coldstart = (PACR2 & 0x4000) != 0;
1795#endif 1779#endif