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:
parent
f21d473523
commit
54c4f6c8fe
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue