summaryrefslogtreecommitdiff
path: root/core/cortex-m/ec.lds.S
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2020-06-02 19:54:18 -0700
committerCommit Bot <commit-bot@chromium.org>2020-06-06 05:51:51 +0000
commit8565d057518369a9e21d596d76a2dcf0c2fa7a7f (patch)
treeec6afae25be072e8f1461c53c8249c9d430766ab /core/cortex-m/ec.lds.S
parente4bfe793ce90d7e9a42ab4a2c6427381ab7f4092 (diff)
downloadchrome-ec-8565d057518369a9e21d596d76a2dcf0c2fa7a7f.tar.gz
hooks: Introduce HOOK_CHIPSET_SHUTDOWN_COMPLETE
A new hook HOOK_CHIPSET_SHUTDOWN_COMPLETE is introduced, which are called from the chipset task, while the system has already shut down and all the suspend rails are already off. It will be used for executing pending EC reboot at the chipset shutdown. The EC reboot should be executed when the chipset is completely off. BRANCH=None BUG=b:156981868 TEST=Built all boards. Change-Id: I12f26957e46a1bb34ef079f127b0bddd133cd4e7 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2228395 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@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 9aa1c987ba..1e620dc54d 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -192,6 +192,10 @@ SECTIONS
KEEP(*(.rodata.HOOK_CHIPSET_SHUTDOWN))
__hooks_chipset_shutdown_end = .;
+ __hooks_chipset_shutdown_complete = .;
+ KEEP(*(.rodata.HOOK_CHIPSET_SHUTDOWN_COMPLETE))
+ __hooks_chipset_shutdown_complete_end = .;
+
__hooks_chipset_reset = .;
KEEP(*(.rodata.HOOK_CHIPSET_RESET))
__hooks_chipset_reset_end = .;