]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit136dc680c2b9af3916a8124d63438dc7307634f6
treea0c5a6682c56d9a0c435d116b18376a37bb7ddde
parent20ebef3e5aaf1ce5a1451b7c374f3a034ed8f48c
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