summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/rcar-du/rcar_du_of.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2018-01-10 03:40:27 +0300
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2018-03-07 19:06:41 +0300
commit81c0e3dd82927064a2f56a31a0974a0d110fcdb0 (patch)
tree552d7bcb5275ea37101b0c3f940dc8d1e5e82e45 /drivers/gpu/drm/rcar-du/rcar_du_of.h
parent6d2ca85279becdff6c12c3c25598f0aed472998e (diff)
downloadlinux-81c0e3dd82927064a2f56a31a0974a0d110fcdb0.tar.xz
drm: rcar-du: Fix legacy DT to create LVDS encoder nodes
The internal LVDS encoders now have their own DT bindings. Before switching the driver infrastructure to those new bindings, implement backward-compatibility through live DT patching. Patching is disabled and will be enabled along with support for the new DT bindings in the DU driver. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Diffstat (limited to 'drivers/gpu/drm/rcar-du/rcar_du_of.h')
-rw-r--r--drivers/gpu/drm/rcar-du/rcar_du_of.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_of.h b/drivers/gpu/drm/rcar-du/rcar_du_of.h
new file mode 100644
index 000000000000..c2e65a727e91
--- /dev/null
+++ b/drivers/gpu/drm/rcar-du/rcar_du_of.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * rcar_du_of.h - Legacy DT bindings compatibility
+ *
+ * Copyright (C) 2018 Laurent Pinchart <laurent.pinchart@ideasonboard.com>
+ */
+#ifndef __RCAR_DU_OF_H__
+#define __RCAR_DU_OF_H__
+
+#include <linux/init.h>
+
+struct of_device_id;
+
+#ifdef CONFIG_DRM_RCAR_LVDS
+void __init rcar_du_of_init(const struct of_device_id *of_ids);
+#else
+static inline void rcar_du_of_init(const struct of_device_id *of_ids) { }
+#endif /* CONFIG_DRM_RCAR_LVDS */
+
+#endif /* __RCAR_DU_OF_H__ */