]> 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)
commit740e830255a409a0287b7f7eae1e2f4ba8f29042
treeb153fd653e8704d2cfad2e1cbd923692932a7dde
parent42dfbb3dd18deac28689ef0db92d017d3c45c372
OMAPDSS: DSI: improve DSI clock calcs for DISPC

Commit 7cd4e646d230edfedf2edd0d758a887ef5ca78ed 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