From 433432b6544fc57c7998a66aaa34c45609e4fc8c Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 3 Jun 2013 10:38:22 -0700 Subject: chrome ec: Update EC header from EC repository - Updated ec_commands.h is copied in directly from EC repo - Removed "old" interface and update resources for "new" interface - Updated temp sensor constants and added "not calibrated" - Update mainboards to remove check for EC_SWITCH_KEYBOARD_RECOVERY Change-Id: Ic93c1914f86b6f5bc224178270624ed92b5c1e15 Signed-off-by: Duncan Laurie Reviewed-on: http://review.coreboot.org/3743 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/mainboard/google/link/acpi/thermal.asl | 5 +++++ src/mainboard/google/link/chromeos.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/link/acpi/thermal.asl b/src/mainboard/google/link/acpi/thermal.asl index 357c096a17..b5775da1ee 100644 --- a/src/mainboard/google/link/acpi/thermal.asl +++ b/src/mainboard/google/link/acpi/thermal.asl @@ -48,6 +48,11 @@ Scope (\_TZ) // Get CPU Temperature from TIN9/PECI via EC Store (\_SB.PCI0.LPCB.EC0.TIN9, Local0) + // Check for sensor not calibrated + If (LEqual (Local0, \_SB.PCI0.LPCB.EC0.TNCA)) { + Return (CTOK(0)) + } + // Check for sensor not present If (LEqual (Local0, \_SB.PCI0.LPCB.EC0.TNPR)) { Return (CTOK(0)) diff --git a/src/mainboard/google/link/chromeos.c b/src/mainboard/google/link/chromeos.c index 17a4b18e6a..dd1606f1cc 100644 --- a/src/mainboard/google/link/chromeos.c +++ b/src/mainboard/google/link/chromeos.c @@ -107,8 +107,7 @@ int get_recovery_mode_switch(void) u32 ec_events; /* If a switch is set, we don't need to look at events. */ - if (ec_switches & (EC_SWITCH_KEYBOARD_RECOVERY | - EC_SWITCH_DEDICATED_RECOVERY)) + if (ec_switches & (EC_SWITCH_DEDICATED_RECOVERY)) return 1; /* Else check if the EC has posted the keyboard recovery event. */ -- cgit v1.2.3