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)
commit783babf33f47c8d42e73900575dd9beea98fca40
treee1951440a19f2d65c50ebc7960ba8d1b4f592a81
parent0e065c79e6ceb8d267b1a4ff05b547feeb507986
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