[PATCH 1/3] ppc: GIANFAR base address definition

Renaud Barbier renaud.barbier at ge.com
Wed Jul 25 12:00:59 EDT 2012


In view of the introduction of the GIANFAR Ethernet driver,
the mdio and gianfar base address are defined.

Signed-off-by: Renaud Barbier <renaud.barbier at ge.com>
---
 arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h b/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h
index b802249..bf0f7f5 100644
--- a/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h
+++ b/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h
@@ -39,6 +39,11 @@
 
 #define MPC85xx_GPIO_OFFSET	0xf000
 #define MPC85xx_L2_OFFSET	0x20000
+#ifdef CONFIG_TSECV2
+#define TSEC1_OFFSET		0xB0000
+#else
+#define TSEC1_OFFSET		0x24000
+#endif
 
 #define MPC85xx_PIC_OFFSET	0x40000
 #define MPC85xx_GUTS_OFFSET	0xe0000
@@ -129,4 +134,6 @@
 #define		MPC85xx_DEVDISR_TB1	0x00001000
 #define MPC85xx_GUTS_RSTCR_OFFSET	0xb0
 
+#define GFAR_BASE_ADDR		(CFG_IMMR + TSEC1_OFFSET)
+#define MDIO_BASE_ADDR		(CFG_IMMR + 0x24000)
 #endif /*__IMMAP_85xx__*/
-- 
1.7.1




More information about the barebox mailing list