From e4db24b8918dab9c1c1fcb9e6916a4d61e7b03bf Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 11 Aug 2022 22:19:08 -0500 Subject: [PATCH] drivers: sdhc: Update Kconfig * Utilize DT_HAS__ENABLED for devicetree based drivers Signed-off-by: Kumar Gala --- drivers/sdhc/Kconfig.imx | 3 ++- drivers/sdhc/Kconfig.spi | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/sdhc/Kconfig.imx b/drivers/sdhc/Kconfig.imx index e0883e1549..025ff77fc8 100644 --- a/drivers/sdhc/Kconfig.imx +++ b/drivers/sdhc/Kconfig.imx @@ -3,7 +3,8 @@ config IMX_USDHC bool "NXP IMX USDHC Driver" - depends on (HAS_MCUX_USDHC1 || HAS_MCUX_USDHC2) + default y + depends on DT_HAS_NXP_IMX_USDHC_ENABLED select SDHC_SUPPORTS_UHS select SDHC_SUPPORTS_NATIVE_MODE help diff --git a/drivers/sdhc/Kconfig.spi b/drivers/sdhc/Kconfig.spi index ea73e278d5..9136253372 100644 --- a/drivers/sdhc/Kconfig.spi +++ b/drivers/sdhc/Kconfig.spi @@ -1,12 +1,11 @@ # Copyright (c) 2022, NXP # SPDX -License-Identifier: Apache-2.0 -DT_COMPAT_ZEPHYR_MMC_SPI_SLOT := zephyr,sdhc-spi-slot - config SPI_SDHC bool "SD protocol over SPI bus" + default y + depends on DT_HAS_ZEPHYR_SDHC_SPI_SLOT_ENABLED select SPI select SDHC_SUPPORTS_SPI_MODE - default $(dt_compat_enabled,$(DT_COMPAT_ZEPHYR_MMC_SPI_SLOT)) help Enable the SPI SD host controller driver