drm/omap: introduce omap_hw_overlay
authorBenoit Parrot <bparrot@ti.com>
Wed, 17 Nov 2021 14:19:23 +0000 (15:19 +0100)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Wed, 8 Dec 2021 08:04:40 +0000 (10:04 +0200)
commitc8fa1e733c597a7b11a22a3e49de5ea1362e9a7a
tree5529c56c32e3f18a956b3f4714e4c481da4858ec
parent0b0f7282f0c81fcbbf300079eaeabd4dcef63c11
drm/omap: introduce omap_hw_overlay

Split out the hardware overlay specifics from omap_plane.
To start, the hw overlays are statically assigned to planes.

The goal is to eventually assign hw overlays dynamically to planes
during plane->atomic_check() based on requested caps (scaling, YUV,
etc). And then perform hw overlay re-assignment if required.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211117141928.771082-5-narmstrong@baylibre.com
drivers/gpu/drm/omapdrm/Makefile
drivers/gpu/drm/omapdrm/omap_drv.c
drivers/gpu/drm/omapdrm/omap_drv.h
drivers/gpu/drm/omapdrm/omap_overlay.c [new file with mode: 0644]
drivers/gpu/drm/omapdrm/omap_overlay.h [new file with mode: 0644]
drivers/gpu/drm/omapdrm/omap_plane.c