]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel: s6e63m0: Break out SPI transport
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 9 Aug 2020 21:51:01 +0000 (23:51 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 4 Sep 2020 23:21:48 +0000 (01:21 +0200)
commit27261a7fad1a54a8b4f0a66091b957278e438f4d
treecd7e72a8bdb2ed9bec4976e75692a0d90cb3cd4f
parent261d898e06dcdf8265debdbbe90c71f553d9a233
drm/panel: s6e63m0: Break out SPI transport

This panel can be accessed using both SPI and DSI.

To make it possible to probe and use the device also from
a DSI bus, first break out the SPI support to its own file.

Since all the panel driver does is write DCS commands to
the panel, we pass a DCS write function to probe()
from each subdriver.

We make the Kconfig entry for SPI mode default so all
current users will continue to work.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Stephan Gerhold <stephan@gerhold.net>
Cc: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Link: https://patchwork.freedesktop.org/patch/384873/
drivers/gpu/drm/panel/Kconfig
drivers/gpu/drm/panel/Makefile
drivers/gpu/drm/panel/panel-samsung-s6e63m0-spi.c [new file with mode: 0644]
drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
drivers/gpu/drm/panel/panel-samsung-s6e63m0.h [new file with mode: 0644]