soc: rt10xx: Set divisor for sys pll (PLL2) PFD0
Divisor must be set to calculate SD host controller clock frequency in clock driver. Fixes #42380 Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
parent
2355fe86da
commit
5dfd3c3786
1 changed files with 2 additions and 0 deletions
|
@ -174,12 +174,14 @@ static ALWAYS_INLINE void clock_init(void)
|
|||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc1), okay) && CONFIG_DISK_DRIVER_SDMMC
|
||||
/* Configure USDHC clock source and divider */
|
||||
CLOCK_InitSysPfd(kCLOCK_Pfd0, 24U);
|
||||
CLOCK_SetDiv(kCLOCK_Usdhc1Div, 1U);
|
||||
CLOCK_SetMux(kCLOCK_Usdhc1Mux, 1U);
|
||||
CLOCK_EnableClock(kCLOCK_Usdhc1);
|
||||
#endif
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc2), okay) && CONFIG_DISK_DRIVER_SDMMC
|
||||
/* Configure USDHC clock source and divider */
|
||||
CLOCK_InitSysPfd(kCLOCK_Pfd0, 24U);
|
||||
CLOCK_SetDiv(kCLOCK_Usdhc2Div, 1U);
|
||||
CLOCK_SetMux(kCLOCK_Usdhc2Mux, 1U);
|
||||
CLOCK_EnableClock(kCLOCK_Usdhc2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue