Home
last modified time | relevance | path

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

/openbmc/linux/drivers/rtc/
H A Drtc-fsl-ftm-alarm.c66 val = rtc_readl(rtc, FTM_SC); in ftm_counter_enable()
69 rtc_writel(rtc, FTM_SC, val); in ftm_counter_enable()
77 val = rtc_readl(rtc, FTM_SC); in ftm_counter_disable()
79 rtc_writel(rtc, FTM_SC, val); in ftm_counter_disable()
107 while ((FTM_SC_TOF & rtc_readl(rtc, FTM_SC)) && timeout--) in ftm_irq_acknowledge()
108 rtc_writel(rtc, FTM_SC, rtc_readl(rtc, FTM_SC) & (~FTM_SC_TOF)); in ftm_irq_acknowledge()
115 val = rtc_readl(rtc, FTM_SC); in ftm_irq_enable()
117 rtc_writel(rtc, FTM_SC, val); in ftm_irq_enable()
124 val = rtc_readl(rtc, FTM_SC); in ftm_irq_disable()
126 rtc_writel(rtc, FTM_SC, val); in ftm_irq_disable()
/openbmc/linux/drivers/clocksource/
H A 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()
/openbmc/linux/drivers/counter/
H A 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()
/openbmc/linux/drivers/pwm/
H A Dpwm-fsl-ftm.c95 regmap_set_bits(fpc->regmap, FTM_SC, BIT(pwm->hwpwm + 16)); in fsl_pwm_request()
108 regmap_clear_bits(fpc->regmap, FTM_SC, BIT(pwm->hwpwm + 16)); in fsl_pwm_free()
270 regmap_update_bits(fpc->regmap, FTM_SC, FTM_SC_CLK_MASK, in fsl_pwm_apply_config()
272 regmap_update_bits(fpc->regmap, FTM_SC, FTM_SC_PS_MASK, in fsl_pwm_apply_config()
/openbmc/linux/include/linux/fsl/
H A Dftm.h5 #define FTM_SC 0x0 /* Status And Control */ macro