fbdev: sh_mobile_hdmi: add command line option to use the preferred EDID mode
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 7 Jan 2011 11:57:55 +0000 (11:57 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 11 Jan 2011 03:07:49 +0000 (12:07 +0900)
commitc7321d6f88e1f962d605923a93f9c255e4d0b8c9
tree41d541c751f976b1fecec8f2d7f59751d84bb7b6
parente9ab3207310e8acfa3a5cd8cbb44860f69270bfd
fbdev: sh_mobile_hdmi: add command line option to use the preferred EDID mode

Currently, if no command-line option is specified, the sh_mobile_hdmi
will use the default 720p video mode. If a command line option of the
form "video=sh_mobile_lcdc:<width>x<height>@<refresh>" is provided,
the driver will look for that mode among those, available in the
monitor EDID. This patch adds the ability to request the driver to
use monitor's preferred mode by specifying 0 as width and hight in
the above string. If that mode is not supported by the system, the
driver will continue scanning through EDID modes, until it finds a
suitable one.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/sh_mobile_hdmi.c