X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fenv.h;h=d5e2bcb530f03f23c8cae862dc44fca530117d5e;hb=5fac11e6d5ab350429b8c8ddf47d3d3877ca89d1;hp=c15339a93f1a9bbc8f75c8559fde232fa5519559;hpb=7a8ac9df5dc0c23620d07933288fc5bea1941c29;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/env.h b/include/env.h index c15339a..d5e2bcb 100644 --- a/include/env.h +++ b/include/env.h @@ -328,8 +328,6 @@ int env_export(struct environment_s *env_out); * @buf2_read_fail: 0 if buf2 is valid, non-zero if invalid * @return 0 if OK, * -EIO if no environment is valid, - * -EINVAL if read of second entry is good - * -ENOENT if read of first entry is good * -ENOMSG if the CRC was bad */ @@ -377,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