soc: nxp: ke1xf: add ADC12 support
Add support for the three ADC12 modules present in the NXP Kinetis KE1xF SoC series. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
683ca77620
commit
ca38f0a21d
5 changed files with 57 additions and 0 deletions
|
@ -214,6 +214,15 @@ static ALWAYS_INLINE void clk_init(void)
|
|||
#ifdef CONFIG_SPI_1
|
||||
CLOCK_SetIpSrc(kCLOCK_Lpspi1, kCLOCK_IpSrcFircAsync);
|
||||
#endif
|
||||
#ifdef CONFIG_ADC_0
|
||||
CLOCK_SetIpSrc(kCLOCK_Adc0, kCLOCK_IpSrcFircAsync);
|
||||
#endif
|
||||
#ifdef CONFIG_ADC_1
|
||||
CLOCK_SetIpSrc(kCLOCK_Adc1, kCLOCK_IpSrcFircAsync);
|
||||
#endif
|
||||
#ifdef CONFIG_ADC_2
|
||||
CLOCK_SetIpSrc(kCLOCK_Adc2, kCLOCK_IpSrcFircAsync);
|
||||
#endif
|
||||
#ifdef DT_NXP_KINETIS_SCG_0_CLKOUT_SOURCE
|
||||
CLOCK_SetClkOutSel(DT_NXP_KINETIS_SCG_0_CLKOUT_SOURCE);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue