[U-Boot] [PATCH 13/29] include/configs/aria.h: prepare removal of include/mpc512x.h
Wolfgang Denk
wd at denx.de
Sat May 9 21:50:52 CEST 2009
Instead of using a #define'd register offset, use a function that
provides the PATA controller's base address.
This allows us to get rid of all such register offset definitions
(at least for use in C files).
Signed-off-by: Wolfgang Denk <wd at denx.de>
Cc: John Rigby <jcrigby at gmail.com>
---
include/configs/aria.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/configs/aria.h b/include/configs/aria.h
index d335a52..dde2a0e 100644
--- a/include/configs/aria.h
+++ b/include/configs/aria.h
@@ -512,7 +512,7 @@
#define CONFIG_SYS_IDE_MAXDEVICE 2 /* max. 1 drive per IDE bus */
#define CONFIG_SYS_ATA_IDE0_OFFSET 0x0000
-#define CONFIG_SYS_ATA_BASE_ADDR MPC512X_PATA
+#define CONFIG_SYS_ATA_BASE_ADDR get_pata_base()
/* Offset for data I/O RefMan MPC5121EE Table 28-10 */
#define CONFIG_SYS_ATA_DATA_OFFSET (0x00A0)
@@ -526,7 +526,7 @@
/* Interval between registers */
#define CONFIG_SYS_ATA_STRIDE 4
-#define ATA_BASE_ADDR MPC512X_PATA
+#define ATA_BASE_ADDR get_pata_base()
/*
* Control register bit definitions
--
1.6.0.6
More information about the U-Boot
mailing list