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:
parent
84c74993d4
commit
67126be662
5 changed files with 94 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue