File tree 6 files changed +512
-0
lines changed
6 files changed +512
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,14 @@ static int mcux_lpc_syscon_clock_control_get_subsys_rate(
113
113
break ;
114
114
#endif
115
115
116
+ #if (defined(FSL_FEATURE_SOC_SDIF_COUNT ) && \
117
+ (FSL_FEATURE_SOC_SDIF_COUNT )) && \
118
+ CONFIG_MCUX_SDIF
119
+ case MCUX_SDIF_CLK :
120
+ * rate = CLOCK_GetSdioClkFreq ();
121
+ break ;
122
+ #endif
123
+
116
124
#if defined(CONFIG_CAN_MCUX_MCAN )
117
125
case MCUX_MCAN_CLK :
118
126
* rate = CLOCK_GetMCanClkFreq ();
Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ if (CONFIG_SDHC)
5
5
zephyr_library()
6
6
zephyr_library_sources_ifdef(CONFIG_IMX_USDHC imx_usdhc.c)
7
7
zephyr_library_sources_ifdef(CONFIG_SPI_SDHC sdhc_spi.c)
8
+ zephyr_library_sources_ifdef(CONFIG_MCUX_SDIF mcux_sdif.c)
8
9
endif ()
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ if SDHC
10
10
11
11
source "drivers/sdhc/Kconfig.imx"
12
12
source "drivers/sdhc/Kconfig.spi"
13
+ source "drivers/sdhc/Kconfig.mcux_sdif"
13
14
14
15
config SDHC_INIT_PRIORITY
15
16
int "SDHC driver init priority"
Original file line number Diff line number Diff line change
1
+ # Copyright 2022, NXP
2
+ # SPDX -License-Identifier: Apache-2.0
3
+
4
+ config 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
+ help
10
+ Enable the NXP SDIF Host controller driver
11
+
12
+ if MCUX_SDIF
13
+
14
+ config MCUX_SDIF_DMA_SUPPORT
15
+ bool "DMA support for MCUX SDIF driver"
16
+ default y
17
+ help
18
+ Enable DMA support for MCUX SDIF driver. May be disabled to reduce
19
+ footprint of driver.
20
+
21
+ if MCUX_SDIF_DMA_SUPPORT
22
+
23
+ # SDIF DMA needs 32 bit aligned buffers
24
+ config SDHC_BUFFER_ALIGNMENT
25
+ default 4
26
+
27
+ config MCUX_SDIF_DMA_BUFFER_SIZE
28
+ int "Size of DMA descriptor buffer in bytes"
29
+ default 256
30
+ help
31
+ Size of MCUX SDIF DMA descriptor buffer in bytes
32
+
33
+ endif #MCUX_SDIF_DMA_SUPPORT
34
+
35
+ endif #MCUX_SDIF
You can’t perform that action at this time.
0 commit comments