Lines Matching refs:channel
21 static int exynos_pwm_set_config(struct udevice *dev, uint channel, in exynos_pwm_set_config() argument
31 if (channel >= 5) in exynos_pwm_set_config()
34 __func__, dev->name, channel, period_ns, duty_ns); in exynos_pwm_set_config()
37 prescaler = (channel < 2 ? val : (val >> 8)) & 0xff; in exynos_pwm_set_config()
38 div = (readl(®s->tcfg1) >> MUX_DIV_SHIFT(channel)) & 0xf; in exynos_pwm_set_config()
43 if (channel < 4) { in exynos_pwm_set_config()
48 offset = channel * 3; in exynos_pwm_set_config()
54 tcon |= TCON_UPDATE(channel); in exynos_pwm_set_config()
55 if (channel < 4) in exynos_pwm_set_config()
56 tcon |= TCON_AUTO_RELOAD(channel); in exynos_pwm_set_config()
61 tcon &= ~TCON_UPDATE(channel); in exynos_pwm_set_config()
67 static int exynos_pwm_set_enable(struct udevice *dev, uint channel, in exynos_pwm_set_enable() argument
74 if (channel >= 4) in exynos_pwm_set_enable()
76 debug("%s: Enable '%s' channel %u\n", __func__, dev->name, channel); in exynos_pwm_set_enable()
77 mask = TCON_START(channel); in exynos_pwm_set_enable()