drivers: sdhc: Update Kconfig

* Utilize DT_HAS_<COMPAT>_ENABLED for devicetree based drivers

Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
Kumar Gala 2022-08-11 22:19:08 -05:00 committed by Carles Cufí
parent 1eea3c02b6
commit e4db24b891
2 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,8 @@
config IMX_USDHC config IMX_USDHC
bool "NXP IMX USDHC Driver" 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_UHS
select SDHC_SUPPORTS_NATIVE_MODE select SDHC_SUPPORTS_NATIVE_MODE
help help

View file

@ -1,12 +1,11 @@
# Copyright (c) 2022, NXP # Copyright (c) 2022, NXP
# SPDX -License-Identifier: Apache-2.0 # SPDX -License-Identifier: Apache-2.0
DT_COMPAT_ZEPHYR_MMC_SPI_SLOT := zephyr,sdhc-spi-slot
config SPI_SDHC config SPI_SDHC
bool "SD protocol over SPI bus" bool "SD protocol over SPI bus"
default y
depends on DT_HAS_ZEPHYR_SDHC_SPI_SLOT_ENABLED
select SPI select SPI
select SDHC_SUPPORTS_SPI_MODE select SDHC_SUPPORTS_SPI_MODE
default $(dt_compat_enabled,$(DT_COMPAT_ZEPHYR_MMC_SPI_SLOT))
help help
Enable the SPI SD host controller driver Enable the SPI SD host controller driver