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 <svens@stackframe.org> Reviewed-on: http://review.coreboot.org/1104 Reviewed-by: Peter Stuge <peter@stuge.se> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
1a7a7e610e
commit
edac28ce65
|
@ -127,6 +127,8 @@ static void configure_c_states(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#define IA32_MISC_ENABLE 0x1a0
|
#define IA32_MISC_ENABLE 0x1a0
|
||||||
|
#define IA32_PECI_CTL 0x5a0
|
||||||
|
|
||||||
static void configure_misc(void)
|
static void configure_misc(void)
|
||||||
{
|
{
|
||||||
msr_t msr;
|
msr_t msr;
|
||||||
|
@ -170,6 +172,12 @@ static void configure_misc(void)
|
||||||
msr.lo |= vid_max;
|
msr.lo |= vid_max;
|
||||||
|
|
||||||
wrmsr(IA32_PERF_CTL, msr);
|
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
|
#define PIC_SENS_CFG 0x1aa
|
||||||
|
|
Loading…
Reference in New Issue