Home
last modified time | relevance | path

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

/linux/drivers/pwm/
H A Dpwm-lpss.c76 struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip); in pwm_lpss_read() local
78 return readl(lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM); in pwm_lpss_read()
83 struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip); in pwm_lpss_write() local
85 writel(value, lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM); in pwm_lpss_write()
90 struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip); in pwm_lpss_wait_for_update() local
91 const void __iomem *addr = lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM; in pwm_lpss_wait_for_update()
124 static void pwm_lpss_prepare(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm, in pwm_lpss_prepare() argument
128 unsigned long c = lpwm->info->clk_rate, base_unit_range; in pwm_lpss_prepare()
138 base_unit_range = BIT(lpwm->info->base_unit_bits); in pwm_lpss_prepare()
165 static int pwm_lpss_prepare_enable(struct pwm_lpss_chip *lpwm, in pwm_lpss_prepare_enable() argument
[all …]