mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-31 11:01:19 +00:00
After VBUS is up, there is a delay of ~500ms for rt946x to determine 'VBUS is ready'. But we need charger_task to detect AC presence and then set a proper sleep time immediately. When using fusb302 to detect VBUS, I almost don't see any delay. BUG=b:71520398 BRANCH=none TEST=Confirm BATTERY LED turns on immediately when AC is plugged in a Scarlet in G3. Change-Id: If1d6d40081b5822eeb9e012115f8deef172def37 Signed-off-by: Philip Chen <philipchen@google.com> Reviewed-on: https://chromium-review.googlesource.com/869420 Commit-Ready: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org> Reviewed-by: Philip Chen <philipchen@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>