Home
last modified time | relevance | path

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

/linux/drivers/pwm/
H A Dpwm-sun4i.c97 static inline u32 sun4i_pwm_readl(struct sun4i_pwm_chip *sun4ichip, in sun4i_pwm_readl() argument
100 return readl(sun4ichip->base + offset); in sun4i_pwm_readl()
103 static inline void sun4i_pwm_writel(struct sun4i_pwm_chip *sun4ichip, in sun4i_pwm_writel() argument
106 writel(val, sun4ichip->base + offset); in sun4i_pwm_writel()
113 struct sun4i_pwm_chip *sun4ichip = to_sun4i_pwm_chip(chip); in sun4i_pwm_get_state() local
118 clk_rate = clk_get_rate(sun4ichip->clk); in sun4i_pwm_get_state()
122 val = sun4i_pwm_readl(sun4ichip, PWM_CTRL_REG); in sun4i_pwm_get_state()
130 sun4ichip->data->has_direct_mod_clk_output) { in sun4i_pwm_get_state()
139 sun4ichip->data->has_prescaler_bypass) in sun4i_pwm_get_state()
158 val = sun4i_pwm_readl(sun4ichip, PWM_CH_PRD(pwm->hwpwm)); in sun4i_pwm_get_state()
[all …]