coreboot-kgpe-d16/src/include
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
..
acpi ACPI: Define acpi_get_preferred_pm_profile() 2020-11-19 22:58:41 +00:00
boot
console console: Override uart base address 2020-11-09 07:46:10 +00:00
cpu cpu/x86/smm_module_loaderv2: Fix compiling for x86_64 2020-12-04 17:20:30 +00:00
device include/device/device: add comment that config_of_soc never returns NULL 2020-12-06 19:00:35 +00:00
efi
pc80 src/include: Drop unneeded empty lines 2020-09-14 07:09:41 +00:00
smp src/include: Drop unneeded empty lines 2020-09-14 07:09:41 +00:00
superio src/include: Add PnP/HWM unset_and_set functions 2020-09-18 12:06:38 +00:00
sys
adainit.h
asan.h
assert.h
b64_decode.h
base3.h
bcd.h
boardid.h
boot_device.h cbfs: Move more stuff into cbfs_boot_lookup() 2020-12-02 22:13:06 +00:00
bootblock_common.h src/lib/bootblock.c: make bootblock_main_with_timestamp public 2020-09-22 07:00:34 +00:00
bootmem.h
bootmode.h
bootsplash.h
bootstate.h
cbfs.h cbfs: Add verification for RO CBFS metadata hash 2020-12-03 00:11:08 +00:00
cbfs_glue.h cbfs: Add verification for RO CBFS metadata hash 2020-12-03 00:11:08 +00:00
cbfs_private.h cbfs: Move more stuff into cbfs_boot_lookup() 2020-12-02 22:13:06 +00:00
cbmem.h cbmem: Make cbmem_online() accurate on stages after romstage 2020-12-08 21:38:51 +00:00
cper.h
crc_byte.h
ctype.h
delay.h
device_tree.h src/include: Drop unneeded empty lines 2020-09-14 07:09:41 +00:00
dimm_info_util.h
edid.h
elog.h elog: Add new wake source codes 2020-11-30 08:05:55 +00:00
endian.h
espi.h
fallback.h
fit.h
fit_payload.h
fmap.h
fw_config.h lib/libpayload: Replace strapping_ids with new board configuration entry 2020-10-30 15:25:28 +00:00
gic.h
gpio.h
halt.h
imd.h include/imd: Improve API documentation 2020-08-26 07:32:37 +00:00
imd_private.h lib/imd: move struct definitions to a new header file 2020-10-19 06:55:03 +00:00
input-event-codes.h src/include: Drop unneeded empty lines 2020-09-14 07:09:41 +00:00
inttypes.h
ip_checksum.h
kconfig.h
lib.h lib and libpayload: Add popcnt functions 2020-10-15 19:01:51 +00:00
list.h include/list.h: Add support for GCC9+ 2020-11-03 09:11:21 +00:00
main_decl.h
memlayout.h cbfs: Add metadata cache 2020-11-21 10:43:53 +00:00
memory_info.h soc: move mainboard_get_dram_part_num prototype to memory_info.h 2020-10-05 18:02:37 +00:00
memrange.h src/include: Drop unneeded empty lines 2020-09-14 07:09:41 +00:00
metadata_hash.h cbfs: Add verification for RO CBFS metadata hash 2020-12-03 00:11:08 +00:00
mrc_cache.h mrc_cache: Change mrc_cache_load_current to return size of entry 2020-10-09 05:38:04 +00:00
nhlt.h soc/intel/skylake: Use correct NHLT_PDM_DEV definition 2020-11-24 09:42:14 +00:00
option.h
post.h
program_loading.h
ramdetect.h
random.h
reg_script.h src/include: Drop unneeded empty lines 2020-09-14 07:09:41 +00:00
region_file.h region_file_update_data_arr: Modify region_file with array of buffers 2020-09-16 16:02:54 +00:00
reset.h
rmodule.h
romstage_handoff.h
rtc.h
rules.h src: Update some incorrect config options in comments 2020-11-16 12:09:58 +00:00
sar.h
sdram_mode.h
smbios.h arch/x86/smbios: Update SMBIOS type 16 error correction type 2020-11-25 09:18:04 +00:00
smmstore.h drivers/smmstore: Implement SMMSTORE version 2 2020-10-22 12:29:47 +00:00
spd.h src/include: Drop unneeded empty lines 2020-09-14 07:09:41 +00:00
spd_bin.h
spd_cache.h
spd_ddr2.h
spi-generic.h
spi_bitbang.h
spi_flash.h coreboot tables: Add SPI flash memory map windows to coreboot tables 2020-12-08 22:56:09 +00:00
spi_sdcard.h
stage_cache.h
stdarg.h
stdbool.h
stddef.h
stdint.h
stdio.h
stdlib.h
string.h
swab.h
symbols.h cbfs: Add metadata cache 2020-11-21 10:43:53 +00:00
thread.h
timer.h
timestamp.h
types.h
uuid.h
vbe.h
version.h
watchdog.h
wrdd.h