soc: arm: nxp: ke1xf: add FlexTimer (FTM) module support

Add support for the FlexTimer (FTM) modules present in the NXP Kinetis
KE1xF Soc series.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2019-05-19 15:53:54 +02:00 committed by Maureen Helm
commit 67126be662
5 changed files with 94 additions and 0 deletions

View file

@ -223,6 +223,18 @@ static ALWAYS_INLINE void clk_init(void)
#ifdef CONFIG_ADC_2
CLOCK_SetIpSrc(kCLOCK_Adc2, kCLOCK_IpSrcFircAsync);
#endif
#ifdef CONFIG_PWM_0
CLOCK_SetIpSrc(kCLOCK_Ftm0, kCLOCK_IpSrcFircAsync);
#endif
#ifdef CONFIG_PWM_1
CLOCK_SetIpSrc(kCLOCK_Ftm1, kCLOCK_IpSrcFircAsync);
#endif
#ifdef CONFIG_PWM_2
CLOCK_SetIpSrc(kCLOCK_Ftm2, kCLOCK_IpSrcFircAsync);
#endif
#ifdef CONFIG_PWM_3
CLOCK_SetIpSrc(kCLOCK_Ftm3, kCLOCK_IpSrcFircAsync);
#endif
}
static int ke1xf_init(struct device *arg)