
On Wed, 11 Sept 2024 at 00:25, Patrick Rudolph patrick.rudolph@9elements.com wrote:
Write MADT in common code and let the SoC fill out the body by calling acpi_fill_madt() which must be implemented at SoC level.
Signed-off-by: Patrick Rudolph patrick.rudolph@9elements.com Cc: Simon Glass sjg@chromium.org Cc: Bin Meng bmeng.cn@gmail.com
Changelog v3:
- Pass ACPI context to acpi_fill_madt
arch/sandbox/lib/Makefile | 9 +++--- arch/sandbox/lib/acpi_table.c | 7 +++++ arch/x86/cpu/intel_common/acpi.c | 21 +++++++++----- arch/x86/cpu/tangier/acpi.c | 7 ++++- arch/x86/include/asm/acpi_table.h | 3 +- arch/x86/lib/acpi_table.c | 47 ++++++------------------------- include/acpi/acpi_table.h | 11 ++++++++ lib/acpi/acpi_table.c | 31 ++++++++++++++++++++ 8 files changed, 84 insertions(+), 52 deletions(-) create mode 100644 arch/sandbox/lib/acpi_table.c
Reviewed-by: Simon Glass sjg@chromium.org