Lines Matching refs:divclk
212 static unsigned long clk_pwm_tdiv_bits(struct pwm_tdiv_clk *divclk)
214 return pwm_tdiv_div_bits(divclk->divisor);
217 static void clk_pwm_tdiv_update(struct pwm_tdiv_clk *divclk)
220 unsigned long bits = clk_pwm_tdiv_bits(divclk);
222 unsigned long shift = S3C2410_TCFG1_SHIFT(divclk->clk.id);
236 struct pwm_tdiv_clk *divclk = to_tdiv(clk);
250 divclk->divisor = divisor;
256 clk_pwm_tdiv_update(divclk);
307 struct pwm_tdiv_clk *divclk = &clk_timer_tdiv[id];
313 divclk->clk.id = id;
314 divclk->divisor = tcfg_to_divisor(tcfg1);
316 return s3c24xx_register_clock(&divclk->clk);