[U-Boot] [PATCHv6 07/28] net: sunxi: Move GMAC_TX_DELAY to the driver

Olliver Schinagl oliver at schinagl.nl
Mon May 15 08:02:23 UTC 2017


The GMAC_TX_DELAY symbol sets and is dependent on the SUN7I_GMAC
driver. Move it from the generic ARCH section to the driver specific
section.

Signed-off-by: Olliver Schinagl <oliver at schinagl.nl>
---
 arch/arm/mach-sunxi/Kconfig | 6 ------
 drivers/net/Kconfig         | 7 +++++++
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index 8d9900e00b..be060b65dc 100644
--- a/arch/arm/mach-sunxi/Kconfig
+++ b/arch/arm/mach-sunxi/Kconfig
@@ -748,12 +748,6 @@ config SATAPWR
 	  format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of
 	  port H.
 
-config GMAC_TX_DELAY
-	int "GMAC Transmit Clock Delay Chain"
-	default 0
-	---help---
-	Set the GMAC Transmit Clock Delay Chain value.
-
 config SPL_STACK_R_ADDR
 	default 0x4fe00000 if MACH_SUN4I
 	default 0x4fe00000 if MACH_SUN5I
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 04e8cf39c8..782348f872 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -219,6 +219,13 @@ config SUN7I_GMAC
 
 endchoice
 
+config GMAC_TX_DELAY
+	depends on SUN7I_GMAC
+	int "- GMAC Transmit Clock Delay Chain"
+	default 0
+	help
+	  Set the GMAC Transmit Clock Delay Chain value.
+
 config SUN8I_EMAC
         bool "Allwinner Sun8i Ethernet MAC support"
         depends on DM_ETH
-- 
2.11.0



More information about the U-Boot mailing list