Skip to content

Commit 0887ccd

Browse files
mcuxtedkartben
authored andcommitted
clock: Add KPP clock support for ccm.
Add KPP clock support for ccm. Signed-off-by: Qiang Zhang <[email protected]>
1 parent 79e4b31 commit 0887ccd

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-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
@@ -299,6 +299,12 @@ static int mcux_ccm_get_subsys_rate(const struct device *dev,
299299
break;
300300
#endif
301301

302+
#ifdef CONFIG_INPUT_MCUX_KPP
303+
case IMX_CCM_KPP_CLK:
304+
clock_root = kCLOCK_CpuClk;
305+
break;
306+
#endif
307+
302308
default:
303309
return -EINVAL;
304310
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@
155155
#define IMX_CCM_LPIT2_CLK 0x2301UL
156156
#define IMX_CCM_LPIT3_CLK 0x2302UL
157157

158+
/* KPP */
159+
#define IMX_CCM_KPP_CLK 0x2400UL
160+
158161
/* QTMR */
159162
#define IMX_CCM_QTMR_CLK 0x6000UL
160163
#define IMX_CCM_QTMR1_CLK 0x6000UL

0 commit comments

Comments
 (0)