coreboot/src/lib
Sean Rhodes f8494fbeae lib: Add devtree_update bootstate hook
Provide a weak devtree_update() hook and invoke it early in ramstage
at BS_PRE_DEVICE. Mainboards can override devtree_update() to
enable/disable devices at runtime based on CMOS/NVRAM settings.

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Change-Id: Ic84ddb25e1da050543c230ea457042b8a8a3061f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/91250
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
2026-02-28 20:47:37 +00:00
..
fonts lib: Implement anti-aliased text rendering 2026-02-13 11:32:22 +00:00
gnat
asan.c
b64_decode.c
bmp_logo.c lib: Add support for off-mode charging splash screen 2026-02-10 02:48:03 +00:00
boot_device.c
bootblock.c tree: Use boolean for s3resume 2025-10-23 13:34:15 +00:00
bootmem.c lib/bootmem: Replace conditional return with assert in bootmem_add_range_from 2026-01-05 03:09:45 +00:00
bootmode.c lib/bootmode: Enforce display init requirement for vboot 2025-04-12 17:34:09 +00:00
bootsplash.c lib/jpeg: return string (not int) error messages 2024-09-18 21:51:40 +00:00
cb.ads
cbfs.c CBFS verification: support Top Swap redundancy 2025-12-20 17:39:43 +00:00
cbfs_master_header.c treewide: Assume FMAP_SECTION_FLASH_START = 0 2025-04-18 14:57:05 +00:00
cbmem_common.c src/lib/cbmem_common: Delete a space(' ') in the source code 2025-08-28 20:13:34 +00:00
cbmem_console.c
cbmem_stage_cache.c
coreboot_table.c tests/lib/coreboot_table-test.c: Add lb_string_platform_blob_version 2026-01-23 21:38:33 +00:00
crc_byte.c
decompressor.c
delay.c
devtree_update.c lib: Add devtree_update bootstate hook 2026-02-28 20:47:37 +00:00
dimm_info_util.c lib/dimm_info_util.c: Handle 16-bit memory bus extension for ECC 2026-02-19 19:20:28 +00:00
dp_aux.c
edid.c lib/edid: Support DisplayID 2.0 extension 2025-03-12 12:45:39 +00:00
edid_displayid.h lib/edid: Support DisplayID 2.0 extension 2025-03-12 12:45:39 +00:00
espi_debug.c
ext_stage_cache.c ext_stage_cache: Make sure variables are initialized 2024-08-30 07:35:10 +00:00
fallback_boot.c
fit.c lib/fit: Switch to commonlib/list public API 2026-02-01 02:25:58 +00:00
fit_payload.c cbmem.h: Change return type of cbmem_get_region 2024-08-29 13:58:21 +00:00
fmap.c
framebuffer_info.c lib: Rename fill_lb_framebuffer to get_lb_framebuffer 2026-01-14 04:17:14 +00:00
fw_config.c src/lib: use RO CBFS file as fw_config source 2025-03-26 16:37:25 +00:00
gcc.c
gcov-glue.c
gcov-io.c
gcov-io.h
gcov-iov.h
gpio.c
halt.c
hardwaremain.c {commonlib, lib}: Add timestamp for early chip initialization 2025-04-08 07:50:18 +00:00
hexdump.c
hexstrtobin.c
hw-time-timer.adb
identity.c
imd.c
imd_cbmem.c tree: Use boolean for s3resume 2025-10-23 13:34:15 +00:00
io.c soc/amd/common/psp_verstage: Remove arch/io.h 2025-04-02 16:03:34 +00:00
jpeg.c lib/jpeg: return string (not int) error messages 2024-09-18 21:51:40 +00:00
jpeg.h lib/jpeg: return string (not int) error messages 2024-09-18 21:51:40 +00:00
Kconfig lib: Add support for text rendering on splash screen 2026-02-13 11:27:33 +00:00
Kconfig.cbfs_verification
libgcc.c
libgcov.c
lzma.c
lzmadecode.c lib/lzmadecode: Increase decoding speed by 30% 2025-09-09 14:40:45 +00:00
lzmadecode.h
Makefile.mk lib: Add devtree_update bootstate hook 2026-02-28 20:47:37 +00:00
malloc.c
master_header_pointer.c treewide: Assume FMAP_SECTION_FLASH_START = 0 2025-04-18 14:57:05 +00:00
memchr.c
memcmp.c
memcpy.c
memmove.c
memrange.c
memset.c
metadata_hash.c
nhlt.c
primitive_memtest.c
prog_loaders.c
prog_ops.c
program.ld drivers/option: Add forms in cbtables 2024-12-18 18:16:51 +00:00
ramdetect.c
ramtest.c
reg_script.c
region_file.c
render_bmp.c lib: Integrate splash text rendering into low-battery/off-mode boot 2026-02-13 11:27:46 +00:00
render_bmp.h {lib, drivers/intel}: Move BMP rendering logic out of SoC code 2025-07-23 17:11:10 +00:00
render_text.c lib: Implement resolution-based text scaling 2026-02-13 11:32:28 +00:00
reset.c
rmodule.c
rmodule.ld
romstage_handoff.c tree: Use boolean for s3resume 2025-10-23 13:34:15 +00:00
rtc.c
selfboot.c commonlib/bsd: Add zstd support 2025-12-20 17:36:01 +00:00
smbios.c src/lib/smbios: Advertise UEFI support for EDK2 2026-01-23 09:23:42 +00:00
smbios_defaults.c Kconfig: Rework SYSTEM_TYPE_XX to better map to SMBIOS 2025-02-19 16:45:42 +00:00
spd_bin.c lib/spd_bin: Add support for DDR5 SPD parsing 2026-02-17 20:46:41 +00:00
spd_cache.c soc/common/smbus: Support reading SPD5 hubs for DDR5 2025-08-02 01:47:44 +00:00
stack.c
string.c
thread.c tree: Fix cast an object of type 'nullptr_t' to 'uintptr_t' error 2024-10-29 01:41:41 +00:00
timer.c
timer_queue.c
timestamp.c lib/timestamp: Init TSC frequency early on x86 2025-09-02 19:12:10 +00:00
ubsan.c lib: Replace 'unsigned long int' by 'unsigned long' 2025-01-12 04:51:51 +00:00
uuid.c
ux_locales.c lib: Add low battery UX locale message 2025-02-15 18:58:48 +00:00
version.c
vga_gfx.c lib/vga_gfx: Fix left-up and right-up orientations 2025-10-31 21:04:39 +00:00
wrdd.c