summaryrefslogtreecommitdiff
path: root/include/env.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-05-06 11:00:07 -0400
committerTom Rini <trini@konsulko.com>2021-05-06 11:00:07 -0400
commit1b8ad819cead7020d35f6251ef0cf3f393c61e51 (patch)
tree6331512066c3a921df043a1b6ba8b7c679a98230 /include/env.h
parent8ddaf943589756442bba21e5be645cd47526d82b (diff)
parentf0b21ebd417cfe75f266b4dc16318bb3581783b9 (diff)
Merge branch '2021-05-06-misc-updates'
- Allow for boards to update bootargs before booting the OS (helpful in some forms of secure boot). - Enhance GPT write support. - gpio-sysinfo updates - Allow env to be appended from dtb
Diffstat (limited to 'include/env.h')
-rw-r--r--include/env.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/env.h b/include/env.h
index b5731e4b9a7..d5e2bcb530f 100644
--- a/include/env.h
+++ b/include/env.h
@@ -375,4 +375,19 @@ int env_get_char(int index);
* This is used for those unfortunate archs with crappy toolchains
*/
void env_reloc(void);
+
+
+/**
+ * env_import_fdt() - Import environment values from device tree blob
+ *
+ * This uses the value of the environment variable "env_fdt_path" as a
+ * path to an fdt node, whose property/value pairs are added to the
+ * environment.
+ */
+#ifdef CONFIG_ENV_IMPORT_FDT
+void env_import_fdt(void);
+#else
+static inline void env_import_fdt(void) {}
+#endif
+
#endif