From 04188968f6439b04a3e362f7ce2b77c05d554bdb Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Sat, 29 Sep 2007 16:52:45 +0000 Subject: [PATCH] ATA works - dumb mistake git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14905 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/olympus/mrobe-500/ata-target.h | 8 ++------ 1 file 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))))