mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-12 15:08:25 -04:00
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
This commit is contained in:
committed by
Sam Ravnborg
parent
3a1a6be40b
commit
f41a8a6989
@@ -109,6 +109,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)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user