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:
parent
1eea3c02b6
commit
e4db24b891
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue