diff options
Diffstat (limited to 'firmware/target/sh/archos/ata-archos.c')
-rw-r--r-- | firmware/target/sh/archos/ata-archos.c | 7 |
1 files changed, 0 insertions, 7 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) |