From 4a1591bb8a08b65baf394c96d6860a1c0561f729 Mon Sep 17 00:00:00 2001 From: Diana Z Date: Wed, 16 Sep 2020 15:44:48 -0600 Subject: Hooks: Add HOOK_CHIPSET_HARD_OFF Add a new hook called HOOK_CHIPSET_HARD_OFF which is called upon entry to the G3 power state. BRANCH=None BUG=b:166787955,b:167996216,chromium:1045209 TEST=make -j buildall, runs on waddledee with no linking errors Signed-off-by: Diana Z Change-Id: If260207910d882d17aeb766c9e99a7a6099006c7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2415171 Reviewed-by: Daisuke Nojiri Reviewed-by: Aseda Aboagye --- core/host/host_exe.lds | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/host') diff --git a/core/host/host_exe.lds b/core/host/host_exe.lds index fbf7b56351..ab8d352ecc 100644 --- a/core/host/host_exe.lds +++ b/core/host/host_exe.lds @@ -65,6 +65,10 @@ SECTIONS { *(.rodata.HOOK_CHIPSET_SHUTDOWN_COMPLETE) __hooks_chipset_shutdown_complete_end = .; + __hooks_chipset_hard_off = .; + KEEP(*(.rodata.HOOK_CHIPSET_HARD_OFF)) + __hooks_chipset_hard_off_end = .; + __hooks_chipset_reset = .; *(.rodata.HOOK_CHIPSET_RESET) __hooks_chipset_reset_end = .; -- cgit v1.2.1