Skip to content

Commit 5aba439

Browse files
committed
drivers: gint: Enable the GINT driver for NXP SOCs
Enable GINT clock during SOC init Signed-off-by: Jason Yu <[email protected]>
1 parent 35c1ed5 commit 5aba439

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

soc/nxp/lpc/lpc51u68/soc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ void soc_early_init_hook(void)
4242
POWER_DisablePD(kPDRUNCFG_PD_VD7_ENA);
4343
POWER_DisablePD(kPDRUNCFG_PD_VREFP_SW);
4444
POWER_DisablePD(kPDRUNCFG_PD_TEMPS);
45+
46+
if (IS_ENABLED(CONFIG_NXP_GINT)) {
47+
CLOCK_EnableClock(kCLOCK_Gint);
48+
}
4549
}
4650

4751
#ifdef CONFIG_SOC_RESET_HOOK

soc/nxp/lpc/lpc54xxx/soc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ __weak void clock_init(void)
8989
#endif
9090

9191
#endif /* CONFIG_SOC_LPC54114_M4 */
92+
93+
if (IS_ENABLED(CONFIG_NXP_GINT)) {
94+
CLOCK_EnableClock(kCLOCK_Gint);
95+
}
9296
}
9397

9498
/**

soc/nxp/lpc/lpc55xxx/soc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,10 @@ DT_FOREACH_STATUS_OKAY(nxp_ctimer_pwm, CTIMER_CLOCK_SETUP)
465465
POWER_DisablePD(kPDRUNCFG_PD_HSCMP2);
466466
POWER_DisablePD(kPDRUNCFG_PD_HSCMP2_DAC);
467467
#endif
468+
469+
if (IS_ENABLED(CONFIG_NXP_GINT)) {
470+
CLOCK_EnableClock(kCLOCK_Gint);
471+
}
468472
}
469473

470474
/**

soc/nxp/mcx/mcxw/mcxw2xx/soc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ __weak void clock_init(void)
109109
*/
110110
CLOCK_EnableClock(kCLOCK_Sysctl);
111111
#endif
112+
113+
if (IS_ENABLED(CONFIG_NXP_GINT)) {
114+
CLOCK_EnableClock(kCLOCK_Gint);
115+
}
112116
}
113117

114118
#ifdef CONFIG_SOC_RESET_HOOK

0 commit comments

Comments
 (0)