| /OK3568_Linux_fs/u-boot/drivers/phy/ |
| H A D | phy-rockchip-naneng-usb2.c | 180 static const char *chg_to_string(enum power_supply_type chg_type) in chg_to_string() argument 182 switch (chg_type) { in chg_to_string() 199 enum power_supply_type chg_type; in rockchip_chg_get_type() local 238 chg_type = (chg_valid << 1) | phy_connect; in rockchip_chg_get_type() 240 if (chg_type) in rockchip_chg_get_type() 245 debug("charger = %s\n", chg_to_string(chg_type)); in rockchip_chg_get_type() 253 return chg_type; in rockchip_chg_get_type() 258 int chg_type; in rockchip_u2phy_vbus_detect() local 260 chg_type = rockchip_chg_get_type(); in rockchip_u2phy_vbus_detect() 262 return (chg_type == POWER_SUPPLY_TYPE_USB || in rockchip_u2phy_vbus_detect() [all …]
|
| H A D | phy-rockchip-inno-usb2.c | 197 static const char *chg_to_string(enum power_supply_type chg_type) in chg_to_string() argument 199 switch (chg_type) { in chg_to_string() 261 enum power_supply_type chg_type; in rockchip_chg_get_type() local 288 chg_type = POWER_SUPPLY_TYPE_USB; in rockchip_chg_get_type() 328 chg_type = POWER_SUPPLY_TYPE_USB_FLOATING; in rockchip_chg_get_type() 341 chg_type = POWER_SUPPLY_TYPE_USB; in rockchip_chg_get_type() 352 chg_type = POWER_SUPPLY_TYPE_USB_DCP; in rockchip_chg_get_type() 354 chg_type = POWER_SUPPLY_TYPE_USB_CDP; in rockchip_chg_get_type() 361 debug("charger is %s\n", chg_to_string(chg_type)); in rockchip_chg_get_type() 363 return chg_type; in rockchip_chg_get_type() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/extcon/ |
| H A D | extcon-max14577.c | 258 int chg_type; in max14577_muic_get_cable_type() local 290 chg_type = info->status[MAX14577_MUIC_STATUS2] & in max14577_muic_get_cable_type() 292 chg_type >>= STATUS2_CHGTYP_SHIFT; in max14577_muic_get_cable_type() 294 if (chg_type == MAX14577_CHARGER_TYPE_NONE) { in max14577_muic_get_cable_type() 307 cable_type = info->prev_chg_type = chg_type; in max14577_muic_get_cable_type() 428 int chg_type; in max14577_muic_chg_handler() local 432 chg_type = max14577_muic_get_cable_type(info, in max14577_muic_chg_handler() 438 chg_type, info->prev_chg_type); in max14577_muic_chg_handler() 440 switch (chg_type) { in max14577_muic_chg_handler() 473 attached ? "attached" : "detached", chg_type); in max14577_muic_chg_handler() [all …]
|
| H A D | extcon-max77693.c | 316 int chg_type; in max77693_muic_get_cable_type() local 395 chg_type = info->status[1] & MAX77693_STATUS2_CHGTYP_MASK; in max77693_muic_get_cable_type() 396 chg_type >>= MAX77693_STATUS2_CHGTYP_SHIFT; in max77693_muic_get_cable_type() 398 if (chg_type == MAX77693_CHARGER_TYPE_NONE) { in max77693_muic_get_cable_type() 411 cable_type = info->prev_chg_type = chg_type; in max77693_muic_get_cable_type() 422 chg_type = info->status[1] & MAX77693_STATUS2_CHGTYP_MASK; in max77693_muic_get_cable_type() 423 chg_type >>= MAX77693_STATUS2_CHGTYP_SHIFT; in max77693_muic_get_cable_type() 426 && chg_type == MAX77693_CHARGER_TYPE_NONE) in max77693_muic_get_cable_type() 763 int chg_type; in max77693_muic_chg_handler() local 770 chg_type = max77693_muic_get_cable_type(info, in max77693_muic_chg_handler() [all …]
|
| H A D | extcon-max8997.c | 248 int chg_type; in max8997_muic_get_cable_type() local 280 chg_type = info->status[1] & STATUS2_CHGTYP_MASK; in max8997_muic_get_cable_type() 281 chg_type >>= STATUS2_CHGTYP_SHIFT; in max8997_muic_get_cable_type() 283 if (chg_type == MAX8997_CHARGER_TYPE_NONE) { in max8997_muic_get_cable_type() 296 cable_type = info->prev_chg_type = chg_type; in max8997_muic_get_cable_type() 460 int chg_type; in max8997_muic_chg_handler() local 464 chg_type = max8997_muic_get_cable_type(info, in max8997_muic_chg_handler() 467 switch (chg_type) { in max8997_muic_chg_handler() 498 attached ? "attached" : "detached", chg_type); in max8997_muic_chg_handler() 575 int chg_type; in max8997_muic_detect_dev() local [all …]
|
| H A D | extcon-max77843.c | 264 int adc, chg_type, cable_type, gnd_type; in max77843_muic_get_cable_type() local 282 chg_type = info->status[MAX77843_MUIC_STATUS2] & in max77843_muic_get_cable_type() 287 if (chg_type == MAX77843_MUIC_CHG_NONE) { in max77843_muic_get_cable_type() 310 if (chg_type == MAX77843_MUIC_CHG_NONE) { in max77843_muic_get_cable_type() 322 if (chg_type == MAX77843_MUIC_CHG_NONE) { in max77843_muic_get_cable_type() 328 cable_type = info->prev_chg_type = chg_type; in max77843_muic_get_cable_type() 534 int ret, chg_type, gnd_type; in max77843_muic_chg_handler() local 537 chg_type = max77843_muic_get_cable_type(info, in max77843_muic_chg_handler() 543 chg_type, info->prev_chg_type); in max77843_muic_chg_handler() 545 switch (chg_type) { in max77843_muic_chg_handler() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/phy/ |
| H A D | phy.c | 135 "USB_CHARGER_TYPE=%s", usb_chger_type[usb_phy->chg_type]); in usb_phy_notify_charger_work() 142 usb_phy->chg_type = SDP_TYPE; in __usb_phy_get_charger_type() 145 usb_phy->chg_type = CDP_TYPE; in __usb_phy_get_charger_type() 148 usb_phy->chg_type = DCP_TYPE; in __usb_phy_get_charger_type() 151 usb_phy->chg_type = ACA_TYPE; in __usb_phy_get_charger_type() 154 usb_phy->chg_type = UNKNOWN_TYPE; in __usb_phy_get_charger_type() 195 switch (usb_phy->chg_type) { in usb_phy_set_charger_current() 245 switch (usb_phy->chg_type) { in usb_phy_get_charger_current() 287 usb_phy->chg_type = usb_phy->charger_detect(usb_phy); in usb_phy_set_charger_state() 289 usb_phy->chg_type = UNKNOWN_TYPE; in usb_phy_set_charger_state() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/power/supply/ |
| H A D | max14577_charger.c | 126 enum max14577_muic_charger_type chg_type; in max14577_get_online() local 133 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_online() 134 switch (chg_type) { in max14577_get_online() 165 enum max14577_muic_charger_type chg_type; in max14577_get_battery_health() local 172 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_battery_health() 173 if (chg_type == MAX14577_CHARGER_TYPE_DEAD_BATTERY) { in max14577_get_battery_health()
|
| H A D | max14656_charger_detector.c | 141 u8 chg_type; in max14656_irq_worker() local 148 chg_type = buf[MAX14656_STATUS_1] & STATUS1_CHG_TYPE_MASK; in max14656_irq_worker() 149 if (chg_type < MAX14656_CHARGER_LAST) in max14656_irq_worker() 150 chip->psy_desc.type = chg_type_props[chg_type].type; in max14656_irq_worker()
|
| H A D | adp5061.c | 424 int chg_type, ret; in adp5061_get_chg_type() local 430 chg_type = ADP5061_CHG_STATUS_1_CHG_STATUS(status1); in adp5061_get_chg_type() 431 if (chg_type >= ARRAY_SIZE(adp5061_chg_type)) in adp5061_get_chg_type() 434 val->intval = adp5061_chg_type[chg_type]; in adp5061_get_chg_type()
|
| /OK3568_Linux_fs/kernel/drivers/phy/rockchip/ |
| H A D | phy-rockchip-usb.c | 154 enum power_supply_type chg_type; member 496 switch (rk_phy->chg_type) { in rk3288_usb_phy_otg_sm_work() 534 static const char *chg_to_string(enum power_supply_type chg_type) in chg_to_string() argument 536 switch (chg_type) { in chg_to_string() 633 rk_phy->chg_type = POWER_SUPPLY_TYPE_USB_DCP; in rk3288_chg_detect_work() 640 rk_phy->chg_type = POWER_SUPPLY_TYPE_USB; in rk3288_chg_detect_work() 656 rk_phy->chg_type = POWER_SUPPLY_TYPE_USB_DCP; in rk3288_chg_detect_work() 658 rk_phy->chg_type = POWER_SUPPLY_TYPE_USB_CDP; in rk3288_chg_detect_work() 674 chg_to_string(rk_phy->chg_type)); in rk3288_chg_detect_work()
|
| H A D | phy-rockchip-naneng-usb2.c | 245 enum power_supply_type chg_type; member 782 static const char *chg_to_string(enum power_supply_type chg_type) in chg_to_string() argument 784 switch (chg_type) { in chg_to_string() 827 rphy->chg_type = POWER_SUPPLY_TYPE_USB; in rockchip_chg_detect() 830 rphy->chg_type = POWER_SUPPLY_TYPE_USB_DCP; in rockchip_chg_detect() 833 rphy->chg_type = POWER_SUPPLY_TYPE_USB_CDP; in rockchip_chg_detect() 838 rphy->chg_type = POWER_SUPPLY_TYPE_UNKNOWN; in rockchip_chg_detect() 843 chg_to_string(rphy->chg_type)); in rockchip_chg_detect() 939 switch (rphy->chg_type) { in rockchip_usb2phy_otg_sm_work() 969 rphy->chg_type = POWER_SUPPLY_TYPE_UNKNOWN; in rockchip_usb2phy_otg_sm_work()
|
| H A D | phy-rockchip-inno-usb2.c | 344 enum power_supply_type chg_type; member 1245 rphy->chg_type = POWER_SUPPLY_TYPE_UNKNOWN; in rockchip_usb2phy_otg_sm_work() 1257 switch (rphy->chg_type) { in rockchip_usb2phy_otg_sm_work() 1294 rphy->chg_type = POWER_SUPPLY_TYPE_UNKNOWN; in rockchip_usb2phy_otg_sm_work() 1311 rphy->chg_type = POWER_SUPPLY_TYPE_UNKNOWN; in rockchip_usb2phy_otg_sm_work() 1320 rphy->chg_type = POWER_SUPPLY_TYPE_UNKNOWN; in rockchip_usb2phy_otg_sm_work() 1372 static const char *chg_to_string(enum power_supply_type chg_type) in chg_to_string() argument 1374 switch (chg_type) { in chg_to_string() 1495 rphy->chg_type = POWER_SUPPLY_TYPE_USB_DCP; in rockchip_chg_detect_work() 1512 rphy->chg_type = POWER_SUPPLY_TYPE_USB; in rockchip_chg_detect_work() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/platform/chrome/ |
| H A D | cros_usbpd_logger.c | 83 const char *fault, *role, *chg_type; in cros_usbpd_print_log_entry() local 112 chg_type = type_idx < ARRAY_SIZE(chg_type_names) ? in cros_usbpd_print_log_entry() 125 chg_type, meas->voltage_now, in cros_usbpd_print_log_entry()
|
| /OK3568_Linux_fs/kernel/drivers/usb/chipidea/ |
| H A D | usbmisc_imx.c | 719 usb_phy->chg_type = DCP_TYPE; in imx7d_charger_secondary_detection() 722 usb_phy->chg_type = CDP_TYPE; in imx7d_charger_secondary_detection() 819 usb_phy->chg_type = SDP_TYPE; in imx7d_charger_primary_detection() 868 if (!ret && usb_phy->chg_type != SDP_TYPE) in imx7d_charger_detection() 1091 usb_phy->chg_type = UNKNOWN_TYPE; in imx_usbmisc_charger_detection()
|
| /OK3568_Linux_fs/kernel/include/linux/usb/ |
| H A D | phy.h | 111 enum usb_charger_type chg_type; member
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/ |
| H A D | tegra-xudc.c | 2157 if (xudc->curr_usbphy->chg_type == SDP_TYPE) in tegra_xudc_gadget_vbus_draw()
|