bmips: add basic BCM6358 ethernet support
[openwrt/staging/nbd.git] / target / linux / bmips / patches-5.15 / 501-net-broadcom-add-BCM6348-enet-controller-driver.patch
1 From 590b60fb08cb1e70fe02d3f407c6b3dbe9ad06ff Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <noltari@gmail.com>
3 Date: Mon, 1 Mar 2021 07:34:39 +0100
4 Subject: [PATCH] net: broadcom: add BCM6348 enetsw controller driver
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 This controller is present on BCM6338, BCM6348 and BCM6358 SoCs.
10
11 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
12 ---
13 drivers/net/ethernet/broadcom/Kconfig | 8 +
14 drivers/net/ethernet/broadcom/Makefile | 1 +
15 3 files changed, 1120 insertions(+)
16 create mode 100644 drivers/net/ethernet/broadcom/bcm6368-enetsw.c
17
18 --- a/drivers/net/ethernet/broadcom/Kconfig
19 +++ b/drivers/net/ethernet/broadcom/Kconfig
20 @@ -68,6 +68,14 @@ config BCM63XX_ENET
21 This driver supports the ethernet MACs in the Broadcom 63xx
22 MIPS chipset family (BCM63XX).
23
24 +config BCM6348_ENET
25 + tristate "Broadcom BCM6348 internal mac support"
26 + depends on BMIPS_GENERIC || COMPILE_TEST
27 + default y
28 + help
29 + This driver supports Ethernet controller integrated into Broadcom
30 + BCM6348 family SoCs.
31 +
32 config BCM6368_ENETSW
33 tristate "Broadcom BCM6368 internal mac support"
34 depends on BMIPS_GENERIC || COMPILE_TEST
35 --- a/drivers/net/ethernet/broadcom/Makefile
36 +++ b/drivers/net/ethernet/broadcom/Makefile
37 @@ -6,6 +6,7 @@
38 obj-$(CONFIG_B44) += b44.o
39 obj-$(CONFIG_BCM4908_ENET) += bcm4908_enet.o
40 obj-$(CONFIG_BCM63XX_ENET) += bcm63xx_enet.o
41 +obj-$(CONFIG_BCM6348_ENET) += bcm6348-enet.o
42 obj-$(CONFIG_BCM6368_ENETSW) += bcm6368-enetsw.o
43 obj-$(CONFIG_BCMGENET) += genet/
44 obj-$(CONFIG_BNX2) += bnx2.o