Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/input/remotectl/
H A Drockchip_pwm_remotectl.c460 static void rk_pwm_int_ctrl(void __iomem *pwm_base, uint pwm_id, int ctrl) in rk_pwm_int_ctrl() argument
466 val = readl_relaxed(pwm_base + PWM_REG_INT_EN(pwm_id)); in rk_pwm_int_ctrl()
470 writel_relaxed(val, pwm_base + PWM_REG_INT_EN(pwm_id)); in rk_pwm_int_ctrl()
475 writel_relaxed(val, pwm_base + PWM_REG_INT_EN(pwm_id)); in rk_pwm_int_ctrl()
478 static int rk_pwm_remotectl_hw_init(void __iomem *pwm_base, uint pwm_id) in rk_pwm_remotectl_hw_init() argument
485 val = readl_relaxed(pwm_base + PWM_REG_CTRL); in rk_pwm_remotectl_hw_init()
487 writel_relaxed(val, pwm_base + PWM_REG_CTRL); in rk_pwm_remotectl_hw_init()
489 val = readl_relaxed(pwm_base + PWM_REG_CTRL); in rk_pwm_remotectl_hw_init()
491 writel_relaxed(val, pwm_base + PWM_REG_CTRL); in rk_pwm_remotectl_hw_init()
493 val = readl_relaxed(pwm_base + PWM_REG_CTRL); in rk_pwm_remotectl_hw_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/hwmon/
H A Dnpcm750-pwm-fan.c192 void __iomem *pwm_base; member
223 iowrite32(val, NPCM7XX_PWM_REG_CMRx(data->pwm_base, module, pwm_ch)); in npcm7xx_pwm_config_set()
224 tmp_buf = ioread32(NPCM7XX_PWM_REG_CR(data->pwm_base, module)); in npcm7xx_pwm_config_set()
258 iowrite32(tmp_buf, NPCM7XX_PWM_REG_CR(data->pwm_base, module)); in npcm7xx_pwm_config_set()
514 (NPCM7XX_PWM_REG_CMRx(data->pwm_base, module, pmw_ch)); in npcm7xx_read_pwm()
697 iowrite32(prescale_val, NPCM7XX_PWM_REG_PR(data->pwm_base, m)); in npcm7xx_pwm_init()
699 NPCM7XX_PWM_REG_CSR(data->pwm_base, m)); in npcm7xx_pwm_init()
701 NPCM7XX_PWM_REG_CR(data->pwm_base, m)); in npcm7xx_pwm_init()
705 NPCM7XX_PWM_REG_CNRx(data->pwm_base, m, ch)); in npcm7xx_pwm_init()
932 data->pwm_base = devm_ioremap_resource(dev, res); in npcm7xx_pwm_fan_probe()
[all …]