drm/exynos: dp: support hotplug detection via GPIO
authorAndrew Bresticker <abrestic@chromium.org>
Mon, 21 Apr 2014 22:39:10 +0000 (04:09 +0530)
committerInki Dae <daeinki@gmail.com>
Sun, 1 Jun 2014 17:07:05 +0000 (02:07 +0900)
commitb8b52471e87a713e61d26fa2f546fda0fb04e8fd
treee9bdacf10aec08ea529220fbe76c43c0a2e1535f
parentfbc2063d7b76d58e47a74b845148b3a9db052f16
drm/exynos: dp: support hotplug detection via GPIO

Certain bridge chips use a GPIO to indicate the cable status instead
of the I_DP_HPD pin.  This adds an optional device-tree property,
"samsung,hpd-gpio", to the exynos-dp controller which indicates that
the specified GPIO should be used for hotplug detection.
The GPIO is then set up as an edge-triggered interrupt where the
rising edge indicates hotplug-in and the falling edge indicates hotplug-out.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Documentation/devicetree/bindings/video/exynos_dp.txt
drivers/gpu/drm/exynos/exynos_dp_core.c
drivers/gpu/drm/exynos/exynos_dp_core.h
drivers/gpu/drm/exynos/exynos_dp_reg.c