Skip to contentSkip to conversation

armv8: kconfig: remove warnings when generate

PATCH New Biwen Li 1 participant 1 message Dec 23, 2019 Arm (32-bit)

lore
Share & tools
lore

Biwen Li

author
#0 lore raw

PATCH 1/1 armv8: kconfig: remove warnings when generate

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]
---
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +10 -10
index 9f6a933b47..42ca990994 100644
@@ -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
 
Signature · 1 line
2.17.1