mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
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>
This commit is contained in:
@@ -42,6 +42,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
|
||||
*
|
||||
|
Reference in New Issue
Block a user