Marc Jones has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48246 )
Change subject: soc/intel/common/block/acpi: Allow additional soc overrides ......................................................................
soc/intel/common/block/acpi: Allow additional soc overrides
Make MADT generation weak so that a soc can set a custom MADT. Remove static and add prototypes for functions needed by the soc override.
Change-Id: Ic818a634e4912d88ef93971deb4da5ab708c9020 Signed-off-by: Marc Jones marcjones@sysproconsulting.com --- M src/soc/intel/common/block/acpi/acpi.c M src/soc/intel/common/block/include/intelblocks/acpi.h 2 files changed, 7 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/46/48246/1
diff --git a/src/soc/intel/common/block/acpi/acpi.c b/src/soc/intel/common/block/acpi/acpi.c index f0ff898..6c389fa 100644 --- a/src/soc/intel/common/block/acpi/acpi.c +++ b/src/soc/intel/common/block/acpi/acpi.c @@ -33,7 +33,7 @@ return current; }
-static int acpi_sci_irq(void) +int acpi_sci_irq(void) { int sci_irq = 9; uint32_t scis; @@ -82,7 +82,7 @@ return current; }
-unsigned long acpi_fill_madt(unsigned long current) +__weak unsigned long acpi_fill_madt(unsigned long current) { /* Local APICs */ current = acpi_create_madt_lapics(current); @@ -235,7 +235,7 @@ } }
-static int calculate_power(int tdp, int p1_ratio, int ratio) +int calculate_power(int tdp, int p1_ratio, int ratio) { u32 m; u32 power; diff --git a/src/soc/intel/common/block/include/intelblocks/acpi.h b/src/soc/intel/common/block/include/intelblocks/acpi.h index 21664c8..663214d 100644 --- a/src/soc/intel/common/block/include/intelblocks/acpi.h +++ b/src/soc/intel/common/block/include/intelblocks/acpi.h @@ -71,4 +71,8 @@ */ void soc_power_states_generation(int core_id, int cores_per_package);
+int acpi_sci_irq(void); + +int calculate_power(int tdp, int p1_ratio, int ratio); + #endif /* _SOC_INTEL_COMMON_BLOCK_ACPI_H_ */