pwm: rockchip: Add rk3328 support
authorDavid Wu <david.wu@rock-chips.com>
Tue, 8 Aug 2017 15:42:47 +0000 (23:42 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 18 Aug 2017 15:44:34 +0000 (17:44 +0200)
commit3f9a363133eae0d01e77200af4ce9b58a4a9fc24
tree6fb6401fdebe25b8be39c7e06ad3602438a9ad05
parent831b2790507b3aac3213e9f39c714d85b0220098
pwm: rockchip: Add rk3328 support

The rk3328 SoC supports atomic update, we could lock the configuration
of period and duty at first, after unlock is configured, the period and
duty are effective at the same time.

If the polarity, period and duty need to be configured together,
the way for atomic update is "configure lock and old polarity" ->
"configure period and duty" -> "configure unlock and new polarity".

Signed-off-by: David Wu <david.wu@rock-chips.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-rockchip.c