2022-05-07 07:22:46 +08:00
|
|
|
# Copyright 2022, NXP
|
2024-05-08 15:59:43 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2022-05-07 07:22:46 +08:00
|
|
|
|
|
|
|
config MCUX_SDIF
|
|
|
|
bool "NXP MCUX SDIF Driver"
|
|
|
|
default y
|
|
|
|
depends on DT_HAS_NXP_LPC_SDIF_ENABLED
|
|
|
|
select SDHC_SUPPORTS_NATIVE_MODE
|
2023-04-19 22:41:53 +08:00
|
|
|
select PINCTRL
|
2022-05-07 07:22:46 +08:00
|
|
|
help
|
|
|
|
Enable the NXP SDIF Host controller driver
|
|
|
|
|
|
|
|
if MCUX_SDIF
|
|
|
|
|
|
|
|
config MCUX_SDIF_DMA_SUPPORT
|
|
|
|
bool "DMA support for MCUX SDIF driver"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable DMA support for MCUX SDIF driver. May be disabled to reduce
|
|
|
|
footprint of driver.
|
|
|
|
|
|
|
|
if MCUX_SDIF_DMA_SUPPORT
|
|
|
|
|
|
|
|
# SDIF DMA needs 32 bit aligned buffers
|
|
|
|
config SDHC_BUFFER_ALIGNMENT
|
|
|
|
default 4
|
|
|
|
|
|
|
|
config MCUX_SDIF_DMA_BUFFER_SIZE
|
|
|
|
int "Size of DMA descriptor buffer in bytes"
|
|
|
|
default 256
|
|
|
|
help
|
|
|
|
Size of MCUX SDIF DMA descriptor buffer in bytes
|
|
|
|
|
|
|
|
endif #MCUX_SDIF_DMA_SUPPORT
|
|
|
|
|
|
|
|
endif #MCUX_SDIF
|