net: axi_ethernet: Add driver to u-boot v3
Subsystems (2)
PATCH v3 1/1 net: axi_ethernet: Add driver to u-boot v3
Add the first axi_ethernet driver for little-endian Microblaze.
Signed-off-by Michal Simek <[email protected]>
---
v2:
- Fix return addreses
- Fix NULL pointer defer for priv structure
v3:
- Freeing allocated memory when initialization failed
--- .../xilinx/microblaze-generic/microblaze-generic.c | 4 + drivers/net/Makefile | 1 + drivers/net/xilinx_axi_emac.c | 537 ++++++++++++++++++++ include/configs/microblaze-generic.h | 3 + 4 files changed, 545 insertions(+), 0 deletions(-) create mode 100644 drivers/net/xilinx_axi_emac.c
board/xilinx/microblaze-generic/microblaze-generic.c +4 -0
@@ -73,6 +73,10 @@ int board_eth_init(bd_t *bis) {int ret =0 ; +#ifdef CONFIG_XILINX_AXIEMAC + ret |=xilinx_axiemac_initialize (bis,XILINX_AXIEMAC_BASEADDR , +XILINX_AXIDMA_BASEADDR ); +#endif #ifdef CONFIG_XILINX_EMACLITE ret |=xilinx_emaclite_initialize (bis,XILINX_EMACLITE_BASEADDR );#endif
drivers/net/Makefile +1 -0
@@ -83,6 +83,7 @@ COBJS-$(CONFIG_TSEC_ENET) += tsec.o COBJS-$(CONFIG_TSI108_ETH) += tsi108_eth.o COBJS-$(CONFIG_ULI526X) += uli526x.o COBJS-$(CONFIG_VSC7385_ENET) += vsc7385.o +COBJS-$(CONFIG_XILINX_AXIEMAC) += xilinx_axi_emac.o COBJS-$(CONFIG_XILINX_EMACLITE) += xilinx_emaclite.o COBJS := $(sort $(COBJS-y))
drivers/net/xilinx_axi_emac.c new file +537 -0
537 lines not on this page · raw message
include/configs/microblaze-generic.h +3 -0
@@ -67,6 +67,9 @@#elif XILINX_LLTEMAC_BASEADDR # define CONFIG_XILINX_LL_TEMAC 1# define CONFIG_SYS_ENET +#elif defined(XILINX_AXIEMAC_BASEADDR ) +# define CONFIG_XILINX_AXIEMAC 1 +# define CONFIG_SYS_ENET #endif #undef ET_DEBUG
Signature · 1 line
1.5.5.6
PATCH v3 1/1 net: axi_ethernet: Add driver to u-boot v3
Dear Michal Simek,
Quoted 11 lines · In message <[email protected]> you wrote:
Add the first
axi_ethernetdriver for little-endian Microblaze.Signed-off-by Michal Simek <[email protected]>---
v2:
- Fix return addreses
- Fix NULL pointer defer for priv structurev3:
- Freeing allocated memory when initialization failed
Quoted 7 lines
--- .../xilinx/microblaze-generic/microblaze-generic.c | 4 + drivers/net/Makefile | 1 + drivers/net/xilinx_axi_emac.c | 537 ++++++++++++++++++++ include/configs/microblaze-generic.h | 3 + 4 files changed, 545 insertions(+), 0 deletions(-) create mode 100644 drivers/net/xilinx_axi_emac.c
Sorry, this does not apply. Please rebase and resubmit.
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de WARNING: This Product Attracts Every Other Piece of Matter in the Universe, Including the Products of Other Manufacturers, with a Force Proportional to the Product of the Masses and Inversely Proportional to the Distance Between Them.