summaryrefslogtreecommitdiff
path: root/include/parade.h
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2014-12-05 18:12:22 +0100
committerMinkyu Kang <mk7.kang@samsung.com>2014-12-22 20:38:27 +0900
commita7b99204a09c9451d661e0d94cdafa4677a229de (patch)
tree8ffdd55903d3b5dc159a8d575609db4402e35cce /include/parade.h
parent307e90e6179e46197e701e216767408c8ef6d010 (diff)
downloadu-boot-imx-a7b99204a09c9451d661e0d94cdafa4677a229de.zip
u-boot-imx-a7b99204a09c9451d661e0d94cdafa4677a229de.tar.gz
u-boot-imx-a7b99204a09c9451d661e0d94cdafa4677a229de.tar.bz2
exynos5420: fix compilation without parade video
Not all exynos 5420 based devices with an LCD also have a parade LVDS bridge. So make sure compilation doesn't break if CONFIG_LCD is enabled and CONFIG_VIDEO_PARADE is not. As a side-effect move the parade functions from the exynos system header file to its own file. Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'include/parade.h')
-rw-r--r--include/parade.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/parade.h b/include/parade.h
new file mode 100644
index 0000000..887f56d
--- /dev/null
+++ b/include/parade.h
@@ -0,0 +1,18 @@
+/*
+ * (C) Copyright 2012 Samsung Electronics
+ * Donghwa Lee <dh09.lee@samsung.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __PARADE_H__
+#define __PARADE_H__
+
+/* Initialize the Parade dP<->LVDS bridge if present */
+#ifdef CONFIG_VIDEO_PARADE
+int parade_init(const void *blob);
+#else
+static inline int parade_init(const void *blob) { return -1; }
+#endif
+
+#endif /* __PARADE_H__ */