diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-02-27 23:56:39 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-02-28 23:45:04 +0000 |
commit | 0a466040e0dc3351ac819ba00146f284e5f70f05 (patch) | |
tree | ac3ce1a7d8f14775d323acd05999d417f56d53ff /src/drivers/i2c/max98927/chip.h | |
parent | 54c80e1df16d356dc73030903daece5fcb50e7bc (diff) |
soc/amd: introduce and use PSTATE_MSR macro
Instead of adding the P-state number to the PSTATE_0_MSR number to get
the P-state MSR number for the rdmsr call, provide a macro that directly
calculates the MSR number for a given power state. Also drop the unused
PSTATE_[1..4]_MSR definitions which also didn't cover all P-state MSRs
available in the hardware.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: If85acf556efe82c209e1608e56c05f7a2a748403
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73323
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/drivers/i2c/max98927/chip.h')
0 files changed, 0 insertions, 0 deletions