aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/pl111/pl111_nomadik.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2018-06-21 20:44:50 +0200
committerLinus Walleij <linus.walleij@linaro.org>2018-07-01 21:36:47 +0200
commite08015e7d6a4b5395e75cc286ab6400667c63dc0 (patch)
tree9061c97394dedd4c9bf7ee361dcad3ff07060581 /drivers/gpu/drm/pl111/pl111_nomadik.h
parentdrm/vc4: Make DSI call into the bridge after the DSI link is enabled. (diff)
downloadlinux-dev-e08015e7d6a4b5395e75cc286ab6400667c63dc0.tar.xz
linux-dev-e08015e7d6a4b5395e75cc286ab6400667c63dc0.zip
drm/pl111: Support Nomadik LCDC variant
The Nomadik has a variant of the PL110 known as "Color LCD Controller" LCDC. This variant has the same bit ordering as the DRM subsystem (in difference from the other variants) and adds a few bits for the control of 5551, 565 etc in the control register. Notably it also adds a packed RGB888 24BPP mode. We add support by detecting this variant and also adding a small plug-in that will mux the LCDC out if the ASIC happens to be muxed to the other graphics controller (they are mutually exclusive). Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20180621184450.25377-1-linus.walleij@linaro.org
Diffstat (limited to 'drivers/gpu/drm/pl111/pl111_nomadik.h')
-rw-r--r--drivers/gpu/drm/pl111/pl111_nomadik.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/drm/pl111/pl111_nomadik.h b/drivers/gpu/drm/pl111/pl111_nomadik.h
new file mode 100644
index 000000000000..19d663d46353
--- /dev/null
+++ b/drivers/gpu/drm/pl111/pl111_nomadik.h
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0+
+#include <linux/device.h>
+
+#ifndef PL111_NOMADIK_H
+#define PL111_NOMADIK_H
+#endif
+
+#ifdef CONFIG_ARCH_NOMADIK
+
+void pl111_nomadik_init(struct device *dev);
+
+#else
+
+static inline void pl111_nomadik_init(struct device *dev)
+{
+}
+
+#endif