Skip to content

Commit ffc81fc

Browse files
committed
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>
1 parent b276dd0 commit ffc81fc

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

‎arch/arm/mach-omap2/display.c‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,20 @@ static const struct omap_dss_hwmod_data omap4_dss_hwmod_data[] __initconst = {
100100
{ "dss_hdmi", "omapdss_hdmi", -1 },
101101
};
102102

103-
static void __init omap4_hdmi_mux_pads(enum omap_hdmi_flags flags)
103+
static void __init omap4_tpd12s015_mux_pads(void)
104104
{
105-
u32 reg;
106-
u16 control_i2c_1;
107-
108105
omap_mux_init_signal("hdmi_cec",
109106
OMAP_PIN_INPUT_PULLUP);
110107
omap_mux_init_signal("hdmi_ddc_scl",
111108
OMAP_PIN_INPUT_PULLUP);
112109
omap_mux_init_signal("hdmi_ddc_sda",
113110
OMAP_PIN_INPUT_PULLUP);
111+
}
112+
113+
static void __init omap4_hdmi_mux_pads(enum omap_hdmi_flags flags)
114+
{
115+
u32 reg;
116+
u16 control_i2c_1;
114117

115118
/*
116119
* 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)
161164

162165
int __init omap_hdmi_init(enum omap_hdmi_flags flags)
163166
{
164-
if (cpu_is_omap44xx())
167+
if (cpu_is_omap44xx()) {
165168
omap4_hdmi_mux_pads(flags);
169+
omap4_tpd12s015_mux_pads();
170+
}
166171

167172
return 0;
168173
}

0 commit comments

Comments
 (0)