diff options
Diffstat (limited to 'firmware/target/sh')
-rw-r--r-- | firmware/target/sh/archos/ata-archos.c | 7 | ||||
-rw-r--r-- | firmware/target/sh/archos/ata-target.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/firmware/target/sh/archos/ata-archos.c b/firmware/target/sh/archos/ata-archos.c index c685700fa3..5ad30d6891 100644 --- a/firmware/target/sh/archos/ata-archos.c +++ b/firmware/target/sh/archos/ata-archos.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #define ATA_CONTROL2 ((volatile unsigned char*)0x06200306) | 29 | #define ATA_CONTROL2 ((volatile unsigned char*)0x06200306) |
30 | 30 | ||
31 | volatile unsigned char* ata_control; | 31 | volatile unsigned char* ata_control; |
32 | int ata_io_address; /* 0x300 or 0x200 */ | ||
33 | 32 | ||
34 | void ata_reset(void) | 33 | void ata_reset(void) |
35 | { | 34 | { |
@@ -59,15 +58,9 @@ void ata_device_init(void) | |||
59 | PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */ | 58 | PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */ |
60 | 59 | ||
61 | if (read_hw_mask() & ATA_ADDRESS_200) | 60 | if (read_hw_mask() & ATA_ADDRESS_200) |
62 | { | ||
63 | ata_io_address = 0x200; /* For debug purposes only */ | ||
64 | ata_control = ATA_CONTROL1; | 61 | ata_control = ATA_CONTROL1; |
65 | } | ||
66 | else | 62 | else |
67 | { | ||
68 | ata_io_address = 0x300; /* For debug purposes only */ | ||
69 | ata_control = ATA_CONTROL2; | 63 | ata_control = ATA_CONTROL2; |
70 | } | ||
71 | } | 64 | } |
72 | 65 | ||
73 | bool ata_is_coldstart(void) | 66 | bool ata_is_coldstart(void) |
diff --git a/firmware/target/sh/archos/ata-target.h b/firmware/target/sh/archos/ata-target.h index 77f1f9d232..91585626c6 100644 --- a/firmware/target/sh/archos/ata-target.h +++ b/firmware/target/sh/archos/ata-target.h | |||
@@ -64,7 +64,6 @@ | |||
64 | #define SET_16BITREG(reg,val) reg = (val) | 64 | #define SET_16BITREG(reg,val) reg = (val) |
65 | 65 | ||
66 | extern volatile unsigned char* ata_control; | 66 | extern volatile unsigned char* ata_control; |
67 | extern int ata_io_address; | ||
68 | 67 | ||
69 | void ata_reset(void); | 68 | void ata_reset(void); |
70 | void ata_enable(bool on); | 69 | void ata_enable(bool on); |