coreboot-kgpe-d16/payloads/libpayload/libc
Furquan Shaikh 493937e1d6 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
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48185
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-12-08 22:56:09 +00:00
..
Makefile.inc
args.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
console.c
coreboot.c coreboot tables: Add SPI flash memory map windows to coreboot tables 2020-12-08 22:56:09 +00:00
ctype.c
die.c
exec.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
fmap.c
fpmath.c libpayload: Add simple 32.32 fixed-point math API 2020-07-09 00:32:11 +00:00
getopt_long.c Reduce warnings/errors in libpayload when using picky compiler options 2011-06-30 20:41:23 +02:00
hexdump.c
ipchecksum.c
lib.c
libgcc.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
malloc.c libpayload: free: Separate NULL check out for clarity 2020-09-19 01:36:57 +00:00
memory.c
printf.c
qsort.c
rand.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
readline.c
string.c payloads: Drop unneeded empty lines 2020-09-21 16:20:57 +00:00
strlcpy.c libpayload: Implement strlcpy 2011-07-07 22:29:35 +02:00
sysinfo.c
time.c libpayload: use PRIu64 type to print u64 2020-09-30 10:16:44 +00:00