]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
driver: net: consolidate ti's code in separate folder
authorGrygorii Strashko <grygorii.strashko@ti.com>
Wed, 31 Oct 2018 21:21:39 +0000 (16:21 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 5 Nov 2018 16:41:59 +0000 (10:41 -0600)
Add drivers/net/ti/ folder and move all TI's code in this folder for better
maintenance.

Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
13 files changed:
arch/arm/mach-davinci/dp83848.c
arch/arm/mach-davinci/et1011c.c
arch/arm/mach-davinci/ksz8873.c
arch/arm/mach-davinci/lxt972.c
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/ti/Kconfig [new file with mode: 0644]
drivers/net/ti/Makefile [new file with mode: 0644]
drivers/net/ti/cpsw-common.c [moved from drivers/net/cpsw-common.c with 100% similarity]
drivers/net/ti/cpsw.c [moved from drivers/net/cpsw.c with 100% similarity]
drivers/net/ti/davinci_emac.c [moved from drivers/net/davinci_emac.c with 100% similarity]
drivers/net/ti/davinci_emac.h [moved from drivers/net/davinci_emac.h with 100% similarity]
drivers/net/ti/keystone_net.c [moved from drivers/net/keystone_net.c with 100% similarity]

index 595e3ca149bd39875b973b683fe75687a26bf14e..7115d7bad24f4939ffde1f49f5188095ce65eeb8 100644 (file)
@@ -12,7 +12,7 @@
 #include <net.h>
 #include <dp83848.h>
 #include <asm/arch/emac_defs.h>
-#include "../../../drivers/net/davinci_emac.h"
+#include "../../../drivers/net/ti/davinci_emac.h"
 
 #ifdef CONFIG_DRIVER_TI_EMAC
 
index 3d02274810748a973688eb31460663de6ac9b347..bfb7ff26894e3cb149766d141ee86e153e7eb966 100644 (file)
@@ -9,7 +9,7 @@
 #include <net.h>
 #include <miiphy.h>
 #include <asm/arch/emac_defs.h>
-#include "../../../drivers/net/davinci_emac.h"
+#include "../../../drivers/net/ti/davinci_emac.h"
 
 #ifdef CONFIG_DRIVER_TI_EMAC
 
index 899cff0169a955e9c878714931017137cb14b82c..85b0c2620c9ed9543ae53bb1304e844683652768 100644 (file)
@@ -19,7 +19,7 @@
 #include <net.h>
 #include <asm/arch/emac_defs.h>
 #include <asm/io.h>
-#include "../../../drivers/net/davinci_emac.h"
+#include "../../../drivers/net/ti/davinci_emac.h"
 
 int ksz8873_is_phy_connected(int phy_addr)
 {
index 170e4a57830243e0ff8b3578a0b14aaeb3c0efbb..b54f67dbfedbc57f030d355b05e2d1fdaecef1fa 100644 (file)
@@ -13,7 +13,7 @@
 #include <miiphy.h>
 #include <lxt971a.h>
 #include <asm/arch/emac_defs.h>
-#include "../../../drivers/net/davinci_emac.h"
+#include "../../../drivers/net/ti/davinci_emac.h"
 
 #ifdef CONFIG_DRIVER_TI_EMAC
 
index fd1c48049a9bde51d3c8df18e9a2ab2951da8ee9..8fb365fc5d2a64165dff2a4f003499f73759e68a 100644 (file)
@@ -11,13 +11,6 @@ config DM_ETH
          This is currently implemented in net/eth-uclass.c
          Look in include/net.h for details.
 
-config DRIVER_TI_CPSW
-       bool "TI Common Platform Ethernet Switch"
-       select PHYLIB
-       help
-         This driver supports the TI three port switch gigabit ethernet
-         subsystem found in the TI SoCs.
-
 menuconfig NETDEVICES
        bool "Network device support"
        depends on NET
@@ -355,10 +348,7 @@ config SH_ETHER
        help
          This driver supports the Ethernet for Renesas SH and ARM SoCs.
 
-config DRIVER_TI_EMAC
-       bool "TI Davinci EMAC"
-       help
-          Support for davinci emac
+source "drivers/net/ti/Kconfig"
 
 config XILINX_AXIEMAC
        depends on DM_ETH && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP)
index cc0971c614f40b31528ed69ad0cdf8c20ecef9bc..99056aa041d08e3fd959d5bdcfbf6a713a7cb795 100644 (file)
@@ -30,7 +30,6 @@ obj-$(CONFIG_FTGMAC100) += ftgmac100.o
 obj-$(CONFIG_FTMAC110) += ftmac110.o
 obj-$(CONFIG_FTMAC100) += ftmac100.o
 obj-$(CONFIG_GMAC_ROCKCHIP) += gmac_rockchip.o
-obj-$(CONFIG_DRIVER_TI_KEYSTONE_NET) += keystone_net.o
 obj-$(CONFIG_KS8851_MLL) += ks8851_mll.o
 obj-$(CONFIG_LAN91C96) += lan91c96.o
 obj-$(CONFIG_LPC32XX_ETH) += lpc32xx_eth.o
@@ -57,9 +56,7 @@ obj-$(CONFIG_SH_ETHER) += sh_eth.o
 obj-$(CONFIG_RENESAS_RAVB) += ravb.o
 obj-$(CONFIG_SMC91111) += smc91111.o
 obj-$(CONFIG_SMC911X) += smc911x.o
-obj-$(CONFIG_DRIVER_TI_EMAC) += davinci_emac.o
 obj-$(CONFIG_TSEC_ENET) += tsec.o fsl_mdio.o
-obj-$(CONFIG_DRIVER_TI_CPSW) += cpsw.o cpsw-common.o
 obj-$(CONFIG_FMAN_ENET) += fsl_mdio.o
 obj-$(CONFIG_ULI526X) += uli526x.o
 obj-$(CONFIG_VSC7385_ENET) += vsc7385.o
@@ -74,3 +71,4 @@ obj-$(CONFIG_PIC32_ETH) += pic32_mdio.o pic32_eth.o
 obj-$(CONFIG_DWC_ETH_QOS) += dwc_eth_qos.o
 obj-$(CONFIG_FSL_PFE) += pfe_eth/
 obj-$(CONFIG_SNI_AVE) += sni_ave.o
+obj-y += ti/
diff --git a/drivers/net/ti/Kconfig b/drivers/net/ti/Kconfig
new file mode 100644 (file)
index 0000000..35a6b5d
--- /dev/null
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
+
+config DRIVER_TI_CPSW
+       bool "TI Common Platform Ethernet Switch"
+       select PHYLIB
+       help
+         This driver supports the TI three port switch gigabit ethernet
+         subsystem found in the TI SoCs.
+
+config DRIVER_TI_EMAC
+       bool "TI Davinci EMAC"
+       help
+          Support for davinci emac
diff --git a/drivers/net/ti/Makefile b/drivers/net/ti/Makefile
new file mode 100644 (file)
index 0000000..4ab4a27
--- /dev/null
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
+
+obj-$(CONFIG_DRIVER_TI_CPSW) += cpsw.o cpsw-common.o
+obj-$(CONFIG_DRIVER_TI_EMAC) += davinci_emac.o
+obj-$(CONFIG_DRIVER_TI_KEYSTONE_NET) += keystone_net.o
similarity index 100%
rename from drivers/net/cpsw.c
rename to drivers/net/ti/cpsw.c