cpu,nb/amd/pi/00730F01: dynamically generate CPU devices
commitc391bff443c7fc5db0fc8c470952d5a3387b1166
authorFelix Held <felix-coreboot@felixheld.de>
Thu, 16 Feb 2023 18:38:49 +0000 (16 19:38 +0100)
committerFelix Held <felix-coreboot@felixheld.de>
Sat, 13 May 2023 00:14:32 +0000 (13 00:14 +0000)
tree2069285b3ac96c148e0721aefe75becacc6bd59d
parent0a2c9d7913978dfc82f14e26dded7fa1b89f47d1
cpu,nb/amd/pi/00730F01: dynamically generate CPU devices

Instead of having the maximum number of possible CPU objects defined in
the DSDT, dynamically generate the number of needed CPU devices in the
SSDT like it's done on all other x86 platforms in coreboot.

TEST=APU2 still boots and Linux doesn't show any ACPI errors with this
patch applied and it prints "ACPI: \_SB_.P000: Found 2 idle states".

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Id6f057ad130a27b371722fa66ce0a982afc43c6c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73073
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
src/cpu/amd/pi/00730F01/Kconfig
src/cpu/amd/pi/00730F01/acpi/cpu.asl [deleted file]
src/mainboard/pcengines/apu2/dsdt.asl
src/northbridge/amd/pi/00730F01/northbridge.c