Skip to content

Commit 4d5ae32

Browse files
linuswdavem330
authored andcommitted
net: ethernet: Add a driver for Gemini gigabit ethernet
The Gemini ethernet has been around for years as an out-of-tree patch used with the NAS boxen and routers built on StorLink SL3512 and SL3516, later Storm Semiconductor, later Cortina Systems. These ASICs are still being deployed and brand new off-the-shelf systems using it can easily be acquired. The full name of the IP block is "Net Engine and Gigabit Ethernet MAC" commonly just called "GMAC". The hardware block contains a common TCP Offload Enginer (TOE) that can be used by both MACs. The current driver does not use it. Cc: Tobias Waldvogel <[email protected]> Signed-off-by: Michał Mirosław <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1c2f114 commit 4d5ae32

File tree

7 files changed

+3581
-0
lines changed

7 files changed

+3581
-0
lines changed

MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,8 +1327,10 @@ T: git git://github.com/ulli-kroll/linux.git
13271327
S: Maintained
13281328
F: Documentation/devicetree/bindings/arm/gemini.txt
13291329
F: Documentation/devicetree/bindings/pinctrl/cortina,gemini-pinctrl.txt
1330+
F: Documentation/devicetree/bindings/net/cortina,gemini-ethernet.txt
13301331
F: Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt
13311332
F: arch/arm/mach-gemini/
1333+
F: drivers/net/ethernet/cortina/gemini/*
13321334
F: drivers/pinctrl/pinctrl-gemini.c
13331335
F: drivers/rtc/rtc-ftrtc010.c
13341336

drivers/net/ethernet/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ source "drivers/net/ethernet/cavium/Kconfig"
4242
source "drivers/net/ethernet/chelsio/Kconfig"
4343
source "drivers/net/ethernet/cirrus/Kconfig"
4444
source "drivers/net/ethernet/cisco/Kconfig"
45+
source "drivers/net/ethernet/cortina/Kconfig"
4546

4647
config CX_ECAT
4748
tristate "Beckhoff CX5020 EtherCAT master support"

drivers/net/ethernet/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ obj-$(CONFIG_NET_VENDOR_CAVIUM) += cavium/
2929
obj-$(CONFIG_NET_VENDOR_CHELSIO) += chelsio/
3030
obj-$(CONFIG_NET_VENDOR_CIRRUS) += cirrus/
3131
obj-$(CONFIG_NET_VENDOR_CISCO) += cisco/
32+
obj-$(CONFIG_NET_VENDOR_CORTINA) += cortina/
3233
obj-$(CONFIG_CX_ECAT) += ec_bhf.o
3334
obj-$(CONFIG_DM9000) += davicom/
3435
obj-$(CONFIG_DNET) += dnet.o

drivers/net/ethernet/cortina/Kconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
# Cortina ethernet devices
3+
4+
config NET_VENDOR_CORTINA
5+
bool "Cortina Gemini devices"
6+
default y
7+
---help---
8+
If you have a network (Ethernet) card belonging to this class, say Y
9+
and read the Ethernet-HOWTO, available from
10+
<http://www.tldp.org/docs.html#howto>.
11+
12+
if NET_VENDOR_CORTINA
13+
14+
config GEMINI_ETHERNET
15+
tristate "Gemini Gigabit Ethernet support"
16+
depends on OF
17+
select PHYLIB
18+
select CRC32
19+
---help---
20+
This driver supports StorLink SL351x (Gemini) dual Gigabit Ethernet.
21+
22+
endif # NET_VENDOR_CORTINA

drivers/net/ethernet/cortina/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
# Makefile for the Cortina Gemini network device drivers.
3+
4+
obj-$(CONFIG_GEMINI_ETHERNET) += gemini.o

0 commit comments

Comments
 (0)