coreboot/src
Eric Lai 5b89bf4666 lib: Introduce fw_config_get_field
In some cases, fw_config is used for ids like sar_id, sku_id etc.
To avoid calling fw_config_probe over and over, hence provide the
method to return the value then caller can use the switch case
instead of if else statement.

TEST=get fw_config field value on nivviks.
[INFO ]  fw_config get field name=DB_USB, mask=0x3, shift=0, value =0x1

Signed-off-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Change-Id: Iae89668e8fe7322d5a4dcbf88a97d7ed36619af5
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70745
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Tim Wawrzynczak <inforichland@gmail.com>
2022-12-17 20:43:16 +00:00
..
acpi acpi/acpi.c: Add a method to generate IOAPIC DMAR entries from hw 2022-12-06 17:44:20 +00:00
arch Set x86_64 as supported architecture for clang 2022-12-16 17:21:17 +00:00
commonlib mem_chip_info: Fix potential overflow 2022-12-15 02:53:45 +00:00
console console/post.c: Sort includes 2022-10-27 15:46:39 +00:00
cpu cpu/intel: Fix clearing MTRR for clang 64bit 2022-12-16 17:20:32 +00:00
device device/Kconfig: bump desktop framebuffer max height/width to support 4K 2022-12-17 18:11:04 +00:00
drivers drivers/generic/nau8315: Change method for HID assignment 2022-12-17 20:29:15 +00:00
ec ec/kontron/it8516e/acpi: Replace Store(a,b) with ASL 2.0 syntax 2022-12-16 00:59:41 +00:00
include lib: Introduce fw_config_get_field 2022-12-17 20:43:16 +00:00
lib lib: Introduce fw_config_get_field 2022-12-17 20:43:16 +00:00
mainboard mb/siemens/mc_ehl3/devicetree.cb: Adapt PCIe root port settings 2022-12-17 20:39:44 +00:00
northbridge nb/intel/haswell: Add native raminit scaffolding 2022-12-16 17:19:07 +00:00
sbom Add SBOM (Software Bill of Materials) Generation 2022-08-22 14:48:46 +00:00
security security/vboot: Update vbnv_init signature 2022-12-16 01:23:03 +00:00
soc soc/intel/alderlake: Select SOC_INTEL_CSE_SEND_EOP_LATE for ADL-N 2022-12-17 20:33:52 +00:00
southbridge sb/intel/lynxpoint: Add native PCH init 2022-12-16 17:15:53 +00:00
superio sio/winbond/w83627hf/acpi: Replace Store(a,b) with ASL 2.0 syntax 2022-12-14 00:53:57 +00:00
vendorcode vc/intel/fsp/mtl: Update header files from 2404_00 to 2431_80 2022-12-14 06:47:47 +00:00
Kconfig build: List all Kconfigs in CBFS config file, compress it 2022-11-18 17:19:44 +00:00