]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPFB: Map the newly added omap_video_timings fields with fb sync flags
authorArchit Taneja <archit@ti.com>
Fri, 15 Jun 2012 02:09:47 +0000 (07:39 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 29 Jun 2012 07:15:51 +0000 (10:15 +0300)
commitfe3b4e9567a5eca026a9cb9c5e7f8c5052ad8bf5
treee1951440a19f2d65c50ebc7960ba8d1b4f592a81
parentfe8410f11d5bc3d0aab882eec715368dfbce2b41
OMAPFB: Map the newly added omap_video_timings fields with fb sync flags

Use the newly added fields in omap_video_timings(hsync, vsync and data_enable
logic levels and data, hsync and vsync latching related info) to
configure/retrieve corresponding sync flags in fb_var_screeninfo and
fb_videomode.

Out of the new fields, hsync_level and vsync_level can be mapped to the fb sync
flags FB_SYNC_HOR_HIGH_ACT and FB_SYNC_VERT_HIGH_ACT.

When converting fb mode to omap_video_timings, the fields which don't have an
equivalent parameter in fb are kept as the original values if the panel driver
has a get_timings op, else they are set to default values.

Signed-off-by: Archit Taneja <archit@ti.com>
drivers/video/omap2/omapfb/omapfb-main.c