diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2022-06-18 00:17:18 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-22 16:53:38 +0000 |
commit | 55d5b28b468d1e860066d6dc0c8d6e650eac01d0 (patch) | |
tree | c211814c418280aeb6b1949fffa147594a89962b /core/host | |
parent | 0ddbf1b899f2ad68eca09f072ad5243db20e7bbe (diff) | |
download | chrome-ec-55d5b28b468d1e860066d6dc0c8d6e650eac01d0.tar.gz |
hook: Add HOOK_POWER_SUPPLY_CHANGE
This patch adds HOOK_POWER_SUPPLY_CHANGE. It triggers when there is a
change in the active charge port.
BUG=None
BRANCH=None
TEST=buildall
TEST=zephyr/firmware_builder.py --metrics /tmp/tmpb1k9vctu
--code-coverage build
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Change-Id: I77fda265c323e4101c8cc95ed15be714b8989c85
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3716790
Commit-Queue: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'core/host')
-rw-r--r-- | core/host/host_exe.lds | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/host/host_exe.lds b/core/host/host_exe.lds index ab8d352ecc..0261624d30 100644 --- a/core/host/host_exe.lds +++ b/core/host/host_exe.lds @@ -113,6 +113,10 @@ SECTIONS { KEEP(*(.rodata.HOOK_USB_PD_CONNECT)) __hooks_usb_pd_connect_end = .; + __hooks_power_supply_change = .; + KEEP(*(.rodata.HOOK_POWER_SUPPLY_CHANGE)) + __hooks_power_supply_change_end = .; + __deferred_funcs = .; *(.rodata.deferred) __deferred_funcs_end = .; |