]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARM: zynq: provide config option to select emio
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Tue, 28 Oct 2014 11:29:32 +0000 (16:59 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 26 Jan 2015 07:55:58 +0000 (08:55 +0100)
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>
board/xilinx/zynq/board.c
include/configs/zynq-common.h

index e1310565451433fa73ce8ec5fee52bdbe4f20d63..47f85c7fb42a930a0b010247373090fa24fabc36 100644 (file)
@@ -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;
index cbafba1cc395e567af2baa3c390674f314bee887..0359e3de917ead547edf3601a7feb842a186d97f 100644 (file)
 # define CONFIG_BOOTP_GATEWAY
 # define CONFIG_BOOTP_HOSTNAME
 # define CONFIG_BOOTP_MAY_FAIL
+# if !defined(CONFIG_ZYNQ_GEM_EMIO0)
+#  define CONFIG_ZYNQ_GEM_EMIO0        0
+# endif
+# if !defined(CONFIG_ZYNQ_GEM_EMIO1)
+#  define CONFIG_ZYNQ_GEM_EMIO1        0
+# endif
 #endif
 
 /* SPI */