[PATCH] armv8: kconfig: remove warnings when generate

Biwen Li biwen.li at nxp.com
Mon Dec 23 06:44:59 CET 2019


Removes warnigs when generate .config, as follows:
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C4
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1046A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C3
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1046A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C1
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1046A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C2
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1046A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C1
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1046A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C2
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1046A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C3
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1046A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C4
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1046A [=y] && ARM [=y]

	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C1
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1012A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C2
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1012A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C1
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1012A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C2
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1012A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C4
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1043A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C3
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1043A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C1
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1043A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C2
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1043A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C1
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1043A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C2
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1043A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C3
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1043A [=y] && ARM [=y]
	WARNING: unmet direct dependencies detected for SYS_I2C_MXC_I2C4
	Depends on [n]: SYS_I2C_MXC [=y] && (!DM_I2C [=y] || SPL [=n])
	Selected by [y]:

	ARCH_LS1043A [=y] && ARM [=y]

Signed-off-by: Biwen Li <biwen.li at nxp.com>
---
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
index 9f6a933b47..42ca990994 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
+++ b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
@@ -16,8 +16,8 @@ config ARCH_LS1012A
 	select ARCH_EARLY_INIT_R
 	select BOARD_EARLY_INIT_F
 	select SYS_I2C_MXC
-	select SYS_I2C_MXC_I2C1
-	select SYS_I2C_MXC_I2C2
+	select SYS_I2C_MXC_I2C1 if !DM_I2C
+	select SYS_I2C_MXC_I2C2 if !DM_I2C
 	imply PANIC_HANG
 
 config ARCH_LS1028A
@@ -75,10 +75,10 @@ config ARCH_LS1043A
 	select ARCH_EARLY_INIT_R
 	select BOARD_EARLY_INIT_F
 	select SYS_I2C_MXC
-	select SYS_I2C_MXC_I2C1
-	select SYS_I2C_MXC_I2C2
-	select SYS_I2C_MXC_I2C3
-	select SYS_I2C_MXC_I2C4
+	select SYS_I2C_MXC_I2C1 if !DM_I2C
+	select SYS_I2C_MXC_I2C2 if !DM_I2C
+	select SYS_I2C_MXC_I2C3 if !DM_I2C
+	select SYS_I2C_MXC_I2C4 if !DM_I2C
 	imply CMD_PCI
 
 config ARCH_LS1046A
@@ -108,10 +108,10 @@ config ARCH_LS1046A
 	select ARCH_EARLY_INIT_R
 	select BOARD_EARLY_INIT_F
 	select SYS_I2C_MXC
-	select SYS_I2C_MXC_I2C1
-	select SYS_I2C_MXC_I2C2
-	select SYS_I2C_MXC_I2C3
-	select SYS_I2C_MXC_I2C4
+	select SYS_I2C_MXC_I2C1 if !DM_I2C
+	select SYS_I2C_MXC_I2C2 if !DM_I2C
+	select SYS_I2C_MXC_I2C3 if !DM_I2C
+	select SYS_I2C_MXC_I2C4 if !DM_I2C
 	imply SCSI
 	imply SCSI_AHCI
 
-- 
2.17.1



More information about the U-Boot mailing list