soc/amd/cezanne,common: factor out CPPC code to common AMD SoC code
commit8f7f4bf87a238dd046a376804b9e53162092f601
authorFelix Held <felix-coreboot@felixheld.de>
Wed, 3 Aug 2022 20:10:05 +0000 (3 22:10 +0200)
committerMartin Roth <martin.roth@amd.corp-partner.google.com>
Fri, 12 Aug 2022 21:52:12 +0000 (12 21:52 +0000)
tree2c31aa38216a8fa376c8203a5435eda08138704f
parent6cf0e4a3536750cb1cd9ecec56463731db647fe5
soc/amd/cezanne,common: factor out CPPC code to common AMD SoC code

The Cezanne CPPC ACPI table generation code also applies to Sabrina, so
move it to the common AMD SoC code directory so that it can be used for
Sabrina too.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I5ce082a27429948f8af7f55944a1062ba03155da
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66400
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
src/soc/amd/cezanne/Kconfig
src/soc/amd/cezanne/Makefile.inc
src/soc/amd/cezanne/acpi.c
src/soc/amd/common/block/acpi/Kconfig
src/soc/amd/common/block/acpi/Makefile.inc
src/soc/amd/common/block/acpi/cppc.c [moved from src/soc/amd/cezanne/cppc.c with 98% similarity]
src/soc/amd/common/block/include/amdblocks/cppc.h [moved from src/soc/amd/cezanne/include/soc/cppc.h with 100% similarity]