coreboot/Documentation
Matt DeVillier 786ac14d48 drivers/option/cfr: Add optional override table for default values
Add a mechanism for mainboards to override default values of CFR
objects defined in SoC or common code without duplicating object
metadata.

Mainboards can now declare a simple override table mapping option
names to new default values:

  const struct cfr_default_override mb_cfr_overrides[] = {
      CFR_OVERRIDE_BOOL("s0ix_enable", false),
      CFR_OVERRIDE_ENUM("pciexp_aspm", ASPM_DISABLE),
      CFR_OVERRIDE_END
  };

The CFR backend checks this table when writing options and uses the
override value if one exists. All other metadata (name, help text,
enum values, flags) comes from the original object.

Change-Id: Ifb3da90d605f2799bf0207ff58d69bee3415ccc2
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/89933
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-11-10 13:28:02 +00:00
..
_static
acpi
arch Documentation: Improve x86_64 2025-02-14 17:11:04 +00:00
community doc/community: Add a section on cross-project collaboration 2025-04-05 14:40:40 +00:00
contributing Doc/contributing: Add clarification on how to reference other commits 2025-08-19 20:57:21 +00:00
drivers drivers/option/cfr: Add optional override table for default values 2025-11-10 13:28:02 +00:00
getting_started Docs: Use markdown autolinks instead of Sphinx doc directive 2025-08-02 16:47:10 +00:00
gfx Doc/gfx/libgfxinit.md: Fix file names in source code references 2025-07-14 14:38:41 +00:00
infrastructure
internals Documentation: Add Device Operations 2025-05-09 14:15:15 +00:00
lib Documentation/lib: Update Timestamp documentation 2025-07-04 13:18:33 +00:00
mainboard Documentation/mb/lenovo: Adjust docs for Thinkpad T470s/T580 2025-10-29 16:53:34 +00:00
northbridge Docs: Use markdown autolinks instead of Sphinx doc directive 2025-08-02 16:47:10 +00:00
releases Documentation: Finalize 25.09 release notes 2025-10-02 16:45:33 +00:00
RFC
sbom
security docs/security/vboot: Update supported board list 2025-09-26 00:32:49 +00:00
soc Documentation/FIT: reference archived copy of Intel TXT lab handout 2025-10-10 17:35:44 +00:00
superio
technotes
tutorial
util Documentation/util/intelp2m: Add info for developers 2025-04-14 13:52:13 +00:00
vendorcode
.gitignore
.mdl_style.rb
acronyms.md
AMD-S3.txt
beginverbatim.tex
cbfs.txt
codeflow.svg
conf.py
COPYING
coreboot_logo.bmp
coreboot_logo.png
coreboot_logo.svg
corebootBuildingGuide.tex
distributions.md
documentation_license.md
endverbatim.tex
external_docs.md
gcov.txt
hypertransport.svg
index.md Documentation/internals: Add devicetree documentation 2025-04-06 20:37:34 +00:00
Makefile
Makefile.sphinx Documentation: Fix make rule for sphinx-autobuild 2025-01-22 20:38:26 +00:00
payloads.md
POSTCODES
util.md util/mediatek: Add check-pi-img.py 2025-04-14 07:35:00 +00:00