Searched refs:diviser (Results 1 – 1 of 1) sorted by relevance
92 uint32_t reg_val, power, diviser; in pwm_rcar_update_clk() local96 diviser = 1 << power; in pwm_rcar_update_clk()98 LOG_DBG("Found old diviser : 2^%d=%d", power, diviser); in pwm_rcar_update_clk()104 diviser *= 2; in pwm_rcar_update_clk()118 diviser /= 2; in pwm_rcar_update_clk()124 LOG_DBG("Found new diviser : 2^%d=%d\n", power, diviser); in pwm_rcar_update_clk()204 uint32_t diviser; in pwm_rcar_get_cycles_per_sec() local210 diviser = pwm_rcar_read(config, RCAR_PWM_CR(channel)) & RCAR_PWM_DIVISER_MASK; in pwm_rcar_get_cycles_per_sec()211 diviser = diviser >> RCAR_PWM_DIVISER_SHIFT; in pwm_rcar_get_cycles_per_sec()212 *cycles = data->clk_rate >> diviser; in pwm_rcar_get_cycles_per_sec()[all …]