OSDN Git Service

drm/exynos: mixer: set window priority based on zpos
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 16 Dec 2015 12:21:44 +0000 (13:21 +0100)
committerInki Dae <daeinki@gmail.com>
Tue, 12 Jan 2016 15:16:34 +0000 (00:16 +0900)
commita2cb911eb663b5820dab89f21ce698d68e7cc568
treebd217ee92859a11786ce9bc0981baa0f360055c4
parent0ea724056262c2e29ac88c73bdf663412fed1ec3
drm/exynos: mixer: set window priority based on zpos

'zpos' plane property is configurable, so adjust hardware layers
priority based on the zpos value. 'zpos' value shifted by one can be
used directly as hw priority value and stored to the registers, because
mixer accepts priority values from 1 to 15 (0 means that layer is
disabled).

This patch also changes the default layer priority to match already
exposed initial zpos values. The initial configuration is now:
[top] video > gfx layer1 > gfx layer0 [bottom].

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_mixer.c
drivers/gpu/drm/exynos/regs-mixer.h