summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRenaud Barbier <renaud.barbier@ge.com>2012-08-07 15:30:55 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-08-10 21:15:36 +0200
commitfdf4a8c67204361ee39a1d8ebc56c78dd303e322 (patch)
treedb8ec4dcbcee5c802af633db531d6f345cd5ae57 /arch
parent58713d32746d49ad39ba17658fe82f1b98b80b2e (diff)
downloadbarebox-fdf4a8c67204361ee39a1d8ebc56c78dd303e322.tar.gz
barebox-fdf4a8c67204361ee39a1d8ebc56c78dd303e322.tar.xz
ppc: GIANFAR base address definition
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@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h7
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 b80224952d..bf0f7f581a 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__*/