soc: nxp: kinetis: ke1xz: add adc0 clock source configuration

If the adc0 node is set to 'okay', the function 'CLOCK_SetIpSrc'
is called to enable the adc0 clock.

Signed-off-by: Anke Xiao <anke.xiao@nxp.com>
This commit is contained in:
Anke Xiao 2024-06-27 10:58:58 +08:00 committed by Fabio Baltieri
parent f21d473523
commit 54c4f6c8fe
1 changed files with 4 additions and 0 deletions

View File

@ -134,6 +134,10 @@ static ALWAYS_INLINE void clk_init(void)
CLOCK_SetIpSrc(kCLOCK_Lpspi1,
DT_CLOCKS_CELL(DT_NODELABEL(lpspi1), ip_source));
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc0), okay)
CLOCK_SetIpSrc(kCLOCK_Adc0,
DT_CLOCKS_CELL(DT_NODELABEL(adc0), ip_source));
#endif
}
static int ke1xz_init(void)