[U-Boot] [PATCH 12/29] include/configs/mpc5121ads.h: prepare removal of include/mpc512x.h

Wolfgang Denk wd at denx.de
Sat May 9 21:50:51 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/mpc5121ads.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/configs/mpc5121ads.h b/include/configs/mpc5121ads.h
index ce69b27..f79c92c 100644
--- a/include/configs/mpc5121ads.h
+++ b/include/configs/mpc5121ads.h
@@ -520,7 +520,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)
@@ -534,7 +534,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