1# Copyright 2022, NXP
2# SPDX -License-Identifier: Apache-2.0
3
4config MCUX_SDIF
5	bool "NXP MCUX SDIF Driver"
6	default y
7	depends on DT_HAS_NXP_LPC_SDIF_ENABLED
8	select SDHC_SUPPORTS_NATIVE_MODE
9	select PINCTRL
10	help
11	  Enable the NXP SDIF Host controller driver
12
13if MCUX_SDIF
14
15config MCUX_SDIF_DMA_SUPPORT
16	bool "DMA support for MCUX SDIF driver"
17	default y
18	help
19	  Enable DMA support for MCUX SDIF driver. May be disabled to reduce
20	  footprint of driver.
21
22if MCUX_SDIF_DMA_SUPPORT
23
24# SDIF DMA needs 32 bit aligned buffers
25config SDHC_BUFFER_ALIGNMENT
26	default 4
27
28config MCUX_SDIF_DMA_BUFFER_SIZE
29	int "Size of DMA descriptor buffer in bytes"
30	default 256
31	help
32	  Size of MCUX SDIF DMA descriptor buffer in bytes
33
34endif #MCUX_SDIF_DMA_SUPPORT
35
36endif #MCUX_SDIF
37