]> git.baikalelectronics.ru Git - 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)
commite9ed84c4a7adeaa5c73e27aab40de4b50347744b
tree69dd229e8e8d087c5dabbd71bd18142763a18be4
parenta55a2cef57b5f8b0bcca83053cb474e7a1c7b25b
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