]> git.baikalelectronics.ru Git - kernel.git/commit
drm: rcar-du: Add VSP1 support to the planes allocator
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 21 Jun 2013 15:36:15 +0000 (17:36 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 20 Feb 2016 00:58:54 +0000 (02:58 +0200)
commit1f07c6f49b19b022eebfcc98c4101cc0fee8268e
tree7f63f6c2ba9c7b1a1fa6086f1840341a1ce4f6fc
parentdb7b31dbf5da9af5d5191b637e77fff683d06793
drm: rcar-du: Add VSP1 support to the planes allocator

The R8A7790 DU can source frames directly from the VSP1 devices VSPD0
and VSPD1. VSPD0 feeds DU0/1 plane 0, and VSPD1 feeds either DU2 plane 0
or DU0/1 plane 1.

Allocate the correct fixed plane when sourcing frames from VSPD0 or
VSPD1, and allocate planes in reverse index order otherwise to ensure
maximum availability of planes 0 and 1.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_kms.c
drivers/gpu/drm/rcar-du/rcar_du_plane.c
drivers/gpu/drm/rcar-du/rcar_du_plane.h