summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/dss.h
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-11-15 18:25:23 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-12-02 08:54:44 +0200
commit75c949653fdf77a17753ffb8462a3c458c476271 (patch)
treefb52f425a314d747f19c5ea555115cc1697f3791 /drivers/video/omap2/dss/dss.h
parentaaa874a985158383c4b394c687c716ef26288741 (diff)
OMAPDSS: APPLY: rewrite register writing
The functions writing to the DISPC registers in apply.c are more complex than needed. This patch cleans things up. Two helper functions are added: need_isr(), which returns if an isr for VSYNC is needed, and need_go(), which tells if there has been a write to the shadow registers and we need to set the GO bit. The functions that call the actual dispc write functions will set the dirty and shadow_dirty flags themselves, instead of that being done on the caller side. The writing functions also check if the dirty flag is even set, and return immediately if not. This allows us to clean up dss_write_regs(). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dss.h')
0 files changed, 0 insertions, 0 deletions