Home
last modified time | relevance | path

Searched refs:clk_pwm (Results 1 – 2 of 2) sorted by relevance

/drivers/clk/
Dclk-pwm.c14 struct clk_pwm { struct
20 static inline struct clk_pwm *to_clk_pwm(struct clk_hw *hw) in to_clk_pwm() argument
22 return container_of(hw, struct clk_pwm, hw); in to_clk_pwm()
27 struct clk_pwm *clk_pwm = to_clk_pwm(hw); in clk_pwm_prepare() local
29 return pwm_enable(clk_pwm->pwm); in clk_pwm_prepare()
34 struct clk_pwm *clk_pwm = to_clk_pwm(hw); in clk_pwm_unprepare() local
36 pwm_disable(clk_pwm->pwm); in clk_pwm_unprepare()
42 struct clk_pwm *clk_pwm = to_clk_pwm(hw); in clk_pwm_recalc_rate() local
44 return clk_pwm->fixed_rate; in clk_pwm_recalc_rate()
49 struct clk_pwm *clk_pwm = to_clk_pwm(hw); in clk_pwm_get_duty_cycle() local
[all …]
/drivers/pwm/
Dpwm-sprd.c212 struct clk *clk_pwm; in sprd_pwm_clk_init() local
233 clk_pwm = chn->clks[SPRD_PWM_CHN_OUTPUT_CLK].clk; in sprd_pwm_clk_init()
234 chn->clk_rate = clk_get_rate(clk_pwm); in sprd_pwm_clk_init()