Skip to content

Commit 1edb9ca

Browse files
Siva Reddydavem330
authored andcommitted
net: sxgbe: add basic framework for Samsung 10Gb ethernet driver
This patch adds support for Samsung 10Gb ethernet driver(sxgbe). - sxgbe core initialization - Tx and Rx support - MDIO support - ISRs for Tx and Rx - ifconfig support to driver Signed-off-by: Siva Reddy Kallam <[email protected]> Signed-off-by: Vipul Pandya <[email protected]> Signed-off-by: Girish K S <[email protected]> Neatening-by: Joe Perches <[email protected]> Signed-off-by: Byungho An <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5221d3e commit 1edb9ca

22 files changed

+5507
-0
lines changed

drivers/net/ethernet/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ config S6GMAC
150150
To compile this driver as a module, choose M here. The module
151151
will be called s6gmac.
152152

153+
source "drivers/net/ethernet/samsung/Kconfig"
153154
source "drivers/net/ethernet/seeq/Kconfig"
154155
source "drivers/net/ethernet/silan/Kconfig"
155156
source "drivers/net/ethernet/sis/Kconfig"

drivers/net/ethernet/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ obj-$(CONFIG_NET_VENDOR_REALTEK) += realtek/
6161
obj-$(CONFIG_SH_ETH) += renesas/
6262
obj-$(CONFIG_NET_VENDOR_RDC) += rdc/
6363
obj-$(CONFIG_S6GMAC) += s6gmac.o
64+
obj-$(CONFIG_NET_VENDOR_SAMSUNG) += samsung/
6465
obj-$(CONFIG_NET_VENDOR_SEEQ) += seeq/
6566
obj-$(CONFIG_NET_VENDOR_SILAN) += silan/
6667
obj-$(CONFIG_NET_VENDOR_SIS) += sis/

drivers/net/ethernet/samsung/Kconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#
2+
# Samsung Ethernet device configuration
3+
#
4+
5+
config NET_VENDOR_SAMSUNG
6+
bool "Samsung Ethernet device"
7+
default y
8+
---help---
9+
This is the driver for the SXGBE 10G Ethernet IP block found on Samsung
10+
platforms.
11+
12+
if NET_VENDOR_SAMSUNG
13+
14+
source "drivers/net/ethernet/samsung/sxgbe/Kconfig"
15+
16+
endif # NET_VENDOR_SAMSUNG

drivers/net/ethernet/samsung/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Makefile for the Samsung Ethernet device drivers.
3+
#
4+
5+
obj-$(CONFIG_SXGBE_ETH) += sxgbe/
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
config SXGBE_ETH
2+
tristate "Samsung 10G/2.5G/1G SXGBE Ethernet driver"
3+
depends on HAS_IOMEM && HAS_DMA
4+
select PHYLIB
5+
select CRC32
6+
select PTP_1588_CLOCK
7+
---help---
8+
This is the driver for the SXGBE 10G Ethernet IP block found on Samsung
9+
platforms.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
obj-$(CONFIG_SXGBE_ETH) += samsung-sxgbe.o
2+
samsung-sxgbe-objs:= sxgbe_platform.o sxgbe_main.o sxgbe_desc.o \
3+
sxgbe_dma.o sxgbe_core.o sxgbe_mtl.o sxgbe_mdio.o \
4+
sxgbe_ethtool.o sxgbe_xpcs.o $(samsung-sxgbe-y)

0 commit comments

Comments
 (0)