nb/intel/gm45: Use macro instead of magic number
Change-Id: I5caa6163e5471feda170600c21320821f4286c65 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/29254 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
		
				
					committed by
					
						 Patrick Georgi
						Patrick Georgi
					
				
			
			
				
	
			
			
			
						parent
						
							523d669153
						
					
				
				
					commit
					f33e835a06
				
			| @@ -20,8 +20,8 @@ | ||||
| #include <arch/io.h> | ||||
| #include <device/pci_def.h> | ||||
| #include <device/pnp_def.h> | ||||
| #include <console/console.h> | ||||
| #include <cpu/x86/msr.h> | ||||
| #include <cpu/intel/speedstep.h> | ||||
|  | ||||
| #include "gm45.h" | ||||
|  | ||||
| @@ -268,7 +268,8 @@ void init_pm(const sysinfo_t *const sysinfo, int do_freq_scaling_cfg) | ||||
| 		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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user