summaryrefslogtreecommitdiff
path: root/src/mainboard/intel
diff options
context:
space:
mode:
authorSrinidhi Kaushik <srinidhi.n.kaushik@intel.com>2017-10-30 14:45:40 -0700
committerMartin Roth <martinroth@google.com>2017-12-08 23:27:28 +0000
commit9e0dd0169dca0943b6065f91058ee8a33671fea2 (patch)
treefe7f511f7f130df0e7e76f6b305260a851382b7d /src/mainboard/intel
parent5773c4ce026b23caf941af7933b43548ab2dea8f (diff)
downloadcoreboot-9e0dd0169dca0943b6065f91058ee8a33671fea2.tar.xz
src/mainboard/glkrvp: Turn on CPU fan
On GLK EC does not support temperature reads and does not control the fans anymore, OS is responsible fan control through EC. This hack enables running of the fan for boards without External EC. Change-Id: I361e53d4fd53678f3abb8fe9862071aec6e149a7 Signed-off-by: Srinidhi N Kaushik <srinidhi.n.kaushik@intel.com> Reviewed-on: https://review.coreboot.org/22235 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com>
Diffstat (limited to 'src/mainboard/intel')
-rw-r--r--src/mainboard/intel/glkrvp/ec.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainboard/intel/glkrvp/ec.c b/src/mainboard/intel/glkrvp/ec.c
index c17033832e..c6632cd8d0 100644
--- a/src/mainboard/intel/glkrvp/ec.c
+++ b/src/mainboard/intel/glkrvp/ec.c
@@ -72,5 +72,12 @@ void mainboard_ec_init(void)
if (IS_ENABLED(CONFIG_GLK_INTEL_EC)) {
printk(BIOS_ERR, "S3 Hack Enable ACPI mode: outb(0xaa,0x66)\n");
outb(0xaa, 0x66);
+ printk(BIOS_INFO, "Hack to turn on the CPU fan\n");
+ outb(0x81, 0x66);
+ outb(0x44, 0x62);
+ outb(0x32, 0x62);
+ /* Need delay here, hence second outb */
+ outb(0x32, 0x62);
+ outb(0x1a, 0x66);
}
}