From edac28ce65e48d6b2a0a2421d046a4fe4b2bf589 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Tue, 19 Jun 2012 18:00:01 +0200 Subject: Enable Intel PECI on Model 6fx CPUs Those CPUs support the PECI (Platform Environment Control Interface), so enable it. This interface is commonly used for tasks like fan control. Change-Id: Id2dadc4821de8cc0b579e77235aa36892e57fd02 Signed-off-by: Sven Schnelle Reviewed-on: http://review.coreboot.org/1104 Reviewed-by: Peter Stuge Tested-by: build bot (Jenkins) --- src/cpu/intel/model_6fx/model_6fx_init.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/cpu/intel') diff --git a/src/cpu/intel/model_6fx/model_6fx_init.c b/src/cpu/intel/model_6fx/model_6fx_init.c index 033dfe6639..106719ea7b 100644 --- a/src/cpu/intel/model_6fx/model_6fx_init.c +++ b/src/cpu/intel/model_6fx/model_6fx_init.c @@ -127,6 +127,8 @@ static void configure_c_states(void) } #define IA32_MISC_ENABLE 0x1a0 +#define IA32_PECI_CTL 0x5a0 + static void configure_misc(void) { msr_t msr; @@ -170,6 +172,12 @@ static void configure_misc(void) msr.lo |= vid_max; wrmsr(IA32_PERF_CTL, msr); + + /* Enable PECI */ + msr = rdmsr(IA32_PECI_CTL); + msr.lo |= 1; + wrmsr(IA32_PECI_CTL, msr); + } #define PIC_SENS_CFG 0x1aa -- cgit v1.2.3