Commit f532f99a authored by Mauro Ribeiro's avatar Mauro Ribeiro

drm/exynos: control dvi mode via a kernel parameter

Change-Id: I11898db158dc0594c8b5e16a5b95b6f8db5853e9
parent cafcd6f2
......@@ -219,6 +219,26 @@ struct hdmiphy_config {
};
#if defined(CONFIG_MACH_ODROIDXU3)
//-----------------------------------------------------------------------------
// DVI Control (defaults to hdmi always).
//
//-----------------------------------------------------------------------------
unsigned int gdvi_mode = false;
static int __init dvi_force_enable(char *l)
{
if(!strcmp(l, "dvi")) {
gdvi_mode = true;
pr_emerg("hdmi: using DVI Mode\n");
} else {
gdvi_mode = false;
pr_emerg("hdmi: using HDMI Mode\n");
}
return 0;
}
__setup("vout=", dvi_force_enable);
//-----------------------------------------------------------------------------
//
// HPD Signal Disable control.
......@@ -1335,6 +1355,8 @@ static int hdmi_get_modes(struct drm_connector *connector)
return -ENODEV;
hdata->dvi_mode = !drm_detect_hdmi_monitor(edid);
hdata->dvi_mode = gdvi_mode;
DRM_DEBUG_KMS("%s : width[%d] x height[%d]\n",
(hdata->dvi_mode ? "dvi monitor" : "hdmi monitor"),
edid->width_cm, edid->height_cm);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment