summaryrefslogtreecommitdiff
path: root/include/cedit.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-08-14 16:40:34 -0600
committerTom Rini <trini@konsulko.com>2023-08-25 13:54:33 -0400
commit472317cb12e534f56b631365987934960dfb0a3f (patch)
tree3ac102f38603af6ee02075c0743bb08f824119dd /include/cedit.h
parent2dee81fe5f4a6427ba48fe17ff017930ddf3b4e4 (diff)
downloadu-boot-472317cb12e534f56b631365987934960dfb0a3f.tar.gz
u-boot-472317cb12e534f56b631365987934960dfb0a3f.tar.bz2
u-boot-472317cb12e534f56b631365987934960dfb0a3f.zip
expo: cedit: Support reading settings from a file
Add a command to read cedit settings from a devicetree file. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/cedit.h')
-rw-r--r--include/cedit.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/cedit.h b/include/cedit.h
index 6086e30200..bb6e87d4af 100644
--- a/include/cedit.h
+++ b/include/cedit.h
@@ -7,6 +7,8 @@
#ifndef __CEDIT_H
#define __CEDIT_H
+#include <dm/ofnode_decl.h>
+
struct abuf;
struct expo;
struct scene;
@@ -67,4 +69,15 @@ int cedit_prepare(struct expo *exp, struct video_priv **vid_privp,
*/
int cedit_write_settings(struct expo *exp, struct abuf *buf);
+/**
+ * cedit_read_settings() - Read settings in FDT format
+ *
+ * Read an FDT with the settings
+ *
+ * @exp: Expo to read settings into
+ * @tree: Tree to read from
+ * Return: 0 if OK, -ve on error
+ */
+int cedit_read_settings(struct expo *exp, oftree tree);
+
#endif /* __CEDIT_H */