coreboot/src
Subrata Banik 762b564f3b mb/google/bluey: Add timeout for charging rail stabilization
In the charger applet, it is possible for the PMIC to take some time
to negotiate and enable the charging current. Previously, the code
proceeded immediately, which could lead to false-positive power-off
triggers if current hadn't started flowing yet.

This change:
1. Implements a 3000ms stopwatch-based timeout.
2. Polls get_battery_icurr_ma() until a non-zero current is detected.
3. Aborts the applet if current fails to stabilize within the window.
4. Adds logging to track the actual duration of the power-up sequence.

BUG=none
BRANCH=none
TEST=Verified that the system enters off-mode charging more reliably
without powering off.

```
[INFO ]  Inside launch_charger_applet. Initiating charging
...
...
[INFO ]  Issuing power-off due to change in charging state.
...
...
```

Change-Id: Ie3501dff06aadf81d527658c4042de7c92de24b5
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/91547
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
2026-03-06 03:20:22 +00:00
..
acpi acpi/dsdt_top.asl: Move RBUF out of the _CRS method 2026-02-09 15:20:48 +00:00
arch treewide: Move check-ramstage-overlap variables 2026-02-11 20:00:57 +00:00
commonlib commonlib/list: Change to circular list 2026-02-13 15:17:00 +00:00
console console: Fix flushing for slow consoles 2025-10-02 22:44:46 +00:00
cpu haswell/broadwell: Move CPU bus ops to CPU code 2026-03-04 16:46:52 +00:00
device dram/ddr3: Add speed in MT/s 2026-02-19 19:20:43 +00:00
drivers drivers/usb/acpi: Add DSM function 3 support for Intel Bluetooth 2026-02-28 15:05:45 +00:00
ec starlabs: drop CMOS option tables 2026-03-04 09:25:46 +00:00
include mp_init: Pass microcode size to MPinit 2026-03-03 21:38:23 +00:00
lib lib/cbfs: Don't include unused LZ4 code to shrink postcar stage 2026-03-05 17:50:18 +00:00
mainboard mb/google/bluey: Add timeout for charging rail stabilization 2026-03-06 03:20:22 +00:00
northbridge nb/intel/broadwell/acpi.c: Use Haswell's file 2026-03-04 16:49:22 +00:00
sbom sbom: Fix build with merged bootblock and romstage 2025-07-07 14:29:29 +00:00
security soc/intel/common: Add opt-in runtime control for BIOS SMM write 2026-01-29 14:41:46 +00:00
soc soc/intel/pantherlake: Keep default values for TdcTimeWindow 2026-03-05 17:55:03 +00:00
southbridge sb/intel/wildcatpoint/acpi: Add CID for GPIO device 2026-03-04 16:49:29 +00:00
superio sio/nuvoton/nct6776: Switch to common init code 2026-02-19 19:19:43 +00:00
vendorcode vc/chromeos: Provide inline fallbacks for Chromebook Plus branding 2026-03-03 03:18:46 +00:00
Kconfig Kconfig: Add Kconfig for signed secure blobs 2026-03-03 03:17:57 +00:00