aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel/panel-samsung-s6e63m0.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2020-08-09 23:51:01 +0200
committerLinus Walleij <linus.walleij@linaro.org>2020-09-05 01:21:48 +0200
commitb7b23e4476872d80b7d70cd24e158a0505fdad5f (patch)
treecd7e72a8bdb2ed9bec4976e75692a0d90cb3cd4f /drivers/gpu/drm/panel/panel-samsung-s6e63m0.h
parentdrm/managed: Cleanup of unused functions and polishing docs (diff)
downloadlinux-dev-b7b23e4476872d80b7d70cd24e158a0505fdad5f.tar.xz
linux-dev-b7b23e4476872d80b7d70cd24e158a0505fdad5f.zip
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/
Diffstat (limited to 'drivers/gpu/drm/panel/panel-samsung-s6e63m0.h')
-rw-r--r--drivers/gpu/drm/panel/panel-samsung-s6e63m0.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.h b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.h
new file mode 100644
index 000000000000..44e31f39f211
--- /dev/null
+++ b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#ifndef _PANEL_SAMSUNG_S6E63M0_H
+#define _PANEL_SAMSUNG_S6E63M0_H
+
+int s6e63m0_probe(struct device *dev,
+ int (*dcs_write)(struct device *dev, const u8 *data, size_t len));
+int s6e63m0_remove(struct device *dev);
+
+#endif /* _PANEL_SAMSUNG_S6E63M0_H */