summaryrefslogtreecommitdiff
path: root/src/mainboard/google/link
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2013-06-03 10:38:22 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-07-10 21:44:09 +0200
commit433432b6544fc57c7998a66aaa34c45609e4fc8c (patch)
tree4e8e7977396504b8efae05504097a448ef86a3e4 /src/mainboard/google/link
parente8b08ba47c8b17480bd94eef7dc8a47629191957 (diff)
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 <dlaurie@chromium.org> Reviewed-on: http://review.coreboot.org/3743 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/google/link')
-rw-r--r--src/mainboard/google/link/acpi/thermal.asl5
-rw-r--r--src/mainboard/google/link/chromeos.c3
2 files changed, 6 insertions, 2 deletions
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. */