drm/mipi_dbi: Add support for display offsets
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 15 Jan 2020 12:45:46 +0000 (13:45 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Sun, 19 Jan 2020 17:07:08 +0000 (18:07 +0100)
commitf41a8a69890d08061076ee9e4e0e59c2f1e82477
treea0c5a6682c56d9a0c435d116b18376a37bb7ddde
parent3a1a6be40bd7ef6c98dcdfa7937ff3279206e92e
drm/mipi_dbi: Add support for display offsets

If the resolution of the TFT display is smaller than the maximum
resolution supported by the display controller, the display may be
connected to the driver output arrays with a horizontal and/or vertical
offset, leading to a shifted image.

Add support for specifying these offsets.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200115124548.3951-4-geert+renesas@glider.be
drivers/gpu/drm/drm_mipi_dbi.c
include/drm/drm_mipi_dbi.h