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:
parent
04ae22eb22
commit
883f36c448
1 changed files with 4 additions and 0 deletions
|
@ -126,6 +126,10 @@ static ALWAYS_INLINE void clk_init(void)
|
||||||
CLOCK_SetIpSrc(kCLOCK_Lpi2c1,
|
CLOCK_SetIpSrc(kCLOCK_Lpi2c1,
|
||||||
DT_CLOCKS_CELL(DT_NODELABEL(lpi2c1), ip_source));
|
DT_CLOCKS_CELL(DT_NODELABEL(lpi2c1), ip_source));
|
||||||
#endif
|
#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)
|
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpspi0), okay)
|
||||||
CLOCK_SetIpSrc(kCLOCK_Lpspi0,
|
CLOCK_SetIpSrc(kCLOCK_Lpspi0,
|
||||||
DT_CLOCKS_CELL(DT_NODELABEL(lpspi0), ip_source));
|
DT_CLOCKS_CELL(DT_NODELABEL(lpspi0), ip_source));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue