diff mbox series

[U-Boot,u-boot,1/2] drivers/fsl-mc: Create Kconfig file to managedriver specific configs better

Message ID 1557911354-30947-1-git-send-email-florinel.iordache@nxp.com
State Accepted
Commit 1bad991205780cd9f7ebdbdeb0d3a7d118f9f247
Delegated to: Joe Hershberger
Headers show
Series [U-Boot,u-boot,1/2] drivers/fsl-mc: Create Kconfig file to managedriver specific configs better | expand

Commit Message

Florinel Iordache May 15, 2019, 9:09 a.m. UTC
Create drivers/net/fsl-mc/Kconfig and move fsl-mc specific configs
from arch/arm/cpu/armv8/fsl-layerscape/Kconfig to this new Kconfig

Signed-off-by: Florinel Iordache <florinel.iordache@nxp.com>
---
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 17 -----------------
 drivers/net/Kconfig                       |  1 +
 drivers/net/fsl-mc/Kconfig                | 25 +++++++++++++++++++++++++
 3 files changed, 26 insertions(+), 17 deletions(-)
 create mode 100644 drivers/net/fsl-mc/Kconfig

Comments

Joe Hershberger July 8, 2019, 7:55 p.m. UTC | #1
On Wed, May 15, 2019 at 4:09 AM Florinel Iordache
<florinel.iordache@nxp.com> wrote:
>
> Create drivers/net/fsl-mc/Kconfig and move fsl-mc specific configs
> from arch/arm/cpu/armv8/fsl-layerscape/Kconfig to this new Kconfig
>
> Signed-off-by: Florinel Iordache <florinel.iordache@nxp.com>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Joe Hershberger Sept. 4, 2019, 4:40 p.m. UTC | #2
Hi Florinel,

https://patchwork.ozlabs.org/patch/1099898/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git

Thanks!
-Joe
diff mbox series

Patch

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
index f48481f..87f84f7 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
+++ b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
@@ -226,14 +226,6 @@  config FSL_LSCH3
 config NXP_LSCH3_2
 	bool
 
-config FSL_MC_ENET
-	bool "Management Complex network"
-	depends on ARCH_LS2080A || ARCH_LS1088A || ARCH_LX2160A
-	default y
-	select RESV_RAM
-	help
-	  Enable Management Complex (MC) network
-
 menu "Layerscape architecture"
 	depends on FSL_LSCH2 || FSL_LSCH3
 
@@ -567,15 +559,6 @@  config SYS_FSL_HAS_RGMII
 	bool
 	depends on SYS_FSL_EC1 || SYS_FSL_EC2
 
-
-config SYS_MC_RSV_MEM_ALIGN
-	hex "Management Complex reserved memory alignment"
-	depends on RESV_RAM
-	default 0x20000000 if ARCH_LS2080A || ARCH_LS1088A || ARCH_LX2160A
-	help
-	  Reserved memory needs to be aligned for MC to use. Default value
-	  is 512MB.
-
 config SPL_LDSCRIPT
 	default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
 
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 77d0b3a..3627456 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -1,5 +1,6 @@ 
 source "drivers/net/phy/Kconfig"
 source "drivers/net/pfe_eth/Kconfig"
+source "drivers/net/fsl-mc/Kconfig"
 
 config DM_ETH
 	bool "Enable Driver Model for Ethernet drivers"
diff --git a/drivers/net/fsl-mc/Kconfig b/drivers/net/fsl-mc/Kconfig
new file mode 100644
index 0000000..25a2cb8
--- /dev/null
+++ b/drivers/net/fsl-mc/Kconfig
@@ -0,0 +1,25 @@ 
+#
+# NXP Management Complex
+#
+
+menuconfig FSL_MC_ENET
+	bool "NXP Management Complex"
+	depends on ARCH_LS2080A || ARCH_LS1088A || ARCH_LX2160A
+	default y
+	select RESV_RAM
+	help
+	  Enable Management Complex (MC) network
+	  This is NXP Management Complex menuconfig
+	  that contains all MC related config options
+
+if FSL_MC_ENET
+
+config SYS_MC_RSV_MEM_ALIGN
+	hex "Management Complex reserved memory alignment"
+	depends on RESV_RAM
+	default 0x20000000 if ARCH_LS2080A || ARCH_LS1088A || ARCH_LX2160A
+	help
+	  Reserved memory needs to be aligned for MC to use. Default value
+	  is 512MB.
+
+endif # FSL_MC_ENET