diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c index 51837dd653..7250a2437b 100644 --- a/firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c +++ b/firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c | |||
@@ -35,10 +35,6 @@ | |||
35 | #define ATA_RESET_ENABLE (IO_GIO_BITCLR0 = 1 << 10) | 35 | #define ATA_RESET_ENABLE (IO_GIO_BITCLR0 = 1 << 10) |
36 | #define ATA_RESET_DISABLE (IO_GIO_BITSET0 = 1 << 10) | 36 | #define ATA_RESET_DISABLE (IO_GIO_BITSET0 = 1 << 10) |
37 | 37 | ||
38 | /* ATA_EN on C7C68300 */ | ||
39 | #define USB_ATA_ENABLE (IO_GIO_BITSET0 = 1 << 2) | ||
40 | #define USB_ATA_DISABLE (IO_GIO_BITCLR0 = 1 << 2) | ||
41 | |||
42 | void ata_reset(void) | 38 | void ata_reset(void) |
43 | { | 39 | { |
44 | ATA_RESET_ENABLE; | 40 | ATA_RESET_ENABLE; |
@@ -50,10 +46,8 @@ void ata_reset(void) | |||
50 | /* This function is called before enabling the USB bus */ | 46 | /* This function is called before enabling the USB bus */ |
51 | void ata_enable(bool on) | 47 | void ata_enable(bool on) |
52 | { | 48 | { |
53 | if(on) | 49 | (void) on; |
54 | USB_ATA_DISABLE; | 50 | return; |
55 | else | ||
56 | USB_ATA_ENABLE; | ||
57 | } | 51 | } |
58 | 52 | ||
59 | bool ata_is_coldstart(void) | 53 | bool ata_is_coldstart(void) |
@@ -64,7 +58,12 @@ bool ata_is_coldstart(void) | |||
64 | void ata_device_init(void) | 58 | void ata_device_init(void) |
65 | { | 59 | { |
66 | /* ATA reset */ | 60 | /* ATA reset */ |
61 | /* 10: output, non-inverted, no-irq, falling edge, no-chat, normal */ | ||
62 | dm320_set_io(10, false, false, false, false, false, 0x00); | ||
67 | ATA_RESET_DISABLE; /* Set the pin to disable an active low reset */ | 63 | ATA_RESET_DISABLE; /* Set the pin to disable an active low reset */ |
68 | IO_GIO_DIR0&=~(1<<10); | 64 | |
65 | /* ATA INT (currently unused) */ | ||
66 | /* 11: input , inverted, irq, any edge, no-chat, normal */ | ||
67 | dm320_set_io(11, true, true, true, true, false, 0x00); | ||
69 | } | 68 | } |
70 | 69 | ||