Skip to content

Commit 32cd207

Browse files
danieldegrassedleach02
authored andcommitted
boards: mimxrt1064: Enabled new SDHC driver
Enabled new SDHC driver for mimxrt1064 evk Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 792cae9 commit 32cd207

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

boards/arm/mimxrt1064_evk/Kconfig.defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ endchoice
1515
config DISK_DRIVER_SDMMC
1616
default y if DISK_DRIVERS
1717

18+
config IMX_USDHC
19+
default y if SDHC
20+
1821
config FLASH_MCUX_FLEXSPI_NOR
1922
default y if FLASH
2023

soc/arm/nxp_imx/rt/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ endif()
4141
zephyr_compile_definitions(
4242
XIP_EXTERNAL_FLASH
4343
)
44+
zephyr_linker_sources(
45+
RWDATA nocache.ld)
4446

4547
zephyr_linker_section_configure(
4648
SECTION .rom_start

soc/arm/nxp_imx/rt/nocache.ld

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
* Copyright (c) 2020 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
. = ALIGN(4);
8+
KEEP(*(NonCacheable))

soc/arm/nxp_imx/rt/soc_rt10xx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ static ALWAYS_INLINE void clock_init(void)
187187
USB_EhciPhyInit(kUSB_ControllerEhci1, CPU_XTAL_CLK_HZ, &usbPhyConfig);
188188
#endif
189189

190-
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc1), okay) && CONFIG_DISK_DRIVER_SDMMC
190+
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc1), okay) && CONFIG_IMX_USDHC
191191
/* Configure USDHC clock source and divider */
192192
CLOCK_InitSysPfd(kCLOCK_Pfd0, 24U);
193193
CLOCK_SetDiv(kCLOCK_Usdhc1Div, 1U);
194194
CLOCK_SetMux(kCLOCK_Usdhc1Mux, 1U);
195195
CLOCK_EnableClock(kCLOCK_Usdhc1);
196196
#endif
197-
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc2), okay) && CONFIG_DISK_DRIVER_SDMMC
197+
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc2), okay) && CONFIG_IMX_USDHC
198198
/* Configure USDHC clock source and divider */
199199
CLOCK_InitSysPfd(kCLOCK_Pfd0, 24U);
200200
CLOCK_SetDiv(kCLOCK_Usdhc2Div, 1U);

0 commit comments

Comments
 (0)