diff options
Diffstat (limited to 'firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c')
-rw-r--r-- | firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c | 9 |
1 files changed, 8 insertions, 1 deletions
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) |