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>
diff --git a/include/cedit.h b/include/cedit.h
index 6086e30..bb6e87d 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_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 */