summaryrefslogtreecommitdiff
path: root/core/cortex-m/ec.lds.S
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@chromium.org>2018-08-17 11:00:18 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-08-21 19:27:46 -0700
commitaf908bfce225415c01d56b3f57cfc399d8485d3e (patch)
tree73a798d47d9cb2002df7cb4836e6d5c7193ff997 /core/cortex-m/ec.lds.S
parentb8af74cc4cf7a304ce8087fc60248ea037aad566 (diff)
downloadchrome-ec-af908bfce225415c01d56b3f57cfc399d8485d3e.tar.gz
common: add BASE_CHANGE hook
Add a hook to act when a detachable device is connected/disconnected from a base. BUG=b:73133611 BRANCH=nocturne TEST=Test with evtest that an event is sent to the AP. Change-Id: I21103fff88f19a197124095ee229eebb178dcf3d Signed-off-by: Dmitry Torokhov <dtor@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1180538 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'core/cortex-m/ec.lds.S')
-rw-r--r--core/cortex-m/ec.lds.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S
index e4b15e4d15..cb7a426e60 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -191,6 +191,10 @@ SECTIONS
KEEP(*(.rodata.HOOK_TABLET_MODE_CHANGE))
__hooks_tablet_mode_change_end = .;
+ __hooks_base_attached_change = .;
+ KEEP(*(.rodata.HOOK_BASE_ATTACHED_CHANGE))
+ __hooks_base_attached_change_end = .;
+
__hooks_pwrbtn_change = .;
KEEP(*(.rodata.HOOK_POWER_BUTTON_CHANGE))
__hooks_pwrbtn_change_end = .;