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 Documentation: Add static CSS file to fix tables 2018-05-14 17:21:37 +00:00
acpi Docs: Revert false MyST Parser toctree conversions 2024-09-09 23:26:42 +00:00
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 Docs: Convert bare URLs into hyperlinks 2024-12-14 06:23:13 +00:00
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 Docs: Address remaining documents not included in toctrees 2024-10-27 23:50:29 +00:00
sbom Documentation: Update Makefile .inc references to .mk 2024-01-26 13:08:30 +00:00
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 Docs: Fix broken header references 2024-08-21 16:18:23 +00:00
technotes Docs: Convert bare URLs into hyperlinks 2024-12-14 06:23:13 +00:00
tutorial Documentation/tutorial/managing_local_additions.md: Add symlink info 2024-12-03 14:06:46 +00:00
util Documentation/util/intelp2m: Add info for developers 2025-04-14 13:52:13 +00:00
vendorcode Docs: Replace Recommonmark with MyST Parser 2024-03-21 16:11:56 +00:00
.gitignore .gitignore: Split into subdirectory files 2020-10-30 07:05:27 +00:00
.mdl_style.rb Documentation: Add mdl style file 2022-07-14 12:38:56 +00:00
acronyms.md Documentation: Fix invalid Wikipedia link 2025-01-08 02:44:22 +00:00
AMD-S3.txt Documentation: change coreboot to lowercase 2017-06-12 04:06:40 +02:00
beginverbatim.tex Rename documentation -> Documentation 2015-05-06 19:09:47 +02:00
cbfs.txt Fix typos involving "the the" 2018-12-18 13:24:28 +00:00
codeflow.svg Documentation: Remove whitespace before tab 2018-06-04 11:48:23 +00:00
conf.py Documentation: Remove ditaa support 2024-10-27 23:51:03 +00:00
COPYING Documentation/COPYING: Remove trailing whitespace 2018-04-27 09:10:20 +00:00
coreboot_logo.bmp Documentation: Add coreboot logo in BMP format for payload use 2022-07-27 13:58:27 +00:00
coreboot_logo.png Rename documentation -> Documentation 2015-05-06 19:09:47 +02:00
coreboot_logo.svg Documentation: Add the coreboot logo in SVG format 2022-07-21 10:35:16 +00:00
corebootBuildingGuide.tex Documentation: Adjust master -> main branch 2023-09-15 18:42:46 +00:00
distributions.md doc/distributions: Update NovaCustom domain 2024-06-06 23:11:34 +00:00
documentation_license.md Documentation: Move documentation license to main menu 2022-03-24 15:47:11 +00:00
endverbatim.tex Rename documentation -> Documentation 2015-05-06 19:09:47 +02:00
external_docs.md Docs: Revert false MyST Parser toctree conversions 2024-09-09 23:26:42 +00:00
gcov.txt Documentation: Fix spelling errors 2021-10-05 18:06:24 +00:00
hypertransport.svg Rename documentation -> Documentation 2015-05-06 19:09:47 +02:00
index.md Documentation/internals: Add devicetree documentation 2025-04-06 20:37:34 +00:00
Makefile Docs: Turn warnings into errors 2024-10-27 23:51:11 +00:00
Makefile.sphinx Documentation: Fix make rule for sphinx-autobuild 2025-01-22 20:38:26 +00:00
payloads.md Documentation: Get rid of trailing whitespaces 2022-10-13 08:01:01 +00:00
POSTCODES post_code: add post code for video initialization failure 2019-05-22 17:45:11 +00:00
util.md util/mediatek: Add check-pi-img.py 2025-04-14 07:35:00 +00:00