summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_mipi_dbi.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2020-01-15 13:45:46 +0100
committerSam Ravnborg <sam@ravnborg.org>2020-01-19 18:07:08 +0100
commitf41a8a69890d08061076ee9e4e0e59c2f1e82477 (patch)
treea0c5a6682c56d9a0c435d116b18376a37bb7ddde /include/drm/drm_mipi_dbi.h
parent3a1a6be40bd7ef6c98dcdfa7937ff3279206e92e (diff)
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
Diffstat (limited to 'include/drm/drm_mipi_dbi.h')
-rw-r--r--include/drm/drm_mipi_dbi.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/drm/drm_mipi_dbi.h b/include/drm/drm_mipi_dbi.h
index 67c66f5ee591..33f325f5af2b 100644
--- a/include/drm/drm_mipi_dbi.h
+++ b/include/drm/drm_mipi_dbi.h
@@ -110,6 +110,18 @@ struct mipi_dbi_dev {
unsigned int rotation;
/**
+ * @left_offset: Horizontal offset of the display relative to the
+ * controller's driver array
+ */
+ unsigned int left_offset;
+
+ /**
+ * @top_offset: Vertical offset of the display relative to the
+ * controller's driver array
+ */
+ unsigned int top_offset;
+
+ /**
* @backlight: backlight device (optional)
*/
struct backlight_device *backlight;