Skip to content

Commit a170285

Browse files
Thierry Redingdavem330
authored andcommitted
net: Add support for the OpenCores 10/100 Mbps Ethernet MAC.
This patch adds a platform device driver that supports the OpenCores 10/100 Mbps Ethernet MAC. The driver expects three resources: one IORESOURCE_MEM resource defines the memory region for the core's memory-mapped registers while a second IORESOURCE_MEM resource defines the network packet buffer space. The third resource, of type IORESOURCE_IRQ, associates an interrupt with the driver. Signed-off-by: Thierry Reding <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 01e6de6 commit a170285

File tree

4 files changed

+1143
-0
lines changed

4 files changed

+1143
-0
lines changed

drivers/net/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,14 @@ config ENC28J60_WRITEVERIFY
972972
Enable the verify after the buffer write useful for debugging purpose.
973973
If unsure, say N.
974974

975+
config ETHOC
976+
tristate "OpenCores 10/100 Mbps Ethernet MAC support"
977+
depends on NET_ETHERNET
978+
select MII
979+
select PHYLIB
980+
help
981+
Say Y here if you want to use the OpenCores 10/100 Mbps Ethernet MAC.
982+
975983
config SMC911X
976984
tristate "SMSC LAN911[5678] support"
977985
select CRC32

drivers/net/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ obj-$(CONFIG_PASEMI_MAC) += pasemi_mac_driver.o
230230
pasemi_mac_driver-objs := pasemi_mac.o pasemi_mac_ethtool.o
231231
obj-$(CONFIG_MLX4_CORE) += mlx4/
232232
obj-$(CONFIG_ENC28J60) += enc28j60.o
233+
obj-$(CONFIG_ETHOC) += ethoc.o
233234

234235
obj-$(CONFIG_XTENSA_XT2000_SONIC) += xtsonic.o
235236

0 commit comments

Comments
 (0)