Skip to content

Commit 6955278

Browse files
JasonHe-nxpJonyZhang7
authored andcommitted
drivers: clock: mcux_ccm: add usb clock support
Add usb clock support. Signed-off-by: Jason He <jason.he_1@nxp.com> Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com> Signed-off-by: Jony Zhang <jony.zhang@nxp.com>
1 parent a0abf9d commit 6955278

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

drivers/clock_control/clock_control_mcux_ccm_rev2.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,12 @@ static int CCM_SET_FUNC_ATTR mcux_ccm_set_subsys_rate(const struct device *dev,
406406
return common_clock_set_freq(clock_name, (uint32_t)clock_rate);
407407
#endif
408408

409+
#if defined(CONFIG_UDC_NXP_EHCI) && defined(CONFIG_SOC_MIMX9352_A55)
410+
case IMX_CCM_USB_CLK:
411+
case IMX_CCM_USB_PHY_CLK:
412+
return common_clock_set_freq(clock_name, (uint32_t)clock_rate);
413+
#endif
414+
409415
default:
410416
/* Silence unused variable warning */
411417
ARG_UNUSED(clock_rate);

include/zephyr/dt-bindings/clock/imx_ccm_rev2.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@
159159
/* KPP */
160160
#define IMX_CCM_KPP_CLK 0x2400UL
161161

162+
/* USB */
163+
#define IMX_CCM_USB_CLK 0x2500UL
164+
#define IMX_CCM_USB_PHY_CLK 0x2600UL
165+
162166
/* QTMR */
163167
#define IMX_CCM_QTMR_CLK 0x6000UL
164168
#define IMX_CCM_QTMR1_CLK 0x6000UL

0 commit comments

Comments
 (0)