From 65eedb7805c7190254dd620e5fa272cc8e3dc599 Mon Sep 17 00:00:00 2001 From: Diana Z Date: Fri, 2 Apr 2021 16:34:17 -0600 Subject: 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 Change-Id: Ic147fc282ecd5954c95e0c71e230c27b8c91186b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2803461 Reviewed-by: Aseda Aboagye --- driver/charger/sm5803.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'driver/charger/sm5803.h') 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 -- cgit v1.2.1