Skip to content

Commit 3590918

Browse files
shimodaydavem330
authored andcommitted
net: ethernet: renesas: Add support for "Ethernet Switch"
Add initial support for Renesas "Ethernet Switch" device of R-Car S4-8. The hardware has features about forwarding for an ethernet switch device. But, for now, it acts as ethernet controllers so that any forwarding offload features are not supported. So, any switchdev header files and DSA framework are not used. Signed-off-by: Yoshihiro Shimoda <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f9edd82 commit 3590918

File tree

4 files changed

+2686
-0
lines changed

4 files changed

+2686
-0
lines changed

drivers/net/ethernet/renesas/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,15 @@ config RAVB
4242
This driver supports the following SoCs:
4343
- R8A779x.
4444

45+
config RENESAS_ETHER_SWITCH
46+
tristate "Renesas Ethernet Switch support"
47+
depends on ARCH_RENESAS || COMPILE_TEST
48+
select CRC32
49+
select MII
50+
select PHYLINK
51+
help
52+
Renesas Ethernet Switch device driver.
53+
This driver supports the following SoCs:
54+
- R8A779Fx.
55+
4556
endif # NET_VENDOR_RENESAS

drivers/net/ethernet/renesas/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ obj-$(CONFIG_SH_ETH) += sh_eth.o
88
ravb-objs := ravb_main.o ravb_ptp.o
99

1010
obj-$(CONFIG_RAVB) += ravb.o
11+
12+
rswitch_drv-objs := rswitch.o
13+
14+
obj-$(CONFIG_RENESAS_ETHER_SWITCH) += rswitch_drv.o

0 commit comments

Comments
 (0)