Refactor boot mode detection to use is_pon_on_ac() for identifying off-mode charging, relying on the underlying PMIC registers. Additionally, introduce is_pd_sync_required() to centralize logic for enabling Power Delivery negotiation during off-mode, low battery, or no-battery boot scenarios. BUG=b:457566143 TEST=Verify different boot modes on Google/Quenbi. Change-Id: I7bdece2fc920310f3b1c59a1a6b90cf3bd03e3d9 Signed-off-by: Kapil Porwal <kapilporwal@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90551 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jayvik Desai <jayvik@google.com> Reviewed-by: Subrata Banik <subratabanik@google.com> |
||
|---|---|---|
| .. | ||
| acpi | ||
| arch | ||
| commonlib | ||
| console | ||
| cpu | ||
| device | ||
| drivers | ||
| ec | ||
| include | ||
| lib | ||
| mainboard | ||
| northbridge | ||
| sbom | ||
| security | ||
| soc | ||
| southbridge | ||
| superio | ||
| vendorcode | ||
| Kconfig | ||