diff options
author | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2020-08-12 15:25:15 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-08-14 15:21:30 +0200 |
commit | 8666aae1db002d500ca1a9ec2cfdd7155ab0494b (patch) | |
tree | bb5763f45c244d28b7fb7af87ad367773865bb36 /include | |
parent | 2a71a57e7932a2439530087864cd39f2f2f084aa (diff) | |
download | barebox-8666aae1db002d500ca1a9ec2cfdd7155ab0494b.tar.gz barebox-8666aae1db002d500ca1a9ec2cfdd7155ab0494b.tar.xz |
FIT: Parse `load` and `entry` addresses.
According to the U-Boot documentation for the FIT file format, the load
and entry have to be allways defined for a "kernel" or "standalone".
But Barebox ignored the parameters. That changes with this patch.
For backward compatibility the default values for load or entry are
still used if they are not given by the FIT file.
Signed-off-by: Christian Mauderer <christian.mauderer@embedded-brains.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/image-fit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/image-fit.h b/include/image-fit.h index 27c9e83519..f21545988e 100644 --- a/include/image-fit.h +++ b/include/image-fit.h @@ -32,6 +32,9 @@ int fit_has_image(struct fit_handle *handle, void *configuration, int fit_open_image(struct fit_handle *handle, void *configuration, const char *name, const void **outdata, unsigned long *outsize); +int fit_get_image_address(struct fit_handle *handle, void *configuration, + const char *name, const char *property, + unsigned long *address); void fit_close(struct fit_handle *handle); |