summaryrefslogtreecommitdiff
path: root/firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2006-12-29 02:49:12 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2006-12-29 02:49:12 +0000
commit295367686ec9855c4d90f68a6003e819fef8e7ab (patch)
treeb4077ffb8d2283bf199ad12a90322be77040c2fd /firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c
parent995a804defda23233ccbdd859023f4ba3ecba0bf (diff)
downloadrockbox-295367686ec9855c4d90f68a6003e819fef8e7ab.tar.gz
rockbox-295367686ec9855c4d90f68a6003e819fef8e7ab.zip
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
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.c9
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
27void ata_reset(void) 27void 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
31void ata_enable(bool on) 35void 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
36bool ata_is_coldstart(void) 43bool ata_is_coldstart(void)