video: da8xx-fb: pix clk and clk div handling cleanup
authorDarren Etheridge <detheridge@ti.com>
Mon, 5 Aug 2013 22:02:26 +0000 (17:02 -0500)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 9 Aug 2013 11:02:41 +0000 (14:02 +0300)
commita6a799f8a83cf018d8d352b0b5bfc9b8bbcdda3c
treec66dae63e45f94b30d6045fd0b5fe48f4189201d
parent44f627ae6967dbb0555ab75bcf737bfe8fa2d844
video: da8xx-fb: pix clk and clk div handling cleanup

Based on original patch by: Afzal Mohammed <afzal@ti.com>

Use the new modedb field to store pix clk. Reorganize existing clock
divider functions with names now corresponding to what they do, add
common function prefix.

Fix existing panel modedb pixclock to be in ps instead of Hz. This
needed a change in the way clock divider is calculated. As modedb
pixclock information is now in ps, override on "var" pixclock over
modedb to var conversion is removed.

v2:
Changed pixel clock configuration to use KHZ2PICOS macro

Signed-off-by: Darren Etheridge <detheridge@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/da8xx-fb.c