summaryrefslogtreecommitdiff
path: root/firmware/target/sh/archos
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/sh/archos')
-rw-r--r--firmware/target/sh/archos/ata-archos.c7
-rw-r--r--firmware/target/sh/archos/ata-target.h1
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
31volatile unsigned char* ata_control; 31volatile unsigned char* ata_control;
32int ata_io_address; /* 0x300 or 0x200 */
33 32
34void ata_reset(void) 33void 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
73bool ata_is_coldstart(void) 66bool 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
66extern volatile unsigned char* ata_control; 66extern volatile unsigned char* ata_control;
67extern int ata_io_address;
68 67
69void ata_reset(void); 68void ata_reset(void);
70void ata_enable(bool on); 69void ata_enable(bool on);