summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2007-09-29 16:52:45 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2007-09-29 16:52:45 +0000
commit04188968f6439b04a3e362f7ce2b77c05d554bdb (patch)
treebb77d4f3c0ef4fb7e811feb196ee3e6af754223d /firmware/target
parentc6c7b73a15ac72a4b24041a7a595cb0bc3087bd2 (diff)
ATA works - dumb mistake
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14905 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/olympus/mrobe-500/ata-target.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/firmware/target/arm/olympus/mrobe-500/ata-target.h b/firmware/target/arm/olympus/mrobe-500/ata-target.h
index 8b7dadf5e9..97b6f62c86 100644
--- a/firmware/target/arm/olympus/mrobe-500/ata-target.h
+++ b/firmware/target/arm/olympus/mrobe-500/ata-target.h
@@ -23,14 +23,10 @@
/* Plain C read & write loops */
#define PREFER_C_READING
#define PREFER_C_WRITING
-#if !defined(BOOTLOADER)
-//#define ATA_OPTIMIZED_READING
-//void copy_read_sectors(unsigned char* buf, int wordcount);
-#endif
#define ATA_IOBASE 0x50000000
-#define REGISTER_OFFSET 0x00400000 /* A21 = High */
-#define CONTROL_OFFSET 0x00800000 /* A22 = High */
+#define REGISTER_OFFSET (ATA_IOBASE+0x00400000) /* A21 = High */
+#define CONTROL_OFFSET (ATA_IOBASE+0x00800000) /* A22 = High */
#define IDE_SHIFT 17
#define ATA_DATA (*((volatile unsigned short*)(REGISTER_OFFSET + (0x00 << IDE_SHIFT))))
#define ATA_ERROR (*((volatile unsigned char*)(REGISTER_OFFSET + (0x01 << IDE_SHIFT))))