]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: dpaux: Add helpers for setting up pads
authorJon Hunter <jonathanh@nvidia.com>
Wed, 29 Jun 2016 09:17:49 +0000 (10:17 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 30 Jun 2016 10:40:37 +0000 (12:40 +0200)
commit397d584f0e70c32789cb3b27a891489585fe1a1a
tree76d0e4674b5dff7f5f853dd416224cfa60a7e492
parent96403547486a70f56b0cc80e55c63e9bcb5633ff
drm/tegra: dpaux: Add helpers for setting up pads

In preparation for adding pinctrl support for the DPAUX pads, add a
couple of helpers functions to configure the pads and control their
power.

Please note that although a simple if-statement could be used instead
of a case statement for configuring the pads as there are only two
possible modes, a case statement is used because when integrating with
the pinctrl framework, we need to be able to handle invalid modes that
could be passed.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dpaux.c