summaryrefslogtreecommitdiff
path: root/core/cortex-m0/ec.lds.S
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-02-01 12:55:39 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-02-03 05:39:18 +0000
commit0cfc6a087f103dfa1a03d5e6671844ddd4ac8c14 (patch)
treeaa3d87439408be8b28203f08d453b3e29d3baed6 /core/cortex-m0/ec.lds.S
parentc9adf202e3b1d50bda52fda9cb2f9cff918d64b4 (diff)
downloadchrome-ec-0cfc6a087f103dfa1a03d5e6671844ddd4ac8c14.tar.gz
hooks: add hook for battery state of charge change
Add hook for battery state of charge change. Hook will be used to cleanup the samus charging workarounds to follow. BUG=none BRANCH=samus TEST=make -j buildall Change-Id: I99cbb8264783802139cac689804b056623063695 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/245252 Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'core/cortex-m0/ec.lds.S')
-rw-r--r--core/cortex-m0/ec.lds.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/cortex-m0/ec.lds.S b/core/cortex-m0/ec.lds.S
index c3ba800b0e..facbee1742 100644
--- a/core/cortex-m0/ec.lds.S
+++ b/core/cortex-m0/ec.lds.S
@@ -123,6 +123,10 @@ SECTIONS
KEEP(*(.rodata.HOOK_CHARGE_STATE_CHANGE))
__hooks_charge_state_change_end = .;
+ __hooks_battery_soc_change = .;
+ KEEP(*(.rodata.HOOK_BATTERY_SOC_CHANGE))
+ __hooks_battery_soc_change_end = .;
+
__hooks_tick = .;
KEEP(*(.rodata.HOOK_TICK))
__hooks_tick_end = .;