Pratikkumar V Prajapati has uploaded this change for review. ( https://review.coreboot.org/21245
Change subject: soc/intel/skylake: Implement PRMRR get base and mask APIs ......................................................................
soc/intel/skylake: Implement PRMRR get base and mask APIs
Implement following APIs for SKL/KBL - soc_get_uncore_prmmr_base() - soc_get_uncore_prmmr_mask()
Change-Id: I880d3d88138809cdf030507877079cbea52a0d97 Signed-off-by: Pratik Prajapati pratikkumar.v.prajapati@intel.com --- M src/soc/intel/skylake/systemagent.c 1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/21245/1
diff --git a/src/soc/intel/skylake/systemagent.c b/src/soc/intel/skylake/systemagent.c index 6149fa2..c1733df 100644 --- a/src/soc/intel/skylake/systemagent.c +++ b/src/soc/intel/skylake/systemagent.c @@ -21,6 +21,7 @@ #include <intelblocks/systemagent.h> #include <soc/cpu.h> #include <soc/iomap.h> +#include <soc/msr.h> #include <soc/systemagent.h>
/* @@ -62,3 +63,15 @@ mdelay(1); set_power_limits(28); } + +int soc_get_uncore_prmmr_base(msr_t *prmrr_base) +{ + *prmrr_base = rdmsr(UNCORE_PRMRR_PHYS_BASE_MSR); + return 1; +} + +int soc_get_uncore_prmmr_mask(msr_t *prmrr_mask) +{ + *prmrr_mask = rdmsr(UNCORE_PRMRR_PHYS_MASK_MSR); + return 1; +}