summaryrefslogtreecommitdiff
path: root/board/xilinx/zynq/board.c
diff options
context:
space:
mode:
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>2014-10-28 16:59:32 +0530
committerMichal Simek <michal.simek@xilinx.com>2015-01-26 08:55:58 +0100
commitf20b37f353a9cb9012076da8dedc13c5903caf42 (patch)
tree60df5a7dfa1f72ae2177754fc9756191f21cb856 /board/xilinx/zynq/board.c
parentdd1c351ffe33dcbfa977f9b8760b8a1fd443fa11 (diff)
downloadu-boot-imx-f20b37f353a9cb9012076da8dedc13c5903caf42.zip
u-boot-imx-f20b37f353a9cb9012076da8dedc13c5903caf42.tar.gz
u-boot-imx-f20b37f353a9cb9012076da8dedc13c5903caf42.tar.bz2
ARM: zynq: provide config option to select emio
Dont send always emio value as zero for zynq_gem_initialize send it based on config. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx/zynq/board.c')
-rw-r--r--board/xilinx/zynq/board.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
index e131056..47f85c7 100644
--- a/board/xilinx/zynq/board.c
+++ b/board/xilinx/zynq/board.c
@@ -119,11 +119,13 @@ int board_eth_init(bd_t *bis)
#if defined(CONFIG_ZYNQ_GEM)
# if defined(CONFIG_ZYNQ_GEM0)
ret |= zynq_gem_initialize(bis, ZYNQ_GEM_BASEADDR0,
- CONFIG_ZYNQ_GEM_PHY_ADDR0, 0);
+ CONFIG_ZYNQ_GEM_PHY_ADDR0,
+ CONFIG_ZYNQ_GEM_EMIO0);
# endif
# if defined(CONFIG_ZYNQ_GEM1)
ret |= zynq_gem_initialize(bis, ZYNQ_GEM_BASEADDR1,
- CONFIG_ZYNQ_GEM_PHY_ADDR1, 0);
+ CONFIG_ZYNQ_GEM_PHY_ADDR1,
+ CONFIG_ZYNQ_GEM_EMIO1);
# endif
#endif
return ret;