summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2011-06-23 18:46:13 +0100
committerAndy Green <andy.green@linaro.org>2011-06-23 18:46:13 +0100
commitca0fd314c48699d2896fee9cef18043f58e9e831 (patch)
treea774531282374e9df4c313601d537a2ce56a9936
parent310fa5452c2411d9c0750243f8d0af91b7cb2d90 (diff)
omapdss add a workaround param to force hdmi modeandroid-2.6.38-2011-06-1
This allows, eg, omapdss.code=31 on the kernel commandline to force the HDMI mode, in the example to 1080p Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r--drivers/video/omap2/dss/hdmi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c
index edcaa9f7574..73490cf779a 100644
--- a/drivers/video/omap2/dss/hdmi.c
+++ b/drivers/video/omap2/dss/hdmi.c
@@ -39,6 +39,9 @@
#include "dss.h"
#include "hdmi.h"
+static int def_force_hdmi_code = 4;
+module_param_named(code, def_force_hdmi_code, int, 0);
+
static struct {
struct mutex lock;
struct omap_display_platform_data *pdata;
@@ -1629,6 +1632,7 @@ static int omapdss_hdmihw_probe(struct platform_device *pdev)
}
#endif
+ hdmi.code = def_force_hdmi_code;
hdmi.pdata = pdev->dev.platform_data;
hdmi.pdev = pdev;