1# Copyright (c) 2022, NXP
2# SPDX -License-Identifier: Apache-2.0
3
4config IMX_USDHC
5	bool "NXP IMX USDHC Driver"
6	default y
7	depends on DT_HAS_NXP_IMX_USDHC_ENABLED
8	select SDHC_SUPPORTS_UHS
9	select SDHC_SUPPORTS_NATIVE_MODE
10	select PINCTRL
11	help
12	  Enable the NXP IMX SD Host controller driver
13
14if IMX_USDHC
15
16config IMX_USDHC_DAT3_PWR_TOGGLE
17	bool "Toggle power when pulling DAT3 line low"
18	default y
19	help
20	  Toggle power to SD card to clear DAT3 pull when pulling line low
21
22config IMX_USDHC_DMA_SUPPORT
23	bool "DMA support for USDHC"
24	default y
25	select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
26	help
27	  Enable DMA support for USDHC
28
29if IMX_USDHC_DMA_SUPPORT
30
31# USDHC DMA needs 32 bit aligned buffers
32config SDHC_BUFFER_ALIGNMENT
33	default 4
34
35config IMX_USDHC_DMA_BUFFER_SIZE
36	int "Size of DMA descriptor buffer in bytes"
37	default 128
38	help
39	  Size of USDHC ADMA descriptor buffer in bytes
40
41endif # IMX_USDHC_DMA_SUPPORT
42
43
44
45endif
46