drm: Exynos: Respect framebuffer pitch for FIMD/Mixer
authorDaniel Stone <daniels@collabora.com>
Tue, 17 Mar 2015 13:24:58 +0000 (13:24 +0000)
committerInki Dae <daeinki@gmail.com>
Thu, 2 Apr 2015 13:37:13 +0000 (22:37 +0900)
commitadacb228d72b9529f8de0769cc33414c3012054d
tree8c5ff17a25e2ca2880cf1899489a87c797eb43f4
parent91fd89660ba2e8ee59a587294fa9b17761691b05
drm: Exynos: Respect framebuffer pitch for FIMD/Mixer

When performing a modeset, use the framebuffer pitch value to set FIMD
IMG_SIZE and Mixer SPAN registers. These are both defined as pitch - the
distance between contiguous lines (bytes for FIMD, pixels for mixer).

Fixes display on Snow (1366x768).

Signed-off-by: Daniel Stone <daniels@collabora.com>
Tested-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimd.c
drivers/gpu/drm/exynos/exynos_mixer.c