soc: nxp: kinetis: ke1xz: update soc.c to add flexio clock

Add flexio clock configuration, and select the clock source.

Signed-off-by: Anke Xiao <anke.xiao@nxp.com>
This commit is contained in:
Anke Xiao 2024-08-12 16:16:26 +08:00 committed by Anas Nashif
parent 04ae22eb22
commit 883f36c448
1 changed files with 4 additions and 0 deletions

View File

@ -126,6 +126,10 @@ static ALWAYS_INLINE void clk_init(void)
CLOCK_SetIpSrc(kCLOCK_Lpi2c1,
DT_CLOCKS_CELL(DT_NODELABEL(lpi2c1), ip_source));
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(flexio), okay)
CLOCK_SetIpSrc(kCLOCK_Flexio0,
DT_CLOCKS_CELL(DT_NODELABEL(flexio), ip_source));
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpspi0), okay)
CLOCK_SetIpSrc(kCLOCK_Lpspi0,
DT_CLOCKS_CELL(DT_NODELABEL(lpspi0), ip_source));