diff options
author | Simon Glass <sjg@chromium.org> | 2020-09-27 18:46:19 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-10-29 14:42:17 -0600 |
commit | f4f4123708cd3699aa3981afca9511beb760c7fb (patch) | |
tree | 599606e7366e90df9d702ac57795685de85f3e73 /include/binman.h | |
parent | cdeb7b8f984e6d9bcdc5a6fdda6107af156d47bf (diff) | |
download | u-boot-f4f4123708cd3699aa3981afca9511beb760c7fb.tar.gz u-boot-f4f4123708cd3699aa3981afca9511beb760c7fb.tar.bz2 u-boot-f4f4123708cd3699aa3981afca9511beb760c7fb.zip |
binman: Add a way to read the ROM offset
Provide a function to read the ROM offset so that we can store the value
in one place and clients don't need to store it themselves after calling
binman_set_rom_offset().
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/binman.h')
-rw-r--r-- | include/binman.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/binman.h b/include/binman.h index e0b92075e2..8b89a9666d 100644 --- a/include/binman.h +++ b/include/binman.h @@ -43,6 +43,13 @@ int binman_entry_map(ofnode parent, const char *name, void **bufp, int *sizep); void binman_set_rom_offset(int rom_offset); /** + * binman_get_rom_offset() - Get the ROM memory-map offset + * + * @returns offset from an image_pos to the memory-mapped address + */ +int binman_get_rom_offset(void); + +/** * binman_entry_find() - Find a binman symbol * * This searches the binman information in the device tree for a symbol of the |