OMAPDSS: Fix writes to DISPC_POL_FREQ
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 25 Apr 2014 08:46:16 +0000 (11:46 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 9 May 2014 12:28:39 +0000 (15:28 +0300)
commitd80e02ef343379cfcef211ab4f042fc4a5b26100
treec9269863f5d13b4cd94c1d8a3453b3bf3da8d90a
parentdedf2d44336e542d03653f60040938b0adce0a5f
OMAPDSS: Fix writes to DISPC_POL_FREQ

When omapdss writes to DISPC_POL_FREQ register, it always ORs the bits
with the current contents of the register, never clearing the old ones,
causing wrong signal polarity settings.

As we write all the bits in DISPC_POL_FREQ, we don't need to care about
the current contents of the register. So fix the issue by constructing
new register value from scratch.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/omap2/dss/dispc.c