diff options
author | Diana Z <dzigterman@chromium.org> | 2021-04-02 16:34:17 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-06 18:00:29 +0000 |
commit | 65eedb7805c7190254dd620e5fa272cc8e3dc599 (patch) | |
tree | a9d947bd84ea0e1907d7aba155f72398f6e555e0 | |
parent | e820abf4090c36067d9f1ad85d6ea6b41c0063c0 (diff) | |
download | chrome-ec-65eedb7805c7190254dd620e5fa272cc8e3dc599.tar.gz |
SM5803: Add interrupt processing function to header
Expose the function for interrupt processing for use by other tasks,
such as the PD_INT task if the charger chip is sharing an IRQ line with
the TCPC.
BRANCH=None
BUG=b:182534117,b:183679237
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ic147fc282ecd5954c95e0c71e230c27b8c91186b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2803461
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r-- | driver/charger/sm5803.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/charger/sm5803.h b/driver/charger/sm5803.h index f46a23d880..32d0e33a1a 100644 --- a/driver/charger/sm5803.h +++ b/driver/charger/sm5803.h @@ -385,4 +385,7 @@ void sm5803_enable_low_power_mode(int chgnum); extern const struct charger_drv sm5803_drv; +/* Expose interrupt handler for processing in PD_INT task when needed */ +void sm5803_handle_interrupt(int chgnum); + #endif |