[coreboot-gerrit] Change in coreboot[master]: soc/intel/skylake: Implement PRMRR get base and mask APIs

Pratikkumar V Prajapati (Code Review) gerrit at coreboot.org
Tue Aug 29 01:33:44 CEST 2017


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 at 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;
+}

-- 
To view, visit https://review.coreboot.org/21245
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I880d3d88138809cdf030507877079cbea52a0d97
Gerrit-Change-Number: 21245
Gerrit-PatchSet: 1
Gerrit-Owner: Pratikkumar V Prajapati <pratikkumar.v.prajapati at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170828/3a954683/attachment.html>


More information about the coreboot-gerrit mailing list