]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: phytec: Make AM6 SoM detection depend on I2C
authorWadim Egorov <w.egorov@phytec.de>
Wed, 22 May 2024 07:55:01 +0000 (09:55 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 7 Jun 2024 20:02:26 +0000 (14:02 -0600)
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>
board/phytec/common/Kconfig

index 1077f0f4b61abd1aa148ab8c01af4aff5d1fe176..56c8290f64164786e7484f6be3956abdb01f676b 100644 (file)
@@ -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