summaryrefslogtreecommitdiff
path: root/firmware/target/sh/archos/ata-archos.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-04-11 21:26:58 +0000
committerJens Arnold <amiconn@rockbox.org>2007-04-11 21:26:58 +0000
commitd6e822cab9b4f1294a8789632c737d0d8f71ef58 (patch)
treedc6b6888ac54ff0a3f1974b87b18dfaa81e65ea4 /firmware/target/sh/archos/ata-archos.c
parent81cf65e496b94e12d962bbaf59b166244737bb3a (diff)
downloadrockbox-d6e822cab9b4f1294a8789632c737d0d8f71ef58.tar.gz
rockbox-d6e822cab9b4f1294a8789632c737d0d8f71ef58.zip
Get rid of some old archos debug cruft (USB polarity, PR polarity and ATA address are all derived from the hw mask, and master/slave isn't displayed on other targets either). * Get rid of all the USB*STYLE macros (except USB_IPODSTYLE).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13112 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/sh/archos/ata-archos.c')
-rw-r--r--firmware/target/sh/archos/ata-archos.c7
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
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)