OSDN Git Service

drm/panel: s6e63m0: Add reading functionality
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 9 Aug 2020 21:51:03 +0000 (23:51 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 4 Sep 2020 23:24:26 +0000 (01:24 +0200)
commit91867ac7d6724c31f32c3a63e2bb5db978893eaf
treefe74aa328935fcca5446aa09f28416a935f63f75
parent435e06c06cb2e3bd2f650a52641ddb13a95a1624
drm/panel: s6e63m0: Add reading functionality

This adds code to send read commands to read a single
byte from the display, in order to perform MTP ID
look-up of the mounted panel on the s6e63m0 controller.
This is needed for proper biasing on the DSI variants.

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/msgid/20200809215104.1830206-4-linus.walleij@linaro.org
drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c
drivers/gpu/drm/panel/panel-samsung-s6e63m0-spi.c
drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
drivers/gpu/drm/panel/panel-samsung-s6e63m0.h