summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2016-09-01 16:48:06 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-09-07 14:01:18 -0700
commit4848d7e8fa0db6faecf0dabb31eaa0db2acc4a0b (patch)
treeb5b62c449fd7f99dd36416eeae9e9e6e5577a8d9 /core
parent764b2e57e741b9d83fa603993ba80e0696fd1333 (diff)
downloadchrome-ec-4848d7e8fa0db6faecf0dabb31eaa0db2acc4a0b.tar.gz
common: Add TABLET_MODE hook.
Add a hook to act when the a device is going in tablet mode and back. BUG=chromium:606718 BRANCH=kevin TEST=Test with evtest that an event is sent to the AP. Change-Id: Ic9c3b158f1178504af41abff18b28de8e07fc7a7 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/380412 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/ec.lds.S4
-rw-r--r--core/cortex-m0/ec.lds.S4
-rw-r--r--core/host/host_exe.lds4
-rw-r--r--core/minute-ia/ec.lds.S6
-rw-r--r--core/nds32/ec.lds.S4
5 files changed, 21 insertions, 1 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S
index bdaf382a55..97458f8a13 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -175,6 +175,10 @@ SECTIONS
KEEP(*(.rodata.HOOK_LID_CHANGE))
__hooks_lid_change_end = .;
+ __hooks_tablet_mode_change = .;
+ KEEP(*(.rodata.HOOK_TABLET_MODE_CHANGE))
+ __hooks_tablet_mode_change_end = .;
+
__hooks_pwrbtn_change = .;
KEEP(*(.rodata.HOOK_POWER_BUTTON_CHANGE))
__hooks_pwrbtn_change_end = .;
diff --git a/core/cortex-m0/ec.lds.S b/core/cortex-m0/ec.lds.S
index 429c52ae34..d2bee481a9 100644
--- a/core/cortex-m0/ec.lds.S
+++ b/core/cortex-m0/ec.lds.S
@@ -127,6 +127,10 @@ SECTIONS
KEEP(*(.rodata.HOOK_LID_CHANGE))
__hooks_lid_change_end = .;
+ __hooks_tablet_mode_change = .;
+ KEEP(*(.rodata.HOOK_TABLET_MODE_CHANGE))
+ __hooks_tablet_mode_change_end = .;
+
__hooks_pwrbtn_change = .;
KEEP(*(.rodata.HOOK_POWER_BUTTON_CHANGE))
__hooks_pwrbtn_change_end = .;
diff --git a/core/host/host_exe.lds b/core/host/host_exe.lds
index 6cdb172045..0763002945 100644
--- a/core/host/host_exe.lds
+++ b/core/host/host_exe.lds
@@ -73,6 +73,10 @@ SECTIONS {
*(.rodata.HOOK_LID_CHANGE)
__hooks_lid_change_end = .;
+ __hooks_tablet_mode_change = .;
+ KEEP(*(.rodata.HOOK_TABLET_MODE_CHANGE))
+ __hooks_tablet_mode_change_end = .;
+
__hooks_pwrbtn_change = .;
*(.rodata.HOOK_POWER_BUTTON_CHANGE)
__hooks_pwrbtn_change_end = .;
diff --git a/core/minute-ia/ec.lds.S b/core/minute-ia/ec.lds.S
index 7490c9c854..2bdcc91e25 100644
--- a/core/minute-ia/ec.lds.S
+++ b/core/minute-ia/ec.lds.S
@@ -1,4 +1,4 @@
-/* Copyright (c) 2016 The Chromium OS Authors. All rights reserved.
+/* Copyright 2016 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -98,6 +98,10 @@ SECTIONS
KEEP(*(.rodata.HOOK_LID_CHANGE))
__hooks_lid_change_end = .;
+ __hooks_tablet_mode_change = .;
+ KEEP(*(.rodata.HOOK_TABLET_MODE_CHANGE))
+ __hooks_tablet_mode_change_end = .;
+
__hooks_pwrbtn_change = .;
KEEP(*(.rodata.HOOK_POWER_BUTTON_CHANGE))
__hooks_pwrbtn_change_end = .;
diff --git a/core/nds32/ec.lds.S b/core/nds32/ec.lds.S
index adff240325..43b905c899 100644
--- a/core/nds32/ec.lds.S
+++ b/core/nds32/ec.lds.S
@@ -117,6 +117,10 @@ SECTIONS
KEEP(*(.rodata.HOOK_LID_CHANGE))
__hooks_lid_change_end = .;
+ __hooks_tablet_mode_change = .;
+ KEEP(*(.rodata.HOOK_TABLET_MODE_CHANGE))
+ __hooks_tablet_mode_change_end = .;
+
__hooks_pwrbtn_change = .;
KEEP(*(.rodata.HOOK_POWER_BUTTON_CHANGE))
__hooks_pwrbtn_change_end = .;