summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-05-21 16:20:33 -0700
committerRandall Spangler <rspangler@chromium.org>2012-05-21 16:30:12 -0700
commit990c8b39e1134bef2599dfc1402bc24b54a7e824 (patch)
tree6f682f65b6bc32614dd2eae022bfbeba30d13df9 /core
parent790d3d87216cb2d00b76f941cd6bcc80c3741069 (diff)
downloadchrome-ec-990c8b39e1134bef2599dfc1402bc24b54a7e824.tar.gz
Disable touchscreen when lid is closed and in S3
(Touchscreen was already disabled in S5) Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:9736 TEST=from console, 'gpioget touchscreen_resetn' in these cases: 1) system is off -> 0 2) system is on with lid open -> 1 3) system is on with lid closed -> 1 4) system is suspended with lid open -> 1 5) system is suspended with lid closed -> 1 6) system is shut back down -> 0 7) suspend system with lid open, THEN close lid -> 0 Change-Id: I5fc80b72ea9dcfbf11f5280d79ae805c2ef1b6df
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/ec.lds.S4
-rw-r--r--core/cortex-m/link_defs.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S
index 910b254f75..30a5446891 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -83,6 +83,10 @@ SECTIONS
*(.rodata.HOOK_AC_CHANGE)
__hooks_ac_change_end = .;
+ __hooks_lid_change = .;
+ *(.rodata.HOOK_LID_CHANGE)
+ __hooks_lid_change_end = .;
+
. = ALIGN(4);
*(.rodata*)
diff --git a/core/cortex-m/link_defs.h b/core/cortex-m/link_defs.h
index ec6992d8ae..7f029ec667 100644
--- a/core/cortex-m/link_defs.h
+++ b/core/cortex-m/link_defs.h
@@ -34,6 +34,8 @@ extern const struct hook_data __hooks_chipset_shutdown[];
extern const struct hook_data __hooks_chipset_shutdown_end[];
extern const struct hook_data __hooks_ac_change[];
extern const struct hook_data __hooks_ac_change_end[];
+extern const struct hook_data __hooks_lid_change[];
+extern const struct hook_data __hooks_lid_change_end[];
/* Host commands */
extern const struct host_command __hcmds[];