google_battery: Add clear logging for trickle-defend

Bug: 199409558
Signed-off-by: Stephane Lee <[email protected]>
Change-Id: I12ddb0ee3f8e8c40c17226e05a2da1e6b32f7267
(cherry picked from commit 5e24965375458c9854157013da40faad28f69472)
diff --git a/google_bms.h b/google_bms.h
index 6db8ec6..0f6f68e 100644
--- a/google_bms.h
+++ b/google_bms.h
@@ -264,6 +264,9 @@
 	/* Defender TEMP or DWELL */
 	GBMS_STATS_BD_TI_OVERHEAT_TEMP = 110,
 	GBMS_STATS_BD_TI_CUSTOM_LEVELS = 111,
+	GBMS_STATS_BD_TI_TRICKLE = 112,
+
+	GBMS_STATS_BD_TI_TRICKLE_CLEARED = 122,
 };
 
 /* health state */
@@ -306,6 +309,7 @@
 
 	ktime_t first_update;
 	ktime_t last_update;
+	bool bd_clear_trickle;
 
 	/* health based charging */
 	struct batt_chg_health		ce_health;	/* updated on close */
@@ -320,6 +324,7 @@
 
 	struct gbms_ce_tier_stats overheat_stats;
 	struct gbms_ce_tier_stats cc_lvl_stats;
+	struct gbms_ce_tier_stats trickle_stats;
 };
 
 #define GBMS_CCCM_LIMITS(profile, ti, vi) \