Searched refs:clk_pwm (Results 1 – 2 of 2) sorted by relevance
14 struct clk_pwm { struct20 static inline struct clk_pwm *to_clk_pwm(struct clk_hw *hw) in to_clk_pwm() argument22 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() local29 return pwm_enable(clk_pwm->pwm); in clk_pwm_prepare()34 struct clk_pwm *clk_pwm = to_clk_pwm(hw); in clk_pwm_unprepare() local36 pwm_disable(clk_pwm->pwm); in clk_pwm_unprepare()42 struct clk_pwm *clk_pwm = to_clk_pwm(hw); in clk_pwm_recalc_rate() local44 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 …]
212 struct clk *clk_pwm; in sprd_pwm_clk_init() local233 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()