]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: add dpms for hdmi
authorJoonyoung Shim <jy0922.shim@samsung.com>
Mon, 23 Apr 2012 10:35:50 +0000 (19:35 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 8 May 2012 09:46:33 +0000 (18:46 +0900)
commit88d1da1d37a33b28c9964c7b5ab20f766c26fb0d
tree74cdc233ce54eb37ef67e7fec7af5ee2bf75911f
parentc98153fc995fa91742dfea104f62aecf582bf72d
drm/exynos: add dpms for hdmi

The power and clocks turns on always in exynos hdmi and mixer driver,
but we should turn off the power and clocks of exynos hdmi and mixer
when the hdmi cable unplugged or when hdmi unused.

There are two interrupt to detect hotplug of hdmi cable - internal
interrupt and external interrupt. The internal interrupt can use only
when hdmi is dpms on so if hdmi is dpms off, we should use external
interrupt to detect hotplug of hdmi cable. If hdmi is dpms on, we cannot
external interrupt because the gpio pin for external interrupt is used
to hdmi HPD pin for internal interrupt.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_hdmi.c
drivers/gpu/drm/exynos/exynos_drm_hdmi.h
drivers/gpu/drm/exynos/exynos_hdmi.c
drivers/gpu/drm/exynos/exynos_mixer.c