From 295367686ec9855c4d90f68a6003e819fef8e7ab Mon Sep 17 00:00:00 2001 From: Marcoen Hirschberg Date: Fri, 29 Dec 2006 02:49:12 +0000 Subject: merge a big part of the unofficial gigabeat cvs back. Includes working bootloader and rockbox with audio. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11850 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c') diff --git a/firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c b/firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c index 58fec1e6a3..ec0f3fe6ca 100644 --- a/firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c +++ b/firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c @@ -26,11 +26,18 @@ void ata_reset(void) { + GPGDAT &= ~(1 << 10); + sleep(1); /* > 25us */ + GPGDAT |= (1 << 10); + sleep(1); /* > 2ms */ } void ata_enable(bool on) { - (void)on; + if(on) + GPGDAT &= ~(1 << 12); + else + GPGDAT |= (1 << 12); } bool ata_is_coldstart(void) -- cgit v1.2.3