[coreboot-gerrit] Change in coreboot[master]: nb//intel/gm45: Use macro instead of magic number

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Wed Oct 24 16:27:57 CEST 2018


Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/29254


Change subject: nb//intel/gm45: Use macro instead of magic number
......................................................................

nb//intel/gm45: Use macro instead of magic number

Change-Id: I5caa6163e5471feda170600c21320821f4286c65
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/northbridge/intel/gm45/pm.c
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/29254/1

diff --git a/src/northbridge/intel/gm45/pm.c b/src/northbridge/intel/gm45/pm.c
index 7a3b498..bc5be32 100644
--- a/src/northbridge/intel/gm45/pm.c
+++ b/src/northbridge/intel/gm45/pm.c
@@ -22,6 +22,7 @@
 #include <device/pnp_def.h>
 #include <console/console.h>
 #include <cpu/x86/msr.h>
+#include <cpu/intel/speedstep.h>
 
 #include "gm45.h"
 
@@ -268,7 +269,7 @@
 		MCHBAR32(0x94) |= 3 << 22;
 	}
 
-	const int cpu_supports_super_lfm = rdmsr(0xee).lo & (1 << 27);
+	const int cpu_supports_super_lfm = rdmsr(MSR_EXTENDED_CONFIG).lo & (1 << 27);
 	if ((stepping >= STEPPING_B0) && cpu_supports_super_lfm) {
 		MCHBAR16(CLKCFG_MCHBAR) &= ~(1 << 7);
 		MCHBAR16(CLKCFG_MCHBAR) |= 1 << 14;

-- 
To view, visit https://review.coreboot.org/29254
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5caa6163e5471feda170600c21320821f4286c65
Gerrit-Change-Number: 29254
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181024/f05495c3/attachment-0001.html>


More information about the coreboot-gerrit mailing list