Lines Matching refs:group
79 unsigned group = pwm->hwpwm / 2;
88 ret = clk_prepare_enable(tc->clk[group]);
101 cmr = __raw_readl(regs + ATMEL_TC_REG(group, CMR));
109 __raw_readl(regs + ATMEL_TC_REG(group, RA));
112 __raw_readl(regs + ATMEL_TC_REG(group, RB));
115 tcbpwm->period = __raw_readl(regs + ATMEL_TC_REG(group, RC));
122 __raw_writel(cmr, regs + ATMEL_TC_REG(group, CMR));
147 unsigned group = pwm->hwpwm / 2;
164 cmr = __raw_readl(regs + ATMEL_TC_REG(group, CMR));
181 __raw_writel(cmr, regs + ATMEL_TC_REG(group, CMR));
185 * If both PWM devices in this group are disabled we stop the clock.
189 regs + ATMEL_TC_REG(group, CCR));
190 tcbpwmc->bkup[group].enabled = 1;
193 ATMEL_TC_REG(group, CCR));
194 tcbpwmc->bkup[group].enabled = 0;
206 unsigned group = pwm->hwpwm / 2;
223 cmr = __raw_readl(regs + ATMEL_TC_REG(group, CMR));
266 __raw_writel(cmr, regs + ATMEL_TC_REG(group, CMR));
269 __raw_writel(tcbpwm->duty, regs + ATMEL_TC_REG(group, RA));
271 __raw_writel(tcbpwm->duty, regs + ATMEL_TC_REG(group, RB));
273 __raw_writel(tcbpwm->period, regs + ATMEL_TC_REG(group, RC));
277 regs + ATMEL_TC_REG(group, CCR));
278 tcbpwmc->bkup[group].enabled = 1;
288 unsigned group = pwm->hwpwm / 2;
296 unsigned rate = clk_get_rate(tc->clk[group]);
340 * - group 0: PWM 0 & 1
341 * - group 1: PWM 2 & 3
342 * - group 2: PWM 4 & 5
344 * PWM devices in a given group must be configured with the
348 * in this group before applying the new config.
354 "failed to configure period_ns: PWM group already configured with a different value\n");