OMAPFB: improve mode selection from EDID
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 12 Oct 2012 12:44:29 +0000 (15:44 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 29 Oct 2012 10:44:42 +0000 (12:44 +0200)
commit5e18e3527c5e7af6ccde475cfea5bfe6f1f0f0da
treec736acf24437d1d84c75c6fc2fc6a845cc0a87b6
parent2b5c0d4fd246a3ec0ab79c6518860c673c4515ef
OMAPFB: improve mode selection from EDID

The current omapfb code goes over all the modes found from the monitors
EDID data, and searches for a mode that is compatible with the DSS
hardware and has the highest x-res.

While this works ok as such, it proves problematic when using DSI PLL
for pixel clock. Calculating DSI PLL dividers is not the fastest of the
operations, and while doing it for one mode is usually ok, doing it for
20 modes is noticable.

Also, the first mode given in the EDID data should be the native mode of
the monitor, and thus also the best mode, so if that can be used, no
need to look further.

This patch changes the code to use the first mode that is compatible
with the DSS hardware.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/omapfb/omapfb-main.c
This page took 0.02668 seconds and 5 git commands to generate.