]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
pwm: tegra: Add support to configure pin state in suspends/resume
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 7 Apr 2017 09:34:02 +0000 (15:04 +0530)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 12 Apr 2017 14:10:09 +0000 (16:10 +0200)
commit4a813b262f85ac34c9f3e557d9be79f846a381df
tree69dd229e8e8d087c5dabbd71bd18142763a18be4
parent0dafdd168b0f441668e0d96a508af35a986374bf
pwm: tegra: Add support to configure pin state in suspends/resume

In some of NVIDIA Tegra's platform, PWM controller is used to
control the PWM controlled regulators. PWM signal is connected to
the VID pin of the regulator where duty cycle of PWM signal decide
the voltage level of the regulator output.

When system enters suspend, some PWM client/slave regulator devices
require the PWM output to be tristated.

Add support to configure the pin state via pinctrl frameworks in
suspend and active state of the system.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-tegra.c