[PATCH v4 28/35] arm: bcm283x: Generate ACPI tables

Simon Glass sjg at chromium.org
Thu Sep 19 16:11:52 CEST 2024


On Wed, 18 Sept 2024 at 17:22, Patrick Rudolph
<patrick.rudolph at 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.rudolph at 9elements.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Matthias Brugger <mbrugger at suse.com>
> Cc: Peter Robinson <pbrobinson at gmail.com>
> Cc: Tom Rini <trini at 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 <sjg at chromium.org>


More information about the U-Boot mailing list