hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/net/ethernet/mscc/Kconfig
....@@ -11,20 +11,24 @@
1111
1212 if NET_VENDOR_MICROSEMI
1313
14
+# Users should depend on NET_SWITCHDEV, HAS_IOMEM
15
+config MSCC_OCELOT_SWITCH_LIB
16
+ select REGMAP_MMIO
17
+ select PHYLIB
18
+ tristate
19
+ help
20
+ This is a hardware support library for Ocelot network switches. It is
21
+ used by switchdev as well as by DSA drivers.
22
+
1423 config MSCC_OCELOT_SWITCH
1524 tristate "Ocelot switch driver"
1625 depends on NET_SWITCHDEV
1726 depends on HAS_IOMEM
18
- select PHYLIB
19
- select REGMAP_MMIO
20
- help
21
- This driver supports the Ocelot network switch device.
22
-
23
-config MSCC_OCELOT_SWITCH_OCELOT
24
- tristate "Ocelot switch driver on Ocelot"
25
- depends on MSCC_OCELOT_SWITCH
27
+ depends on OF_NET
28
+ select MSCC_OCELOT_SWITCH_LIB
29
+ select GENERIC_PHY
2630 help
2731 This driver supports the Ocelot network switch device as present on
28
- the Ocelot SoCs.
32
+ the Ocelot SoCs (VSC7514).
2933
3034 endif # NET_VENDOR_MICROSEMI