Home
last modified time | relevance | path

Searched +full:ums512 +full:- +full:pwm (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/pwm/
H A Dpwm-sprd.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <linux/pwm.h>
46 * The list of clocks required by PWM channels, and each channel has 2 clocks:
47 * enable clock and pwm clock.
60 return readl_relaxed(spc->base + offset); in sprd_pwm_read()
68 writel_relaxed(val, spc->base + offset); in sprd_pwm_write()
71 static int sprd_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in sprd_pwm_get_state() argument
75 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; in sprd_pwm_get_state()
81 * The clocks to PWM channel has to be enabled first before in sprd_pwm_get_state()
84 ret = clk_bulk_prepare_enable(SPRD_PWM_CHN_CLKS_NUM, chn->clks); in sprd_pwm_get_state()
[all …]