summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2022-04-08 08:27:50 -0400
committerTom Rini <[email protected]>2022-04-08 08:27:50 -0400
commit03a8a797e5dccaffe172d3b5224bc3c3fcd304d6 (patch)
tree86204244c902ae70775c787d23427da8961f77d1 /include
parent545eceb52062cdc995c45b9581174b7ae66b0e6f (diff)
parent6910dbe3413e684bff9a194945df60345ecbc623 (diff)
Merge branch '2022-04-08-env-updates'
- Assorted env tooling updates - Bug fix around multiple possible env locations and ENV_IS_NOWHERE - Add 'indirect' sub-command to env - Allow for FAT env to have the location overridden by the board code.
Diffstat (limited to 'include')
-rw-r--r--include/env_internal.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/env_internal.h b/include/env_internal.h
index 07c227ecc03..b704c033631 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_ */