diff options
author | He Yong <hyyoxhk@163.com> | 2022-02-18 00:07:25 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-07 16:50:53 -0400 |
commit | eb68ead2d3f093dfeffae68045e8921d93ff05cf (patch) | |
tree | 452468d03abe4eccd3bfd21e36c8b291c42dda25 /include/env_internal.h | |
parent | ec57bd745470fc47b278c21d2eebc95c27c442e5 (diff) | |
download | u-boot-eb68ead2d3f093dfeffae68045e8921d93ff05cf.zip u-boot-eb68ead2d3f093dfeffae68045e8921d93ff05cf.tar.gz u-boot-eb68ead2d3f093dfeffae68045e8921d93ff05cf.tar.bz2 |
env: fat: Allow overriding interface, device and partition
For platform which can boot on different device, this allows
to override interface, device and partition from board code
Signed-off-by: He Yong <hyyoxhk@163.com>
Diffstat (limited to 'include/env_internal.h')
-rw-r--r-- | include/env_internal.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/env_internal.h b/include/env_internal.h index 07c227e..b704c03 100644 --- a/include/env_internal.h +++ b/include/env_internal.h @@ -245,6 +245,26 @@ const char *env_ext4_get_dev_part(void); * Return: an enum env_location value on success, or -ve error code. */ enum env_location env_get_location(enum env_operation op, int prio); + +/** + * env_fat_get_intf() - Provide the interface for env in FAT + * + * It is a weak function allowing board to overidde the default interface for + * U-Boot env in FAT: CONFIG_ENV_FAT_INTERFACE + * + * Return: string of interface, empty if not supported + */ +const char *env_fat_get_intf(void); + +/** + * env_fat_get_dev_part() - Provide the device and partition for env in FAT + * + * It is a weak function allowing board to overidde the default device and + * partition used for U-Boot env in FAT: CONFIG_ENV_FAT_DEVICE_AND_PART + * + * Return: string of device and partition + */ +char *env_fat_get_dev_part(void); #endif /* DO_DEPS_ONLY */ #endif /* _ENV_INTERNAL_H_ */ |