From ca0fd314c48699d2896fee9cef18043f58e9e831 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 23 Jun 2011 18:46:13 +0100 Subject: omapdss add a workaround param to force hdmi mode 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 --- drivers/video/omap2/dss/hdmi.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3