diff options
author | Tom Rini | 2020-07-27 09:25:53 -0400 |
---|---|---|
committer | Tom Rini | 2020-07-27 09:25:53 -0400 |
commit | 3773028fced4795d52f02b387496395ec387f3bb (patch) | |
tree | ab11a71616bc9d5534d4b633520819c1b9be8b9c /include | |
parent | ada61f1ee2a4eaa1b29d699b5ba940483171df8a (diff) | |
parent | 5d4f7b4e2a1a2df459172ec95cbcdd6373dd707a (diff) |
Merge branch '2020-07-27-misc-env-improvements'
- Assorted environment fixes.
- Enhance environment in MMC and controlled via OF_CONTROL
- Allow for environment in FAT to use the same device we boot from
rather than be hard-coded.
Diffstat (limited to 'include')
-rw-r--r-- | include/env_internal.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/env_internal.h b/include/env_internal.h index e89fbdb1b75..66550434c3f 100644 --- a/include/env_internal.h +++ b/include/env_internal.h @@ -211,6 +211,17 @@ struct env_driver { extern struct hsearch_data env_htab; +/** + * env_get_location()- Provide the best location for the U-Boot environment + * + * It is a weak function allowing board to overidde the environment location + * + * @op: operations performed on the environment + * @prio: priority between the multiple environments, 0 being the + * highest priority + * @return an enum env_location value on success, or -ve error code. + */ +enum env_location env_get_location(enum env_operation op, int prio); #endif /* DO_DEPS_ONLY */ #endif /* _ENV_INTERNAL_H_ */ |