From 6b446b991b00c44902b70d86c75b23a8f93d510b Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Fri, 19 Nov 2021 11:38:35 -0700 Subject: acpi,Makefile: Add preload_acpi_dsdt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will allow us to preload the dsdt.aml file. BUG=b:179699789 TEST=Build guybrush | 80 - write tables | 1.564 | 1.08 Δ( -0.48, -0.03%) | | 85 - finalize chips | 15.483 | 13.543 Δ( -1.94, -0.14%) | Signed-off-by: Raul E Rangel Change-Id: Ibf69ecb947811a2eec861018e3ba5f858155f1c3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59504 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/acpi/acpi.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/acpi') diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c index 78c3fd3b90..3bf57c6ff2 100644 --- a/src/acpi/acpi.c +++ b/src/acpi/acpi.c @@ -1577,6 +1577,17 @@ unsigned long __weak fw_cfg_acpi_tables(unsigned long start) return 0; } +void preload_acpi_dsdt(void) +{ + const char *file = CONFIG_CBFS_PREFIX "/dsdt.aml"; + + if (!CONFIG(CBFS_PRELOAD)) + return; + + printk(BIOS_DEBUG, "Preloading %s\n", file); + cbfs_preload(file); +} + unsigned long write_acpi_tables(unsigned long start) { unsigned long current; -- cgit v1.2.3