mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
binman: Allow setting the ROM offset
On x86 the SPI ROM can be memory-mapped, at least most of it. Add a way to tell binman the offset from a ROM address to a RAM address. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
a4f8208919
commit
db6fb7d152
2 changed files with 25 additions and 0 deletions
|
@ -20,6 +20,14 @@ struct binman_entry {
|
|||
u32 size;
|
||||
};
|
||||
|
||||
/**
|
||||
* binman_set_rom_offset() - Set the ROM memory-map offset
|
||||
*
|
||||
* @rom_offset: Offset from an image_pos to the memory-mapped address. This
|
||||
* tells binman that ROM image_pos x can be addressed at rom_offset + x
|
||||
*/
|
||||
void binman_set_rom_offset(int rom_offset);
|
||||
|
||||
/**
|
||||
* binman_entry_find() - Find a binman symbol
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue