soc: nxp mcxc: Enable usb clock
USB clock is not enabled for NXP mcxc series. Enable it. Signed-off-by: Michal Smola <michal.smola@nxp.com>
This commit is contained in:
parent
13e0b1fa2b
commit
8ad3c99dab
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,8 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Definitions
|
* Definitions
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
#define IRC48M_CLK_FREQ (48000000UL)
|
||||||
|
|
||||||
#define MCG_NODE DT_NODELABEL(mcg)
|
#define MCG_NODE DT_NODELABEL(mcg)
|
||||||
#define OSC_NODE DT_NODELABEL(osc)
|
#define OSC_NODE DT_NODELABEL(osc)
|
||||||
|
|
||||||
|
@ -105,6 +107,9 @@ static void clock_init(void)
|
||||||
*/
|
*/
|
||||||
CLOCK_SetTpmClock(TPM_CLOCK_SEL(DT_COMPAT_GET_ANY_STATUS_OKAY(nxp_kinetis_tpm)));
|
CLOCK_SetTpmClock(TPM_CLOCK_SEL(DT_COMPAT_GET_ANY_STATUS_OKAY(nxp_kinetis_tpm)));
|
||||||
#endif
|
#endif
|
||||||
|
#if CONFIG_USB_KINETIS || CONFIG_UDC_KINETIS
|
||||||
|
CLOCK_EnableUsbfs0Clock(kCLOCK_UsbSrcIrc48M, IRC48M_CLK_FREQ);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void soc_early_init_hook(void)
|
void soc_early_init_hook(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue