OSDN Git Service

drm: tiny: st7735r: Prepare for adding support for more displays
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 15 Jan 2020 12:45:47 +0000 (13:45 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Sun, 19 Jan 2020 17:07:30 +0000 (18:07 +0100)
commit98823f379447ad7691d427151e6f9c8761416052
tree579efd3273fec93d538fba6b4e84dda6640d6ce3
parentf41a8a69890d08061076ee9e4e0e59c2f1e82477
drm: tiny: st7735r: Prepare for adding support for more displays

Currently the st7735r driver supports only a single display panel.
Prepare for adding support for other display panels by factoring out the
display-specific parameters in struct st7735r_cfg.

For now, the following parameters can be configured:
  - Display resolution,
  - Horizontal/vertical display offsets,
  - Read-write versus read-only controllers,
  - RGB versus BGR color component ordering.

Rename jd_t18003_t01_pipe_enable() and jd_t18003_t01_pipe_funcs() to
st7735r_pipe_enable() resp. st7735r_pipe_funcs(), as they are not really
specific to the Jianda JD-T18003-T01 display anymore.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200115124548.3951-5-geert+renesas@glider.be
drivers/gpu/drm/tiny/st7735r.c