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 @@ | |||
26 | 26 | ||
27 | void ata_reset(void) | 27 | void ata_reset(void) |
28 | { | 28 | { |
29 | GPGDAT &= ~(1 << 10); | ||
30 | sleep(1); /* > 25us */ | ||
31 | GPGDAT |= (1 << 10); | ||
32 | sleep(1); /* > 2ms */ | ||
29 | } | 33 | } |
30 | 34 | ||
31 | void ata_enable(bool on) | 35 | void ata_enable(bool on) |
32 | { | 36 | { |
33 | (void)on; | 37 | if(on) |
38 | GPGDAT &= ~(1 << 12); | ||
39 | else | ||
40 | GPGDAT |= (1 << 12); | ||
34 | } | 41 | } |
35 | 42 | ||
36 | bool ata_is_coldstart(void) | 43 | bool ata_is_coldstart(void) |