summaryrefslogtreecommitdiff
path: root/drivers/video/sunxi/simplefb_common.h
diff options
context:
space:
mode:
authorIcenowy Zheng <icenowy@aosc.io>2017-10-26 11:14:45 +0800
committerAnatolij Gustschin <agust@denx.de>2017-10-26 11:51:45 +0200
commite5f92467d77db8c00b389d2723242f6972e74d37 (patch)
tree0f7baef24f64d1c3648357398ab384c756f4ff47 /drivers/video/sunxi/simplefb_common.h
parent401a3ca0fb7070ab1654dde67192037b64fe0873 (diff)
video: sunxi: extract simplefb match code to a new file
As the DE2 simplefb setup code can also benefit from the simplefb match code, extract it to a new source file. Signed-off-by: Icenowy Zheng <icenowy@aosc.io> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers/video/sunxi/simplefb_common.h')
-rw-r--r--drivers/video/sunxi/simplefb_common.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/video/sunxi/simplefb_common.h b/drivers/video/sunxi/simplefb_common.h
new file mode 100644
index 00000000000..1a2bfabf00c
--- /dev/null
+++ b/drivers/video/sunxi/simplefb_common.h
@@ -0,0 +1,22 @@
+/*
+ * (C) Copyright 2017 Icenowy Zheng <icenowy@aosc.io>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __SIMPLEFB_COMMON_H
+#define __SIMPLEFB_COMMON_H
+
+/**
+ * sunxi_simplefb_fdt_match() - match a sunxi simplefb node
+ *
+ * Match a sunxi simplefb device node with a specified pipeline, and
+ * return its offset.
+ *
+ * @blob: device tree blob
+ * @pipeline: display pipeline
+ * @return device node offset in blob, or negative values if failed
+ */
+int sunxi_simplefb_fdt_match(void *blob, const char *pipeline);
+
+#endif