summaryrefslogtreecommitdiff
path: root/zephyr/projects
diff options
context:
space:
mode:
authorPeter Marheine <pmarheine@chromium.org>2022-03-09 16:05:06 +1100
committerCommit Bot <commit-bot@chromium.org>2022-03-10 05:47:47 +0000
commit7ef397847399bf2d1fedf3279d38b9eb948191b3 (patch)
tree38fc1fd627c849b7dae82c7b34499c26b03c0017 /zephyr/projects
parent6a3f318c1899b9e68242b8fd46063163c53b5491 (diff)
downloadchrome-ec-7ef397847399bf2d1fedf3279d38b9eb948191b3.tar.gz
nissa/nereid: handle charger interrupts on port C1
The SM5803 charger on this port is connected to the IRQ line, in addition to the BC1.2 and TCPC. BUG=b:220775658 TEST=Port 1 now comes up as a sink regardless of battery presence or state at boot; charger plug and unplug works as expected both at runtime and at cold start. BRANCH=none Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: I54a509042901753d63f0f35034017ee70dd713b2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3511921 Reviewed-by: Andrew McRae <amcrae@google.com>
Diffstat (limited to 'zephyr/projects')
-rw-r--r--zephyr/projects/nissa/src/nereid/usbc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/projects/nissa/src/nereid/usbc.c b/zephyr/projects/nissa/src/nereid/usbc.c
index 9b8d867562..8a7dde4cc0 100644
--- a/zephyr/projects/nissa/src/nereid/usbc.c
+++ b/zephyr/projects/nissa/src/nereid/usbc.c
@@ -282,6 +282,7 @@ static void notify_c1_chips(void)
{
schedule_deferred_pd_interrupt(1);
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
+ sm5803_interrupt(1);
}
static void check_c1_line(void)