video: da8xx-fb: fb_set_par support
authorDarren Etheridge <detheridge@ti.com>
Mon, 5 Aug 2013 22:02:29 +0000 (17:02 -0500)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 9 Aug 2013 11:02:42 +0000 (14:02 +0300)
commitfe8c98f06b5eec94d318cd4761e7673fb5e3c662
tree395085e2962ce535e2ac0d852c3c9af5c8b4cd84
parent404fdfe7f428c6425a13e96d0b56537eb67e08c5
video: da8xx-fb: fb_set_par support

v1: original from Afzal Mohammed <afzal@ti.com>
fb_set_par helps in runtime configuration of lcd controller like
changing resolution, pixel clock etc. (eg. using fbset utility)

Reconfigure lcd controller based on information passed by framework.
Enable raster back if it was already enabled.

As fb_set_par would get invoked indirectly from probe via fb_set_var,
remove existing lcdc initialization in probe and do lcdc reset in
probe so that reset happens only at the begining.

v2:  changes from Darren Etheridge <detheridge@ti.com>
remove unnecessary conditional branch where we attempt to disable
something that we already checked to see if it was disabled.

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