boards: nxp: frdm_mcxn947: add support for USDHC0
Add support for USDHC0 controller on FRDM_MCXN947 board. This support was verified using the `tests/subsys/sd/sdmmc` and `tests/subsys/sd/sdio` testcases. Note that this board does not ship with the SD header (J12) populated by default, so the user must populate one. Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
parent
3493d95ed0
commit
f0af6aa8b2
7 changed files with 57 additions and 0 deletions
|
@ -192,6 +192,11 @@ static int frdm_mcxn947_init(void)
|
|||
CLOCK_AttachClk(kPLL0_to_CTIMER4);
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc0), okay)
|
||||
CLOCK_SetClkDiv(kCLOCK_DivUSdhcClk, 1u);
|
||||
CLOCK_AttachClk(kFRO_HF_to_USDHC);
|
||||
#endif
|
||||
|
||||
#if CONFIG_FLASH_MCUX_FLEXSPI_NOR
|
||||
/* We downclock the FlexSPI to 50MHz, it will be set to the
|
||||
* optimum speed supported by the Flash device during FLEXSPI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue