coreboot/src/lib
Martin Roth a616a4be36 src/device: Add option to look at revision in option roms
AMD's Family 17h SOCs have the same vendor and device IDs for
their graphics blocks, but need different video BIOSes.  The
only difference is the revision number.

Add a Kconfig option that allows us to add the revision number
of the graphics device to the PCI option rom saved in CBFS.

Because searching CBFS takes a non-trivial amount of time,
only enable the option if it's needed.  If it's not used, or
if nothing matches, the check will fall through and search for
an option rom with no version.

BUG=b:145817712
TEST=With surrounding patches, loads dali vbios

Change-Id: Icb610a2abe7fcd0f4dc3716382b9853551240a7a
Signed-off-by: Martin Roth <martinroth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/2013181
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39792
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
2020-03-25 10:48:21 +00:00
..
gnat src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
b64_decode.c src/lib: Fix typos 2020-01-08 12:57:53 +00:00
boot_device.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
bootblock.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
bootmem.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
bootmode.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
bootsplash.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
cb.ads Hook up Kconfig Ada spec file 2019-02-06 16:20:35 +00:00
cbfs.c src/device: Add option to look at revision in option roms 2020-03-25 10:48:21 +00:00
cbmem_common.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
cbmem_console.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
cbmem_stage_cache.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
compute_ip_checksum.c
coreboot_table.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
crc_byte.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
decompressor.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
delay.c
device_tree.c add ctype.h header 2019-06-24 21:15:14 +00:00
dimm_info_util.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
edid.c lib/edid: Zero struct only when used 2020-02-17 15:43:25 +00:00
edid_fill_fb.c lib/edid: Add suport for display rotation 2019-08-08 03:18:35 +00:00
ext_stage_cache.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
fallback_boot.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
fit.c commonlib: Add commonlib/bsd 2020-01-28 06:36:13 +00:00
fit_payload.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
fmap.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
gcc.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
gcov-glue.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
gcov-io.c
gcov-io.h Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
gcov-iov.h
gpio.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
halt.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
hardwaremain.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
hexdump.c src: Remove unused include <string.h> 2019-12-26 10:45:37 +00:00
hexstrtobin.c src: Remove unused include <string.h> 2019-12-26 10:45:37 +00:00
hw-time-timer.adb src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
imd.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
imd_cbmem.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
jpeg.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
jpeg.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
Kconfig lib/fmap: Disable pre-RAM cache for FSP 1.0 2019-11-19 11:26:21 +00:00
libgcc.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
libgcov.c {src,util}: Use NULL instead of 0 for pointer 2018-06-11 08:52:08 +00:00
list.c lib/devicetree: Integrate flattened devicetree support 2018-04-30 09:33:32 +00:00
lzma.c lib/lzma: Fix out-of-bounds read 2020-02-25 10:13:51 +00:00
lzmadecode.c src/{include,arch,cpu,lib}: Add missing 'include <types.h>' 2019-05-29 20:27:18 +00:00
lzmadecode.h
Makefile.inc src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
malloc.c lib/malloc: Implement a simple free() only for last malloc() 2020-01-02 18:22:53 +00:00
memchr.c
memcmp.c
memcpy.c
memmove.c
memrange.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
memset.c
nhlt.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
primitive_memtest.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
prog_loaders.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
prog_ops.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
program.ld src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
ramdetect.c lib: ramdetect: Register exception handlers for ARMv8 2019-08-26 07:14:03 +00:00
ramtest.c Move calls to quick_ram_check() before CBMEM init 2019-03-27 08:26:16 +00:00
reg_script.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
region_file.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
reset.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
rmodule.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
rmodule.ld src: Fix typo 2018-08-10 21:25:53 +00:00
romstage_handoff.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
rtc.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
selfboot.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
spd_bin.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
stack.c symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
string.c string: implement strspn, strcspn, atol 2019-08-10 01:32:19 +00:00
thread.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
timer.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
timer_queue.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
timestamp.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
trace.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
ubsan.c complier.h: add __noreturn and use it in code base 2018-09-10 15:02:51 +00:00
uuid.c lib/uuid: Add UUID parsing function 2019-11-01 11:38:22 +00:00
version.c ACPI: Correct asl_compiler_revision value 2019-02-21 19:07:31 +00:00
wrdd.c src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00