diff mbox series

[v2,1/5] board: phytec: Make AM6 SoM detection depend on I2C

Message ID 20240522075505.3339347-2-w.egorov@phytec.de
State Accepted
Commit 12f09c19b7c9cc9c4cbe88b0c33f69eea716c344
Delegated to: Tom Rini
Headers show
Series *** phyCORE-AM62x: DDR detection / Inject DDR timing deltas *** | expand

Commit Message

Wadim Egorov May 22, 2024, 7:55 a.m. UTC
SoM detection is using I2C driver model functions.
Let's depend on I2C.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Tested-by: John Ma <jma@phytec.com>
---
 board/phytec/common/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Dhruva Gole May 22, 2024, 9:50 a.m. UTC | #1
Hi,

On May 22, 2024 at 09:55:01 +0200, Wadim Egorov wrote:
> SoM detection is using I2C driver model functions.
> Let's depend on I2C.
> 
> Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
> Tested-by: John Ma <jma@phytec.com>
> ---

Reviewed-by: Dhruva Gole <d-gole@ti.com>
diff mbox series

Patch

diff --git a/board/phytec/common/Kconfig b/board/phytec/common/Kconfig
index 1077f0f4b61..56c8290f641 100644
--- a/board/phytec/common/Kconfig
+++ b/board/phytec/common/Kconfig
@@ -16,6 +16,7 @@  config PHYTEC_AM62_SOM_DETECTION
 	bool "Support SoM detection for AM62x PHYTEC platforms"
 	depends on (TARGET_PHYCORE_AM62X_A53 || TARGET_PHYCORE_AM62X_R5) && \
 		   PHYTEC_SOM_DETECTION
+	depends on SPL_I2C && DM_I2C
 	default y
 	help
 	   Support of I2C EEPROM based SoM detection. Supported
@@ -25,6 +26,7 @@  config PHYTEC_AM64_SOM_DETECTION
 	bool "Support SoM detection for AM64x PHYTEC platforms"
 	depends on (TARGET_PHYCORE_AM64X_A53 || TARGET_PHYCORE_AM64X_R5) && \
 		   PHYTEC_SOM_DETECTION
+	depends on SPL_I2C && DM_I2C
 	default y
 	help
 	   Support of I2C EEPROM based SoM detection. Supported