Searched refs:clk_div_reg (Results 1 – 1 of 1) sorted by relevance
129 unsigned int clk_div, clk_div_reg, duty_cycle_reg; in crc_pwm_get_state() local132 error = regmap_read(crc_pwm->regmap, PWM0_CLK_DIV, &clk_div_reg); in crc_pwm_get_state()144 clk_div = (clk_div_reg & ~PWM_OUTPUT_ENABLE) + 1; in crc_pwm_get_state()151 state->enabled = !!(clk_div_reg & PWM_OUTPUT_ENABLE); in crc_pwm_get_state()