net: axi_ethernet: Add driver to u-boot
Subsystems (2)
PATCH v4 1/1 net: axi_ethernet: Add driver to u-boot
Add axi_ethernet driver for little-endian Microblaze.
RX/TX BDs and rxframe buffer are shared among all axi_ethernet MACs. Only one MAC can work in one time.
---
v2: Fix cammelcase weirdness
Create mdio_wait function with timeouts Synchronize debug messages
Remove base address + offset notation -> use struct instead
v3: Fix comments
Add timeouts/delays to waiting loops
Use in/out_be32 for dma accesses
Setup return values for phy functions
v4: Fix merge confict - no functional change
--- drivers/net/Makefile | 1 + drivers/net/xilinx_axi_emac.c | 664 +++++++++++++++++++++++++++++++++++++++++ include/netdev.h | 2 + 3 files changed, 667 insertions(+), 0 deletions(-) create mode 100644 drivers/net/xilinx_axi_emac.c
drivers/net/Makefile +1 -0
@@ -78,6 +78,7 @@ COBJS-$(CONFIG_FMAN_ENET) += fsl_mdio.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 +664 -0
664 lines not on this page · raw message
include/netdev.h +2 -0
@@ -95,6 +95,8 @@ int tsi108_eth_initialize(bd_t *bis);int uec_standard_init (bd_t *bis);int uli526x_initialize (bd_t *bis);int armada100_fec_register (unsigned long base_addr); +int xilinx_axiemac_initialize (bd_t *bis,unsigned long base_addr, +unsigned long dma_addr);int xilinx_emaclite_initialize (bd_t *bis,int base_addr);/* Boards with PCI network controllers can call this from their board_eth_init()
Signature · 1 line
1.5.5.6
PATCH v4 1/1 net: axi_ethernet: Add driver to u-boot
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111007/5976e403/attachment.pgp
PATCH v4 1/1 net: axi_ethernet: Add driver to u-boot
Quoted 2 lines · Mike Frysinger
Acked-by Mike Frysinger <[email protected]>-mike
Thanks,
Michal
Signature · 4 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian
Wolfgang Denk
AppliedPATCH v4 1/1 net: axi_ethernet: Add driver to u-boot
In reply to Michal SimekDear Michal Simek,
Quoted 19 lines · In message <[email protected]> you wrote:
Add
axi_ethernetdriver for little-endian Microblaze.RX/TX BDs and rxframe buffer are shared among all
axi_ethernetMACs. Only one MAC can work in one time.Signed-off-by Michal Simek <[email protected]>---
v2: Fix cammelcase weirdness
Createmdio_waitfunction with timeouts Synchronize debug messages
Remove base address + offset notation -> use struct insteadv3: Fix comments
Add timeouts/delays to waiting loops
Use in/out_be32 for dma accesses
Setup return values for phy functions
Quoted 7 lines
v4: Fix merge confict - no functional change
--- drivers/net/Makefile | 1 + drivers/net/xilinx_axi_emac.c | 664 +++++++++++++++++++++++++++++++++++++++++ include/netdev.h | 2 + 3 files changed, 667 insertions(+), 0 deletions(-) create mode 100644 drivers/net/xilinx_axi_emac.c
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 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 He'd been wrong, there _was_ a light at the end of the tunnel, and it was a flamethrower. - Terry Pratchett, _Mort_