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:
Michal Smola 2024-09-30 16:12:56 +02:00 committed by David Leach
commit 8ad3c99dab

View file

@ -15,6 +15,8 @@
/*******************************************************************************
* Definitions
******************************************************************************/
#define IRC48M_CLK_FREQ (48000000UL)
#define MCG_NODE DT_NODELABEL(mcg)
#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)));
#endif
#if CONFIG_USB_KINETIS || CONFIG_UDC_KINETIS
CLOCK_EnableUsbfs0Clock(kCLOCK_UsbSrcIrc48M, IRC48M_CLK_FREQ);
#endif
}
void soc_early_init_hook(void)