diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2020-01-15 15:45:46 +0300 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-01-19 20:07:08 +0300 |
commit | f41a8a69890d08061076ee9e4e0e59c2f1e82477 (patch) | |
tree | a0c5a6682c56d9a0c435d116b18376a37bb7ddde /include/drm/drm_mipi_dbi.h | |
parent | 3a1a6be40bd7ef6c98dcdfa7937ff3279206e92e (diff) | |
download | linux-f41a8a69890d08061076ee9e4e0e59c2f1e82477.tar.xz |
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.h | 12 |
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; |