aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-10-19 05:14:12 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-10-29 06:44:44 -0400
commitffc81fc5f3f6070820cb7ef885daa37545291e97 (patch)
tree99584e7a46d62d232319d130799e22791e7e31ac /arch/arm/mach-omap2
parentb276dd091673589450d56812ffcfddca961c1a41 (diff)
OMAPDSS: split hdmi muxing function
Split the omap4_hdmi_mux_pads() function into two parts, one handles the tpd12s015 gpio muxing, the other handles the hdmi pins. This is clearer, as hdmi and tpd12s015 are separate devices, and it also allows us to mux those separately with DT. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Cc: Ricardo Neri <ricardo.neri@ti.com> Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/display.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c
index 28f508724a56..282c814ea2e2 100644
--- a/arch/arm/mach-omap2/display.c
+++ b/arch/arm/mach-omap2/display.c
@@ -100,17 +100,20 @@ static const struct omap_dss_hwmod_data omap4_dss_hwmod_data[] __initconst = {
100 { "dss_hdmi", "omapdss_hdmi", -1 }, 100 { "dss_hdmi", "omapdss_hdmi", -1 },
101}; 101};
102 102
103static void __init omap4_hdmi_mux_pads(enum omap_hdmi_flags flags) 103static void __init omap4_tpd12s015_mux_pads(void)
104{ 104{
105 u32 reg;
106 u16 control_i2c_1;
107
108 omap_mux_init_signal("hdmi_cec", 105 omap_mux_init_signal("hdmi_cec",
109 OMAP_PIN_INPUT_PULLUP); 106 OMAP_PIN_INPUT_PULLUP);
110 omap_mux_init_signal("hdmi_ddc_scl", 107 omap_mux_init_signal("hdmi_ddc_scl",
111 OMAP_PIN_INPUT_PULLUP); 108 OMAP_PIN_INPUT_PULLUP);
112 omap_mux_init_signal("hdmi_ddc_sda", 109 omap_mux_init_signal("hdmi_ddc_sda",
113 OMAP_PIN_INPUT_PULLUP); 110 OMAP_PIN_INPUT_PULLUP);
111}
112
113static void __init omap4_hdmi_mux_pads(enum omap_hdmi_flags flags)
114{
115 u32 reg;
116 u16 control_i2c_1;
114 117
115 /* 118 /*
116 * CONTROL_I2C_1: HDMI_DDC_SDA_PULLUPRESX (bit 28) and 119 * CONTROL_I2C_1: HDMI_DDC_SDA_PULLUPRESX (bit 28) and
@@ -161,8 +164,10 @@ static int omap4_dsi_mux_pads(int dsi_id, unsigned lanes)
161 164
162int __init omap_hdmi_init(enum omap_hdmi_flags flags) 165int __init omap_hdmi_init(enum omap_hdmi_flags flags)
163{ 166{
164 if (cpu_is_omap44xx()) 167 if (cpu_is_omap44xx()) {
165 omap4_hdmi_mux_pads(flags); 168 omap4_hdmi_mux_pads(flags);
169 omap4_tpd12s015_mux_pads();
170 }
166 171
167 return 0; 172 return 0;
168} 173}