acpi,Makefile: Add preload_acpi_dsdt
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 <rrangel@chromium.org> Change-Id: Ibf69ecb947811a2eec861018e3ba5f858155f1c3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59504 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
parent
a19d6253f8
commit
6b446b991b
|
@ -280,6 +280,9 @@ define asl_template
|
||||||
$(CONFIG_CBFS_PREFIX)/$(1).aml-file = $(obj)/$(1).aml
|
$(CONFIG_CBFS_PREFIX)/$(1).aml-file = $(obj)/$(1).aml
|
||||||
$(CONFIG_CBFS_PREFIX)/$(1).aml-type = raw
|
$(CONFIG_CBFS_PREFIX)/$(1).aml-type = raw
|
||||||
$(CONFIG_CBFS_PREFIX)/$(1).aml-compression = none
|
$(CONFIG_CBFS_PREFIX)/$(1).aml-compression = none
|
||||||
|
ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA),y)
|
||||||
|
$(CONFIG_CBFS_PREFIX)/$(1).aml-align = 64
|
||||||
|
endif
|
||||||
cbfs-files-$(if $(2),$(2),y) += $(CONFIG_CBFS_PREFIX)/$(1).aml
|
cbfs-files-$(if $(2),$(2),y) += $(CONFIG_CBFS_PREFIX)/$(1).aml
|
||||||
-include $(obj)/$(1).d
|
-include $(obj)/$(1).d
|
||||||
$(obj)/$(1).aml: $(src)/mainboard/$(MAINBOARDDIR)/$(1).asl $(obj)/config.h
|
$(obj)/$(1).aml: $(src)/mainboard/$(MAINBOARDDIR)/$(1).asl $(obj)/config.h
|
||||||
|
|
|
@ -1577,6 +1577,17 @@ unsigned long __weak fw_cfg_acpi_tables(unsigned long start)
|
||||||
return 0;
|
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 write_acpi_tables(unsigned long start)
|
||||||
{
|
{
|
||||||
unsigned long current;
|
unsigned long current;
|
||||||
|
|
|
@ -1215,6 +1215,7 @@ void acpi_create_einj(acpi_einj_t *einj, uintptr_t addr, u8 actions);
|
||||||
unsigned long fw_cfg_acpi_tables(unsigned long start);
|
unsigned long fw_cfg_acpi_tables(unsigned long start);
|
||||||
|
|
||||||
/* These are implemented by the target port or north/southbridge. */
|
/* These are implemented by the target port or north/southbridge. */
|
||||||
|
void preload_acpi_dsdt(void);
|
||||||
unsigned long write_acpi_tables(unsigned long addr);
|
unsigned long write_acpi_tables(unsigned long addr);
|
||||||
unsigned long acpi_fill_madt(unsigned long current);
|
unsigned long acpi_fill_madt(unsigned long current);
|
||||||
unsigned long acpi_fill_ivrs_ioapic(acpi_ivrs_t *ivrs, unsigned long current);
|
unsigned long acpi_fill_ivrs_ioapic(acpi_ivrs_t *ivrs, unsigned long current);
|
||||||
|
|
Loading…
Reference in New Issue