P22: Enable dynamic IR drop

Enable dynamic irdrop on P22 and merge other logging changes from P23.
Check bug for testing details on C10.

Bug: 261736557
Change-Id: I63feedc0917d78471e3eebc431fbe14cb35ee60d
Signed-off-by: Ken Yang <[email protected]>
diff --git a/google_bms.h b/google_bms.h
index 91a4410..2a943ba 100644
--- a/google_bms.h
+++ b/google_bms.h
@@ -49,6 +49,7 @@
 
 	/* behavior */
 	u32 fv_uv_margin_dpct;
+	u32 fv_dc_ratio;
 	u32 cv_range_accuracy;
 	u32 cv_debounce_cnt;
 	u32 cv_update_interval;
@@ -402,7 +403,7 @@
 #define GBMS_CS_FLAG_CV		BIT(3)
 #define GBMS_CS_FLAG_ILIM	BIT(4)
 #define GBMS_CS_FLAG_CCLVL	BIT(5)
-#define GBMS_CS_FLAG_NOCOMP     BIT(6)
+#define GBMS_CS_FLAG_DIRECT_CHG	BIT(6)
 
 union gbms_charger_state {
 	uint64_t v;
@@ -433,7 +434,7 @@
 int gbms_msc_temp_idx(const struct gbms_chg_profile *profile, int temp);
 int gbms_msc_voltage_idx(const struct gbms_chg_profile *profile, int vbatt);
 int gbms_msc_round_fv_uv(const struct gbms_chg_profile *profile,
-			   int vtier, int fv_uv);
+			   int vtier, int fv_uv, int cc_ua);
 
 /* newgen charging: charger flags  */
 uint8_t gbms_gen_chg_flags(int chg_status, int chg_type);