Skip to content
Snippets Groups Projects
Commit f20b37f3 authored by Siva Durga Prasad Paladugu's avatar Siva Durga Prasad Paladugu Committed by Michal Simek
Browse files

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: default avatarSiva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent dd1c351f
No related branches found
No related tags found
No related merge requests found
...@@ -119,11 +119,13 @@ int board_eth_init(bd_t *bis) ...@@ -119,11 +119,13 @@ int board_eth_init(bd_t *bis)
#if defined(CONFIG_ZYNQ_GEM) #if defined(CONFIG_ZYNQ_GEM)
# if defined(CONFIG_ZYNQ_GEM0) # if defined(CONFIG_ZYNQ_GEM0)
ret |= zynq_gem_initialize(bis, ZYNQ_GEM_BASEADDR0, ret |= zynq_gem_initialize(bis, ZYNQ_GEM_BASEADDR0,
CONFIG_ZYNQ_GEM_PHY_ADDR0, 0); CONFIG_ZYNQ_GEM_PHY_ADDR0,
CONFIG_ZYNQ_GEM_EMIO0);
# endif # endif
# if defined(CONFIG_ZYNQ_GEM1) # if defined(CONFIG_ZYNQ_GEM1)
ret |= zynq_gem_initialize(bis, ZYNQ_GEM_BASEADDR1, 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
#endif #endif
return ret; return ret;
......
...@@ -52,6 +52,12 @@ ...@@ -52,6 +52,12 @@
# define CONFIG_BOOTP_GATEWAY # define CONFIG_BOOTP_GATEWAY
# define CONFIG_BOOTP_HOSTNAME # define CONFIG_BOOTP_HOSTNAME
# define CONFIG_BOOTP_MAY_FAIL # 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 #endif
/* SPI */ /* SPI */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment