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)
commitaf8ad96290598561acb310d6a94b0e25ef383d12
tree7f63f6c2ba9c7b1a1fa6086f1840341a1ce4f6fc
parent2f13c5296d81ad9083e04229eb899ea4287e348f
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