diff options
author | Naresh Solanki <naresh.solanki@9elements.com> | 2023-12-19 01:47:44 +0530 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2024-10-08 08:58:34 +0000 |
commit | 5610ca3aaa1c8dc480801e6c3f5125780b641fb3 (patch) | |
tree | 57077ad390d18197b4157be75f5192f5880c4454 /src | |
parent | 6bd773392b6ffce530c66ff64a22638a5265f202 (diff) |
acpi_gic: Add helper for platform gicc
Add helper function to allow platform to fill gicc parameters for use in
ACPI table.
Change-Id: Ibd4c52a5482707fae8aa1b8b21fdc6bb5f4b45c2
Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79973
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/acpi/acpi_gic.c | 6 | ||||
-rw-r--r-- | src/include/acpi/acpi.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/acpi/acpi_gic.c b/src/acpi/acpi_gic.c index 589832793d..5b0f71db0b 100644 --- a/src/acpi/acpi_gic.c +++ b/src/acpi/acpi_gic.c @@ -3,6 +3,10 @@ #include <acpi/acpi.h> #include <device/device.h> +__weak void platform_fill_gicc(acpi_madt_gicc_t *gicc) +{ +} + static int acpi_create_madt_one_gicc_v3(acpi_madt_gicc_t *gicc, u32 acpi_uid, u32 pi_gsiv, uint32_t vgic_mi, uint64_t mpidr) { @@ -30,6 +34,8 @@ static int acpi_create_madt_one_gicc_v3(acpi_madt_gicc_t *gicc, u32 acpi_uid, u3 */ gicc->mpidr = mpidr & 0xff00fffffful; + platform_fill_gicc(gicc); + return gicc->length; } diff --git a/src/include/acpi/acpi.h b/src/include/acpi/acpi.h index a36e65c9d9..604c60dad0 100644 --- a/src/include/acpi/acpi.h +++ b/src/include/acpi/acpi.h @@ -1780,6 +1780,7 @@ unsigned long acpi_create_madt_one_lapic(unsigned long current, u32 cpu, u32 api unsigned long acpi_create_madt_lapic_nmis(unsigned long current); +void platform_fill_gicc(acpi_madt_gicc_t *gicc); uintptr_t platform_get_gicd_base(void); uintptr_t platform_get_gicr_base(void); int platform_get_gic_its(uintptr_t **base); |