aboutsummaryrefslogtreecommitdiff
path: root/include/bootflow.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-17 10:47:56 -0700
committerTom Rini <trini@konsulko.com>2023-01-23 18:11:40 -0500
commit7638c85190dccc2dfacb86fc3b70deb165337b4b (patch)
tree75c5ef7a384c65309bdfeb2d7b1904a5ce662b10 /include/bootflow.h
parent3e18860e3f3425bd2649e62cd2635bd008fe5f4d (diff)
downloadu-boot-7638c85190dccc2dfacb86fc3b70deb165337b4b.zip
u-boot-7638c85190dccc2dfacb86fc3b70deb165337b4b.tar.gz
u-boot-7638c85190dccc2dfacb86fc3b70deb165337b4b.tar.bz2
bootstd: Include the device tree in the bootflow
Some bootmeths provide a way to load a device tree as well as the base OS image. Add a way to store this in the bootflow. Update the 'bootflow info' command to show this information. Note that the device tree is not allocated, but instead is stored at an address provided by an environment variable. This may need to be adjusted at some point, but for now it works well and fits in with the existing distro-boot scripts. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/bootflow.h')
-rw-r--r--include/bootflow.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/bootflow.h b/include/bootflow.h
index 8ff9e33..bf71b09 100644
--- a/include/bootflow.h
+++ b/include/bootflow.h
@@ -60,6 +60,9 @@ enum bootflow_state_t {
* @err: Error number received (0 if OK)
* @os_name: Name of the OS / distro being booted, or NULL if not known
* (allocated)
+ * @fdt_fname: Filename of FDT file
+ * @fdt_size: Size of FDT file
+ * @fdt_addr: Address of loaded fdt
*/
struct bootflow {
struct list_head bm_node;
@@ -79,6 +82,9 @@ struct bootflow {
int size;
int err;
char *os_name;
+ char *fdt_fname;
+ int fdt_size;
+ ulong fdt_addr;
};
/**