]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
OMAP: DSS2: Clean up DISPC overlay register definitions
authorArchit Taneja <archit@ti.com>
Fri, 6 May 2011 06:15:49 +0000 (11:45 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 11 May 2011 11:20:52 +0000 (14:20 +0300)
commit9b372c2d9da43be00e8a267730a2428e0eae12e8
treec95ccff308f5410fefc3d9d307e3a458ae3acf76
parent5bdd3c9a7da3ddf820d9d479530ceecde9d4a316
OMAP: DSS2: Clean up DISPC overlay register definitions

Move all DISPC register definitions to a new header dispc.h. There are
separate register offset definitions for GFX, VID1 and VID2 pipeline share
register definitions by using an argument. The introduction of VID3 pipeline
on OMAP4 will not let us use the above method since VID3 pipe register offsets
don't map with VID1 and VID2 offsets.

Represent overlay registers as DISPC_OVL_XXXX(plane), where the plane argument
tells the overlay. Register offsets are calculated as:

DISPC_OVL_XXXX(plane) = DISPC_OVL_BASE(plane) + DISPC_XXXX_OFFSET(plane)

Idea suggested by Tomi Valkeinen.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/dispc.h [new file with mode: 0644]