Hello Andrey Petrov, Patrick Rudolph,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/48185
to look at the new patch set (#2).
Change subject: coreboot tables: Add SPI flash memory map windows to coreboot tables ......................................................................
coreboot tables: Add SPI flash memory map windows to coreboot tables
This change adds details about the memory map windows to translate addresses between SPI flash space and host address space to coreboot tables. This is useful for payloads to setup the translation using the decode windows already known to coreboot. Until now, there was a single decode window at the top of 4G used by all x86 platforms. However, going forward, platforms might support more decode windows and hence in order to avoid duplication in payloads this information is filled in coreboot tables.
`lb_spi_flash()` is updated to fill in the details about these windows by making a call to `spi_flash_get_mmap_windows()` which is implemented by the driver providing the boot media mapping device.
BUG=b:171534504
Signed-off-by: Furquan Shaikh furquan@google.com Change-Id: I00ae33d9b53fecd0a8eadd22531fdff8bde9ee94 --- M payloads/libpayload/include/coreboot_tables.h M payloads/libpayload/include/sysinfo.h M payloads/libpayload/libc/coreboot.c M src/arch/x86/mmap_boot.c M src/commonlib/include/commonlib/coreboot_tables.h M src/drivers/spi/spi_flash.c M src/include/spi_flash.h M src/soc/intel/apollolake/mmap_boot.c M src/soc/intel/common/block/fast_spi/mmap_boot.c 9 files changed, 101 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/85/48185/2