summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/amba-clcd-versatile.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-06-16 12:36:18 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-08-11 17:54:54 +0300
commit25348160e9a444d64f589a8106bc06549934223e (patch)
treefdb0e9f944d9af27075728c85e28b4250029d9c9 /drivers/video/fbdev/amba-clcd-versatile.h
parent1d3f0cbe0d3a537cbc8fb1a91f6d14407acece62 (diff)
downloadlinux-25348160e9a444d64f589a8106bc06549934223e.tar.xz
video: ARM CLCD: add special panel hook for Versatiles
This adds a special panel init hook for the ARM reference designs Integrator (IM-PD1), Versatile and RealView, so we can configure a DPI panel from device tree and have it working without boardfiles for these machines. Basically this is the same code as from the board files, just moved over to look up the syscon DT node and manipulate the special CLCD register from their regmap. Tested on RealView PB11MPcore. Cc: Pawel Moll <pawel.moll@arm.com> Cc: Rob Herring <robh@kernel.org> Cc: Russell King <linux@arm.linux.org.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/fbdev/amba-clcd-versatile.h')
-rw-r--r--drivers/video/fbdev/amba-clcd-versatile.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/video/fbdev/amba-clcd-versatile.h b/drivers/video/fbdev/amba-clcd-versatile.h
new file mode 100644
index 000000000000..1b14359c2cf6
--- /dev/null
+++ b/drivers/video/fbdev/amba-clcd-versatile.h
@@ -0,0 +1,17 @@
+/*
+ * Special local versatile callbacks
+ */
+#include <linux/of.h>
+#include <linux/amba/bus.h>
+#include <linux/platform_data/video-clcd-versatile.h>
+
+#if defined(CONFIG_PLAT_VERSATILE_CLCD) && defined(CONFIG_OF)
+int versatile_clcd_init_panel(struct clcd_fb *fb,
+ struct device_node *endpoint);
+#else
+static inline int versatile_clcd_init_panel(struct clcd_fb *fb,
+ struct device_node *endpoint)
+{
+ return 0;
+}
+#endif