Home
last modified time | relevance | path

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

/openbmc/linux/drivers/pwm/
H A Dpwm-ep93xx.c36 struct ep93xx_pwm { struct
42 static inline struct ep93xx_pwm *to_ep93xx_pwm(struct pwm_chip *chip) in to_ep93xx_pwm() argument
44 return container_of(chip, struct ep93xx_pwm, chip); in to_ep93xx_pwm()
65 struct ep93xx_pwm *ep93xx_pwm = to_ep93xx_pwm(chip); in ep93xx_pwm_apply() local
67 void __iomem *base = ep93xx_pwm->base; in ep93xx_pwm_apply()
75 writew(0x0, ep93xx_pwm->base + EP93XX_PWMx_ENABLE); in ep93xx_pwm_apply()
76 clk_disable_unprepare(ep93xx_pwm->clk); in ep93xx_pwm_apply()
84 ret = clk_prepare_enable(ep93xx_pwm->clk); in ep93xx_pwm_apply()
89 writew(0x1, ep93xx_pwm->base + EP93XX_PWMx_INVERT); in ep93xx_pwm_apply()
91 writew(0x0, ep93xx_pwm->base + EP93XX_PWMx_INVERT); in ep93xx_pwm_apply()
[all …]