drivers: sdhc: add SD host controller driver for LPC SDIF

add SD host controller driver for LPC SDIF IP block, using NXP SDIF
HAL driver.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2022-05-06 18:22:46 -05:00 committed by Carles Cufí
commit 04773864a8
6 changed files with 512 additions and 0 deletions

View file

@ -196,6 +196,13 @@ DT_FOREACH_STATUS_OKAY(nxp_lpc_ctimer, CTIMER_CLOCK_SETUP)
RESET_PeripheralReset(kMCAN_RST_SHIFT_RSTn);
#endif
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(sdif), nxp_lpc_sdif, okay) && \
CONFIG_MCUX_SDIF
/* attach main clock to SDIF */
CLOCK_AttachClk(kMAIN_CLK_to_SDIO_CLK);
CLOCK_SetClkDiv(kCLOCK_DivSdioClk, 3, true);
#endif
#endif /* CONFIG_SOC_LPC55S69_CPU0 */
}