summaryrefslogtreecommitdiff
path: root/drivers/video/exynos/exynos_dp_core.h
diff options
context:
space:
mode:
authorSean Paul <seanpaul@chromium.org>2012-11-01 19:13:46 +0900
committerJingoo Han <jg1.han@samsung.com>2012-11-29 10:33:28 +0900
commitc30ffb904cff819dc2423b1c3edd4f2e48f7acb0 (patch)
treeb6ce271161da677c855c2c8b7291c2d14c90fd4f /drivers/video/exynos/exynos_dp_core.h
parent784fa9a10b684b452ff01531c1b5eafd7215564d (diff)
downloadlwn-c30ffb904cff819dc2423b1c3edd4f2e48f7acb0.tar.gz
lwn-c30ffb904cff819dc2423b1c3edd4f2e48f7acb0.zip
video: exynos_dp: Enable hotplug interrupts
Enable hotplug interrupts and move the hotplug scheduling into the interrupt handler. This allows us to introduce a screen at any time while we're running. [jg1.han@samsung.com: moved the bit masking of hotplug interrupts] Signed-off-by: Sean Paul <seanpaul@chromium.org> Reviewed-by: Olof Johansson <olofj@chromium.org> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Diffstat (limited to 'drivers/video/exynos/exynos_dp_core.h')
-rw-r--r--drivers/video/exynos/exynos_dp_core.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/video/exynos/exynos_dp_core.h b/drivers/video/exynos/exynos_dp_core.h
index 5ef7135039fa..ef3bb545f9a9 100644
--- a/drivers/video/exynos/exynos_dp_core.h
+++ b/drivers/video/exynos/exynos_dp_core.h
@@ -13,6 +13,13 @@
#ifndef _EXYNOS_DP_CORE_H
#define _EXYNOS_DP_CORE_H
+enum dp_irq_type {
+ DP_IRQ_TYPE_HP_CABLE_IN,
+ DP_IRQ_TYPE_HP_CABLE_OUT,
+ DP_IRQ_TYPE_HP_CHANGE,
+ DP_IRQ_TYPE_UNKNOWN,
+};
+
struct link_train {
int eq_loop;
int cr_loop[4];
@@ -53,6 +60,8 @@ void exynos_dp_set_analog_power_down(struct exynos_dp_device *dp,
bool enable);
void exynos_dp_init_analog_func(struct exynos_dp_device *dp);
void exynos_dp_init_hpd(struct exynos_dp_device *dp);
+enum dp_irq_type exynos_dp_get_irq_type(struct exynos_dp_device *dp);
+void exynos_dp_clear_hotplug_interrupts(struct exynos_dp_device *dp);
void exynos_dp_reset_aux(struct exynos_dp_device *dp);
void exynos_dp_init_aux(struct exynos_dp_device *dp);
int exynos_dp_get_plug_in_status(struct exynos_dp_device *dp);