]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: DSI: improve DSI clock calcs for DISPC
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 24 Sep 2012 12:15:06 +0000 (15:15 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 24 Sep 2012 13:50:07 +0000 (16:50 +0300)
commit43fd99f1df462d5148b666e24d614109e37938dc
treeb153fd653e8704d2cfad2e1cbd923692932a7dde
parentd6e6c41823084488bf5c2e352a12c0c046deee49
OMAPDSS: DSI: improve DSI clock calcs for DISPC

Commit 93582ffc89f26ccd5de25ba5b3209b21b9817bec added
dsi_pll_calc_ddrfreq() which calculates PLL dividers based on given DSI
bus clock speed. The function works ok, but it can be improved for the
DISPC clock calc.

The current version calculates the clock going from the PLL to the DISPC
simply by setting the clock as close to DISPC maximum as possible, and
the pixel clock is calculated based on that.

This patch changes the function to calculate DISPC clock more
dynamically, iterating through different DISPC clocks and pixel clock
values, and thus we'll get more suitable pixel clocks.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dsi.c