Skip to content

Commit 0cb44d7

Browse files
FelixWang47831kartben
authored andcommitted
soc: nxp: kinetis: clock update for LPIT instances on KE1XZ
Configure LPIT0 IP clock if devicetree status is okay. Signed-off-by: Felix Wang <[email protected]>
1 parent d67bf2f commit 0cb44d7

File tree

1 file changed

+4
-0
lines changed
  • soc/nxp/kinetis/ke1xz

1 file changed

+4
-0
lines changed

soc/nxp/kinetis/ke1xz/soc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ __weak void clk_init(void)
145145
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(ewm0))
146146
CLOCK_EnableClock(kCLOCK_Ewm0);
147147
#endif
148+
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(lpit0))
149+
CLOCK_SetIpSrc(kCLOCK_Lpit0,
150+
DT_CLOCKS_CELL(DT_NODELABEL(lpit0), ip_source));
151+
#endif
148152
}
149153

150154
void soc_early_init_hook(void)

0 commit comments

Comments
 (0)