]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: mscc: Move ocelot_switch to mscc_eswitch folder
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Thu, 31 Jan 2019 14:30:33 +0000 (15:30 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 1 Feb 2019 13:13:36 +0000 (14:13 +0100)
Move file ocelot_switch to mscc_eswitch to prepare to add
new net drivers for other MSCC SoCs.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
MAINTAINERS
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/mscc_eswitch/Kconfig [new file with mode: 0644]
drivers/net/mscc_eswitch/Makefile [new file with mode: 0644]
drivers/net/mscc_eswitch/ocelot_switch.c [moved from drivers/net/ocelot_switch.c with 100% similarity]

index 95e9bda09db0f6930394288b427a62db49b53149..e3a15868bcad16710edd42c504943eb6cd8aaaa7 100644 (file)
@@ -561,7 +561,7 @@ F:  drivers/gpio/mscc_sgpio.c
 F:     drivers/spi/mscc_bb_spi.c
 F:     include/configs/vcoreiii.h
 F:     drivers/pinctrl/mscc/
-F:     drivers/net/ocelot_switch.c
+F:     drivers/net/mscc_eswitch/
 
 MIPS JZ4780
 M:     Ezequiel Garcia <ezequiel@collabora.com>
index 39ce4e8a1fc6151fb9934045a41b8184bc5bae01..6a570285aac555aa7cfac3fb1ab07d92512cb86a 100644 (file)
@@ -432,12 +432,7 @@ config SNI_AVE
          This driver implements support for the Socionext AVE Ethernet
          controller, as found on the Socionext UniPhier family.
 
-config MSCC_OCELOT_SWITCH
-       bool "Ocelot switch driver"
-       depends on DM_ETH && ARCH_MSCC
-       select PHYLIB
-       help
-         This driver supports the Ocelot network switch device.
+source "drivers/net/mscc_eswitch/Kconfig"
 
 config ETHER_ON_FEC1
        bool "FEC1"
index e38c16464478af4280bcda630f51d6903ec9cac6..51be72b0aa867eea9fa3a5e0a95741f4f00e18dd 100644 (file)
@@ -75,4 +75,4 @@ obj-$(CONFIG_FSL_PFE) += pfe_eth/
 obj-$(CONFIG_SNI_AVE) += sni_ave.o
 obj-y += ti/
 obj-$(CONFIG_MEDIATEK_ETH) += mtk_eth.o
-obj-$(CONFIG_MSCC_OCELOT_SWITCH) += ocelot_switch.o
+obj-y += mscc_eswitch/
diff --git a/drivers/net/mscc_eswitch/Kconfig b/drivers/net/mscc_eswitch/Kconfig
new file mode 100644 (file)
index 0000000..2f3c8cc
--- /dev/null
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (c) 2019 Microsemi Corporation
+
+config MSCC_OCELOT_SWITCH
+       bool "Ocelot switch driver"
+       depends on DM_ETH && ARCH_MSCC
+       select PHYLIB
+       help
+         This driver supports the Ocelot network switch device.
diff --git a/drivers/net/mscc_eswitch/Makefile b/drivers/net/mscc_eswitch/Makefile
new file mode 100644 (file)
index 0000000..32f411d
--- /dev/null
@@ -0,0 +1,2 @@
+
+obj-$(CONFIG_MSCC_OCELOT_SWITCH) += ocelot_switch.o