google_cpm: to support CURRENT_MAX and VOLTAGE_MAX
Bug: 274987209
Change-Id: I5f29f51668ffad6e78d618d3cfffefef6c3eb83f
Signed-off-by: Ken Yang <[email protected]>
diff --git a/google_cpm.c b/google_cpm.c
index 657deb9..5df338d 100644
--- a/google_cpm.c
+++ b/google_cpm.c
@@ -2139,6 +2139,14 @@
gbms_propval_int64val(pval) = chg_state.v;
break;
+ case POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX:
+ pval->intval = gcpm->cc_max;
+ break;
+
+ case POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE_MAX:
+ pval->intval = gcpm->fv_uv;
+ break;
+
/* route to the active charger */
default:
route = true;