]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers/cpu: Add generic armv8 cpu driver
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Wed, 23 Oct 2024 13:20:01 +0000 (15:20 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 27 Oct 2024 23:24:13 +0000 (17:24 -0600)
commit83a2f4a8d2999cbf873a98b47d75436172946a15
tree231a0a7feb25ec4dc699ec17c5f6383494007265
parent1289c7ccba18121536626cc567f09802bec1dad5
drivers/cpu: Add generic armv8 cpu driver

Add a generic driver that binds to armv8 CPU nodes. The generic driver allows
- to enumerate CPUs present in a system, even when no other driver binds it
- generates ACPI SSDT code for each CPU
- Fill the ACPI MADT table (implemented in a follow up patch)

The newly introduced code could also be reused on other CPU drivers that are
compatible with armv8.

TEST: Booted on QEMU sbsa and verify the driver binds to CPU nodes.
      Confirmed with FWTS that all ACPI processor devices are present.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
drivers/cpu/Kconfig
drivers/cpu/Makefile
drivers/cpu/armv8_cpu.c [new file with mode: 0644]
drivers/cpu/armv8_cpu.h [new file with mode: 0644]