]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: DISPC: Improvements to DIGIT sync signal selection
authorRicardo Neri <ricardo.neri@ti.com>
Wed, 1 Aug 2012 12:56:40 +0000 (07:56 -0500)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 10 Aug 2012 12:48:35 +0000 (15:48 +0300)
commit7d0b7d28ab68524560fe2585a60c38ced3f37b51
tree52c7e2fa6f93c310de8d695aaec59e3cc34cda6c
parent8d579d0cf2928524f83ceaa96fed2c9e59bdecf3
OMAPDSS: DISPC: Improvements to DIGIT sync signal selection

DSS code wrongly assumes that VENC is always available as source for the external
sync signal for the display controller DIGIT channel. One cannot blindly write/read
the value of DSS_CONTROL[15] as in certain processors (e.g., OMAP5) this operation
may not be valid. If the the sync source is not read correctly, the callers of
dss_get_hdmi_venc_clk_source might make wrong assumptions about, for instance,
video timings.

Logic is added to correctly get the sync signal based on the available displays
in the DIGIT channel. The source is set only if both VENC and HDMI are supported.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dss.c