Home
last modified time | relevance | path

Searched refs:FTM_SC (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/rtc/
Drtc-fsl-ftm-alarm.c69 val = rtc_readl(rtc, FTM_SC); in ftm_counter_enable()
72 rtc_writel(rtc, FTM_SC, val); in ftm_counter_enable()
80 val = rtc_readl(rtc, FTM_SC); in ftm_counter_disable()
82 rtc_writel(rtc, FTM_SC, val); in ftm_counter_disable()
110 while ((FTM_SC_TOF & rtc_readl(rtc, FTM_SC)) && timeout--) in ftm_irq_acknowledge()
111 rtc_writel(rtc, FTM_SC, rtc_readl(rtc, FTM_SC) & (~FTM_SC_TOF)); in ftm_irq_acknowledge()
118 val = rtc_readl(rtc, FTM_SC); in ftm_irq_enable()
120 rtc_writel(rtc, FTM_SC, val); in ftm_irq_enable()
127 val = rtc_readl(rtc, FTM_SC); in ftm_irq_disable()
129 rtc_writel(rtc, FTM_SC, val); in ftm_irq_disable()
/linux-6.1.9/drivers/clocksource/
Dtimer-fsl-ftm.c53 val = ftm_readl(base + FTM_SC); in ftm_counter_enable()
56 ftm_writel(val, base + FTM_SC); in ftm_counter_enable()
64 val = ftm_readl(base + FTM_SC); in ftm_counter_disable()
66 ftm_writel(val, base + FTM_SC); in ftm_counter_disable()
73 val = ftm_readl(base + FTM_SC); in ftm_irq_acknowledge()
75 ftm_writel(val, base + FTM_SC); in ftm_irq_acknowledge()
82 val = ftm_readl(base + FTM_SC); in ftm_irq_enable()
84 ftm_writel(val, base + FTM_SC); in ftm_irq_enable()
91 val = ftm_readl(base + FTM_SC); in ftm_irq_disable()
93 ftm_writel(val, base + FTM_SC); in ftm_irq_disable()
/linux-6.1.9/drivers/counter/
Dftm-quaddec.c88 ftm_write(ftm, FTM_SC, FTM_SC_PS_1); in ftm_quaddec_init()
123 ftm_read(ftm, FTM_SC, &scflags); in ftm_quaddec_get_prescaler()
138 FTM_FIELD_UPDATE(ftm, FTM_SC, FTM_SC_PS_MASK, cnt_mode); in ftm_quaddec_set_prescaler()
/linux-6.1.9/drivers/pwm/
Dpwm-fsl-ftm.c97 regmap_update_bits(fpc->regmap, FTM_SC, BIT(pwm->hwpwm + 16), in fsl_pwm_request()
111 regmap_update_bits(fpc->regmap, FTM_SC, BIT(pwm->hwpwm + 16), in fsl_pwm_free()
274 regmap_update_bits(fpc->regmap, FTM_SC, FTM_SC_CLK_MASK, in fsl_pwm_apply_config()
276 regmap_update_bits(fpc->regmap, FTM_SC, FTM_SC_PS_MASK, in fsl_pwm_apply_config()
/linux-6.1.9/include/linux/fsl/
Dftm.h5 #define FTM_SC 0x0 /* Status And Control */ macro