Loading drivers/power/supply/power_supply_sysfs.c +11 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ static const char * const power_supply_type_text[] = { "USB_PD", "USB_PD_DRP", "BrickID", "USB_HVDCP", "USB_HVDCP_3", "Wireless", "USB_FLOAT", "BMS", "Parallel", "Main", "Wipower", "USB_C_UFP", "USB_C_DFP", "Charge_Pump", }; static const char * const power_supply_status_text[] = { Loading Loading @@ -386,6 +387,16 @@ static struct device_attribute power_supply_attrs[] = { POWER_SUPPLY_ATTR(fcc_stepper_enable), POWER_SUPPLY_ATTR(toggle_stat), POWER_SUPPLY_ATTR(main_fcc_max), /* Charge pump properties */ POWER_SUPPLY_ATTR(cp_status1), POWER_SUPPLY_ATTR(cp_status2), POWER_SUPPLY_ATTR(cp_enable), POWER_SUPPLY_ATTR(cp_switcher_en), POWER_SUPPLY_ATTR(cp_die_temp), POWER_SUPPLY_ATTR(cp_isns), POWER_SUPPLY_ATTR(cp_toggle_switcher), POWER_SUPPLY_ATTR(cp_irq_status), POWER_SUPPLY_ATTR(cp_ilim), /* Local extensions of type int64_t */ POWER_SUPPLY_ATTR(charge_counter_ext), /* Properties of type `const char *' */ Loading include/linux/power_supply.h +11 −0 Original line number Diff line number Diff line Loading @@ -312,6 +312,16 @@ enum power_supply_property { POWER_SUPPLY_PROP_FCC_STEPPER_ENABLE, POWER_SUPPLY_PROP_TOGGLE_STAT, POWER_SUPPLY_PROP_MAIN_FCC_MAX, /* Charge pump properties */ POWER_SUPPLY_PROP_CP_STATUS1, POWER_SUPPLY_PROP_CP_STATUS2, POWER_SUPPLY_PROP_CP_ENABLE, POWER_SUPPLY_PROP_CP_SWITCHER_EN, POWER_SUPPLY_PROP_CP_DIE_TEMP, POWER_SUPPLY_PROP_CP_ISNS, POWER_SUPPLY_PROP_CP_TOGGLE_SWITCHER, POWER_SUPPLY_PROP_CP_IRQ_STATUS, POWER_SUPPLY_PROP_CP_ILIM, /* Local extensions of type int64_t */ POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT, /* Properties of type `const char *' */ Loading Loading @@ -345,6 +355,7 @@ enum power_supply_type { POWER_SUPPLY_TYPE_WIPOWER, /* Wipower */ POWER_SUPPLY_TYPE_UFP, /* Type-C UFP */ POWER_SUPPLY_TYPE_DFP, /* Type-C DFP */ POWER_SUPPLY_TYPE_CHARGE_PUMP, /* Charge Pump */ }; /* Indicates USB Type-C CC connection status */ Loading Loading
drivers/power/supply/power_supply_sysfs.c +11 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ static const char * const power_supply_type_text[] = { "USB_PD", "USB_PD_DRP", "BrickID", "USB_HVDCP", "USB_HVDCP_3", "Wireless", "USB_FLOAT", "BMS", "Parallel", "Main", "Wipower", "USB_C_UFP", "USB_C_DFP", "Charge_Pump", }; static const char * const power_supply_status_text[] = { Loading Loading @@ -386,6 +387,16 @@ static struct device_attribute power_supply_attrs[] = { POWER_SUPPLY_ATTR(fcc_stepper_enable), POWER_SUPPLY_ATTR(toggle_stat), POWER_SUPPLY_ATTR(main_fcc_max), /* Charge pump properties */ POWER_SUPPLY_ATTR(cp_status1), POWER_SUPPLY_ATTR(cp_status2), POWER_SUPPLY_ATTR(cp_enable), POWER_SUPPLY_ATTR(cp_switcher_en), POWER_SUPPLY_ATTR(cp_die_temp), POWER_SUPPLY_ATTR(cp_isns), POWER_SUPPLY_ATTR(cp_toggle_switcher), POWER_SUPPLY_ATTR(cp_irq_status), POWER_SUPPLY_ATTR(cp_ilim), /* Local extensions of type int64_t */ POWER_SUPPLY_ATTR(charge_counter_ext), /* Properties of type `const char *' */ Loading
include/linux/power_supply.h +11 −0 Original line number Diff line number Diff line Loading @@ -312,6 +312,16 @@ enum power_supply_property { POWER_SUPPLY_PROP_FCC_STEPPER_ENABLE, POWER_SUPPLY_PROP_TOGGLE_STAT, POWER_SUPPLY_PROP_MAIN_FCC_MAX, /* Charge pump properties */ POWER_SUPPLY_PROP_CP_STATUS1, POWER_SUPPLY_PROP_CP_STATUS2, POWER_SUPPLY_PROP_CP_ENABLE, POWER_SUPPLY_PROP_CP_SWITCHER_EN, POWER_SUPPLY_PROP_CP_DIE_TEMP, POWER_SUPPLY_PROP_CP_ISNS, POWER_SUPPLY_PROP_CP_TOGGLE_SWITCHER, POWER_SUPPLY_PROP_CP_IRQ_STATUS, POWER_SUPPLY_PROP_CP_ILIM, /* Local extensions of type int64_t */ POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT, /* Properties of type `const char *' */ Loading Loading @@ -345,6 +355,7 @@ enum power_supply_type { POWER_SUPPLY_TYPE_WIPOWER, /* Wipower */ POWER_SUPPLY_TYPE_UFP, /* Type-C UFP */ POWER_SUPPLY_TYPE_DFP, /* Type-C DFP */ POWER_SUPPLY_TYPE_CHARGE_PUMP, /* Charge Pump */ }; /* Indicates USB Type-C CC connection status */ Loading