summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Andrey <david.andrey@netmodule.com>2013-04-04 19:13:07 +0200
committerMichal Simek <michal.simek@xilinx.com>2013-04-30 11:39:23 +0200
commit117cd4cc103443b442afc4d48c8d3920f6c171c0 (patch)
tree7232bd81036fc2d206b308e2e6159fa94a314b0a /include
parent7193653e8dddf8f232c19e16a4ca3c5052c71f09 (diff)
downloadu-boot-imx-117cd4cc103443b442afc4d48c8d3920f6c171c0.zip
u-boot-imx-117cd4cc103443b442afc4d48c8d3920f6c171c0.tar.gz
u-boot-imx-117cd4cc103443b442afc4d48c8d3920f6c171c0.tar.bz2
net: gem: Pass phy address to init
Pass the PHY address to the driver init to allow parallel use of both interfaces Signed-off-by: David Andrey <david.andrey@netmodule.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/zynq.h1
-rw-r--r--include/netdev.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/zynq.h b/include/configs/zynq.h
index ebe1b1b..3b23354 100644
--- a/include/configs/zynq.h
+++ b/include/configs/zynq.h
@@ -54,6 +54,7 @@
#define CONFIG_NET_MULTI
#define CONFIG_ZYNQ_GEM
#define CONFIG_ZYNQ_GEM0
+#define CONFIG_ZYNQ_GEM_PHY_ADDR0 7
#if defined(CONFIG_ZYNQ_DCC)
# define CONFIG_ARM_DCC
diff --git a/include/netdev.h b/include/netdev.h
index fd3e243..81117b1 100644
--- a/include/netdev.h
+++ b/include/netdev.h
@@ -104,7 +104,7 @@ int xilinx_emaclite_initialize(bd_t *bis, unsigned long base_addr,
int txpp, int rxpp);
int xilinx_ll_temac_eth_init(bd_t *bis, unsigned long base_addr, int flags,
unsigned long ctrl_addr);
-int zynq_gem_initialize(bd_t *bis, int base_addr);
+int zynq_gem_initialize(bd_t *bis, int base_addr, int phy_addr);
/*
* As long as the Xilinx xps_ll_temac ethernet driver has not its own interface
* exported by a public hader file, we need a global definition at this point.