binman: Allow setting the ROM offset
authorSimon Glass <sjg@chromium.org>
Wed, 8 Jul 2020 03:32:02 +0000 (21:32 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commitdb6fb7d152bf39d2781b61d89458900660544b91
tree9feca392e47cc19ba70e476838dee0a4e723ddb4
parenta4f8208919a4458ebe93d46d43a7cb0a13f7a0d8
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>
include/binman.h
lib/binman.c