Searched refs:tcsr1 (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/drivers/pwm/ |
D | pwm-xilinx.c | 89 static bool xilinx_timer_pwm_enabled(u32 tcsr0, u32 tcsr1) in xilinx_timer_pwm_enabled() argument 92 (TCSR_PWM_MASK & tcsr1) == TCSR_PWM_SET; in xilinx_timer_pwm_enabled() 99 u32 tlr0, tlr1, tcsr0, tcsr1; in xilinx_pwm_apply() local 138 regmap_read(priv->map, TCSR1, &tcsr1); in xilinx_pwm_apply() 140 tlr1 = xilinx_timer_tlr_cycles(priv, tcsr1, duty_cycles); in xilinx_pwm_apply() 149 if (!xilinx_timer_pwm_enabled(tcsr0, tcsr1)) { in xilinx_pwm_apply() 152 regmap_write(priv->map, TCSR1, tcsr1 | TCSR_LOAD); in xilinx_pwm_apply() 155 tcsr1 = TCSR_PWM_SET | TCSR_ENALL | (tcsr1 & TCSR_UDT); in xilinx_pwm_apply() 157 regmap_write(priv->map, TCSR1, tcsr1); in xilinx_pwm_apply() 172 u32 tlr0, tlr1, tcsr0, tcsr1; in xilinx_pwm_get_state() local [all …]
|