Skip to contentSkip to conversation

drivers: net: add Microchip PIC32 ethernet controller driver

PATCH Superseded Purna Chandra Mandal 1 participant 1 message Dec 17, 2015 Network drivers

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 13/18 drivers: net: add Microchip PIC32 ethernet controller driver

This driver implements MAC and MII layer of PIC32 ethernet controller. This controller is capable of handling 100/10mbps full/half duplex ethernet communication. Network data transfer is handled by internal DMA engine.

---

 drivers/net/Kconfig      |   7 +
 drivers/net/Makefile     |   1 +
 drivers/net/pic32_eth.c  | 648 +++++++++++++++++++++++++++++++++++++++++++++++
 drivers/net/pic32_eth.h  | 184 ++++++++++++++
 drivers/net/pic32_mdio.c | 143 +++++++++++
 5 files changed, 983 insertions(+)
 create mode 100644 drivers/net/pic32_eth.c
 create mode 100644 drivers/net/pic32_eth.h
 create mode 100644 drivers/net/pic32_mdio.c
drivers/net/Kconfig +7 -0
index 6905cc0..2d7bf7c 100644
@@ -107,4 +107,11 @@ config ZYNQ_GEM
     help
       This MAC is presetn in Xilinx Zynq and ZynqMP SoCs.
 
+config PIC32_ETH
+    bool "Microchip PIC32 Ethernet Support"
+    depends on MACH_PIC32
+    help
+      This driver implements 10/100 Mbps Ethernet and MAC layer for
+      Microchip PIC32 microcontrollers.
+
 endif # NETDEVICES
drivers/net/Makefile +1 -0
index 150470c..33a81ee 100644
@@ -72,3 +72,4 @@ obj-$(CONFIG_FSL_MC_ENET) += fsl-mc/
 obj-$(CONFIG_FSL_MC_ENET) += ldpaa_eth/
 obj-$(CONFIG_FSL_MEMAC) += fm/memac_phy.o
 obj-$(CONFIG_VSC9953) += vsc9953.o
+obj-$(CONFIG_PIC32_ETH) += pic32_mdio.o pic32_eth.o
drivers/net/pic32_eth.c new file +648 -0

648 lines not on this page · raw message

drivers/net/pic32_eth.h new file +184 -0

184 lines not on this page · raw message

drivers/net/pic32_mdio.c new file +143 -0

143 lines not on this page · raw message

Signature · 1 line
1.8.3.1