soc/amd/glinda: introduce and use pstate_msr bitfield struct
commita25117d83f2929c4c51ec8afa0798f015cdaa3db
authorFelix Held <felix-coreboot@felixheld.de>
Thu, 9 Mar 2023 23:04:46 +0000 (10 00:04 +0100)
committerFelix Held <felix-coreboot@felixheld.de>
Thu, 23 Mar 2023 23:07:51 +0000 (23 23:07 +0000)
treed0098e5e9a7b8be28a17907656bf92e0f26e1903
parentf0b6255446a44f902da88b0f137652753d831fa4
soc/amd/glinda: introduce and use pstate_msr bitfield struct

Add the pstate_msr union of a bitfield struct and a raw uint64_t to
allow easier access of the bitfields of the P state MSRs which will be
implemented in a following patch. PPR #57254 Rev 1.52 was used as a
reference. This patch adds and uses the cpu_vid_8 bit which is the 9th
bit of the voltage ID specified in the SVI3 spec. The way the CPU
frequency is encoded in the PSTATE MSR has changed compared to Phoenix,
so also update the comment in the SoC's Kconfig file that the selected
SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H is likely incompatible which will be
addressed in the future.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I3d1878ce4d9bc62ac597e6f71ef9630491628698
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73924
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
src/soc/amd/glinda/Kconfig
src/soc/amd/glinda/acpi.c
src/soc/amd/glinda/include/soc/msr.h