On Wed, 18 Sept 2024 at 17:22, Patrick Rudolph <patrick.rudo...@9elements.com> wrote: > > Generate SoC specific ACPI tables for BCM2711: > - FADT > - PPTT > - GTDT > > Board specific tables like DSDT and SSDT are added in a separate patch. > > MADT is already properly generated from the FDT. > > When ACPI is enabled for a different SoC compliation will fail by > design, indicating the required functions that needs to be implemented. > When ACPI is not enabled the added code does nothing, keeping existing > behaviour. > > TEST: Booted on RPi4 with only ACPI enabled, providing no FDT to the OS. > > Signed-off-by: Patrick Rudolph <patrick.rudo...@9elements.com> > Cc: Simon Glass <s...@chromium.org> > Cc: Matthias Brugger <mbrug...@suse.com> > Cc: Peter Robinson <pbrobin...@gmail.com> > Cc: Tom Rini <tr...@konsulko.com> > --- > Changelog v2: > - Drop duplicated code to generate ACPI tables. Is now part of efi loader. > Changelog v4: > - Drop acpi_fill_madt() as it's now generated by drivers > --- > arch/arm/mach-bcm283x/Makefile | 4 + > arch/arm/mach-bcm283x/bcm2711_acpi.c | 128 +++++++++++++++++++++++++++ > 2 files changed, 132 insertions(+) > create mode 100644 arch/arm/mach-bcm283x/bcm2711_acpi.c
Reviewed-by: Simon Glass <s...@chromium.org>