From a3ed6e9c7a90cd5dcffed397c894e480672d667c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bernardy Date: Sat, 19 Feb 2005 21:34:03 +0000 Subject: Gmini * advances in the handling of the smsc chip * moved stuff to where it belongs git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6023 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ata.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'firmware/drivers/ata.c') diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 339073969c..cfdae2c090 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -1070,6 +1070,15 @@ int ata_hard_reset(void) GPIO_OUT |= 0x00080000; sleep(1); /* > 25us */ +#elif CONFIG_CPU == TCC730 + P1 |= 0x04; + P10CON &= ~0x56; + sleep(1); /* > ???ms */ + + P10CON |= 0x56; + P10 &= ~0x56; + P1 &= ~0x04; + sleep(1); /* > ???ms */ #endif /* state HRR2 */ @@ -1196,6 +1205,11 @@ void ata_enable(bool on) GPIO_ENABLE |= 0x00040000; GPIO_FUNCTION |= 0x00040000; +#elif CONFIG_CPU == TCC730 + if(on) + P1 |= 0x08; + else + P1 &= ~0x08; #endif } -- cgit v1.2.3