aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/omap2/dss/dss_features.c1
-rw-r--r--drivers/video/omap2/dss/hdmi.c6
-rw-r--r--drivers/video/omap2/dss/ti_hdmi.h4
-rw-r--r--drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c6
4 files changed, 1 insertions, 16 deletions
diff --git a/drivers/video/omap2/dss/dss_features.c b/drivers/video/omap2/dss/dss_features.c
index 77dbe0cfb34c..b9cfebb378a2 100644
--- a/drivers/video/omap2/dss/dss_features.c
+++ b/drivers/video/omap2/dss/dss_features.c
@@ -797,7 +797,6 @@ static const struct ti_hdmi_ip_ops omap4_hdmi_functions = {
797 .phy_enable = ti_hdmi_4xxx_phy_enable, 797 .phy_enable = ti_hdmi_4xxx_phy_enable,
798 .phy_disable = ti_hdmi_4xxx_phy_disable, 798 .phy_disable = ti_hdmi_4xxx_phy_disable,
799 .read_edid = ti_hdmi_4xxx_read_edid, 799 .read_edid = ti_hdmi_4xxx_read_edid,
800 .detect = ti_hdmi_4xxx_detect,
801 .pll_enable = ti_hdmi_4xxx_pll_enable, 800 .pll_enable = ti_hdmi_4xxx_pll_enable,
802 .pll_disable = ti_hdmi_4xxx_pll_disable, 801 .pll_disable = ti_hdmi_4xxx_pll_disable,
803 .video_enable = ti_hdmi_4xxx_wp_video_start, 802 .video_enable = ti_hdmi_4xxx_wp_video_start,
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c
index 0fb3662e28b6..3038eef99baf 100644
--- a/drivers/video/omap2/dss/hdmi.c
+++ b/drivers/video/omap2/dss/hdmi.c
@@ -710,7 +710,7 @@ bool omapdss_hdmi_detect(void)
710 r = hdmi_runtime_get(); 710 r = hdmi_runtime_get();
711 BUG_ON(r); 711 BUG_ON(r);
712 712
713 r = hdmi.ip_data.ops->detect(&hdmi.ip_data); 713 r = gpio_get_value(hdmi.hpd_gpio);
714 714
715 hdmi_runtime_put(); 715 hdmi_runtime_put();
716 mutex_unlock(&hdmi.lock); 716 mutex_unlock(&hdmi.lock);
@@ -733,8 +733,6 @@ int omapdss_hdmi_display_enable(struct omap_dss_device *dssdev)
733 goto err0; 733 goto err0;
734 } 734 }
735 735
736 hdmi.ip_data.hpd_gpio = hdmi.hpd_gpio;
737
738 r = hdmi_power_on_full(dssdev); 736 r = hdmi_power_on_full(dssdev);
739 if (r) { 737 if (r) {
740 DSSERR("failed to power on device\n"); 738 DSSERR("failed to power on device\n");
@@ -768,8 +766,6 @@ int omapdss_hdmi_core_enable(struct omap_dss_device *dssdev)
768 766
769 mutex_lock(&hdmi.lock); 767 mutex_lock(&hdmi.lock);
770 768
771 hdmi.ip_data.hpd_gpio = hdmi.hpd_gpio;
772
773 r = hdmi_power_on_core(dssdev); 769 r = hdmi_power_on_core(dssdev);
774 if (r) { 770 if (r) {
775 DSSERR("failed to power on device\n"); 771 DSSERR("failed to power on device\n");
diff --git a/drivers/video/omap2/dss/ti_hdmi.h b/drivers/video/omap2/dss/ti_hdmi.h
index 2f7fbc894578..45215f44617c 100644
--- a/drivers/video/omap2/dss/ti_hdmi.h
+++ b/drivers/video/omap2/dss/ti_hdmi.h
@@ -73,8 +73,6 @@ struct ti_hdmi_ip_ops {
73 73
74 int (*read_edid)(struct hdmi_ip_data *ip_data, u8 *edid, int len); 74 int (*read_edid)(struct hdmi_ip_data *ip_data, u8 *edid, int len);
75 75
76 bool (*detect)(struct hdmi_ip_data *ip_data);
77
78 int (*pll_enable)(struct hdmi_ip_data *ip_data); 76 int (*pll_enable)(struct hdmi_ip_data *ip_data);
79 77
80 void (*pll_disable)(struct hdmi_ip_data *ip_data); 78 void (*pll_disable)(struct hdmi_ip_data *ip_data);
@@ -162,13 +160,11 @@ struct hdmi_ip_data {
162 struct hdmi_core_infoframe_avi avi_cfg; 160 struct hdmi_core_infoframe_avi avi_cfg;
163 161
164 /* ti_hdmi_4xxx_ip private data. These should be in a separate struct */ 162 /* ti_hdmi_4xxx_ip private data. These should be in a separate struct */
165 int hpd_gpio;
166 struct mutex lock; 163 struct mutex lock;
167}; 164};
168int ti_hdmi_4xxx_phy_enable(struct hdmi_ip_data *ip_data); 165int ti_hdmi_4xxx_phy_enable(struct hdmi_ip_data *ip_data);
169void ti_hdmi_4xxx_phy_disable(struct hdmi_ip_data *ip_data); 166void ti_hdmi_4xxx_phy_disable(struct hdmi_ip_data *ip_data);
170int ti_hdmi_4xxx_read_edid(struct hdmi_ip_data *ip_data, u8 *edid, int len); 167int ti_hdmi_4xxx_read_edid(struct hdmi_ip_data *ip_data, u8 *edid, int len);
171bool ti_hdmi_4xxx_detect(struct hdmi_ip_data *ip_data);
172int ti_hdmi_4xxx_wp_video_start(struct hdmi_ip_data *ip_data); 168int ti_hdmi_4xxx_wp_video_start(struct hdmi_ip_data *ip_data);
173void ti_hdmi_4xxx_wp_video_stop(struct hdmi_ip_data *ip_data); 169void ti_hdmi_4xxx_wp_video_stop(struct hdmi_ip_data *ip_data);
174int ti_hdmi_4xxx_pll_enable(struct hdmi_ip_data *ip_data); 170int ti_hdmi_4xxx_pll_enable(struct hdmi_ip_data *ip_data);
diff --git a/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c b/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c
index 052f2db35d62..e242ed85cb07 100644
--- a/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c
+++ b/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c
@@ -28,7 +28,6 @@
28#include <linux/delay.h> 28#include <linux/delay.h>
29#include <linux/string.h> 29#include <linux/string.h>
30#include <linux/seq_file.h> 30#include <linux/seq_file.h>
31#include <linux/gpio.h>
32#if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO) 31#if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO)
33#include <sound/asound.h> 32#include <sound/asound.h>
34#include <sound/asoundef.h> 33#include <sound/asoundef.h>
@@ -481,11 +480,6 @@ int ti_hdmi_4xxx_read_edid(struct hdmi_ip_data *ip_data,
481 return l; 480 return l;
482} 481}
483 482
484bool ti_hdmi_4xxx_detect(struct hdmi_ip_data *ip_data)
485{
486 return gpio_get_value(ip_data->hpd_gpio);
487}
488
489static void hdmi_core_init(struct hdmi_core_video_config *video_cfg, 483static void hdmi_core_init(struct hdmi_core_video_config *video_cfg,
490 struct hdmi_core_infoframe_avi *avi_cfg, 484 struct hdmi_core_infoframe_avi *avi_cfg,
491 struct hdmi_core_packet_enable_repeat *repeat_cfg) 485 struct hdmi_core_packet_enable_repeat *repeat_cfg)