Yoshihiro Shimoda 7f68ce8287 pwm: rcar: Add support "atomic" API
This patch adds support for "atomic" API. This behavior differs with
legacy APIs a little.

 Legacy APIs:
  The PWMCNT register will be updated in rcar_pwm_config() even if
  the PWM state is disabled.

 Atomic API:
  The PWMCNT register will be updated in rcar_pwm_apply() only if
  the PWM state is enabled. Otherwize, if a PWM runs with 30% duty
  cycles and the pwm_apply_state() is called with state->enabled = 0,
  ->duty_cycle = 60 and ->period = 100, this is possible to output
  a 60% duty cycle.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2019-03-04 12:14:05 +01:00
..
2019-01-10 09:34:12 +01:00
2019-01-16 08:45:33 +01:00
2019-01-16 08:45:33 +01:00
2018-04-30 10:40:57 +02:00
2019-03-04 11:38:52 +01:00
2017-11-15 10:38:37 +01:00
2019-01-16 08:45:33 +01:00
2018-08-20 11:32:25 +02:00
2018-07-12 09:03:06 +02:00
2017-01-19 00:38:17 +01:00
2019-03-04 12:14:05 +01:00
2018-06-14 16:25:43 +09:00
2017-08-21 08:11:24 +02:00