Lines Matching defs:charger
3 * Driver for Richtek RT9455WSC battery charger.
21 #define RT9455_DRIVER_NAME "rt9455-charger"
180 * When the charger is in charge mode, REG02[7:2] represent battery regulation
196 * When the charger is in boost mode, REG02[7:2] represent boost output
236 struct power_supply *charger;
382 * If PWR_RDY bit is set, but STAT bits value is 0, the charger
690 * charger is connected to a power source.
693 * When the OS is loaded and the charger driver is inserted, it is used
799 * Before setting the charger into boost mode, boost output voltage is
802 * or boost output voltage, depending on the mode the charger is. Both battery
825 * Before setting the charger into charge mode, battery regulation voltage is
828 * or boost output voltage, depending on the mode the charger is. Both battery
968 * 1. when the power source is connected to the charger.
969 * 2. when the power source is disconnected from the charger.
1025 * No need to check whether the charger is connected to
1027 * is not triggered if the charger is not connected to
1094 dev_info(dev, "Boost fault occurred, therefore the charger goes into charge mode\n");
1103 dev_err(dev, "Failed to set charger in charge mode\n");
1127 dev_err(dev, "Interrupt is not for RT9455 charger\n");
1175 if (info->charger)
1176 power_supply_changed(info->charger);
1252 * If the charger is in boost mode, and it has received
1254 * charger is not connected anymore.
1255 * In this case, the charger goes into charge mode.
1257 dev_dbg(dev, "USB_EVENT_NONE received, therefore the charger goes into charge mode\n");
1261 dev_err(dev, "Failed to set charger in charge mode\n");
1292 * If the charger is in boost mode, and it has received
1294 * charger is not connected anymore.
1295 * In this case, the charger goes into charge mode.
1297 dev_dbg(dev, "USB_EVENT_VBUS received, therefore the charger goes into charge mode\n");
1301 dev_err(dev, "Failed to set charger in charge mode\n");
1332 * If the charger is in charge mode, and it has received
1334 * it should be powered by the charger.
1335 * In this case, the charger goes into boost mode.
1337 dev_dbg(dev, "USB_EVENT_ID received, therefore the charger goes into boost mode\n");
1341 dev_err(dev, "Failed to set charger in boost mode\n");
1372 * If the charger is in boost mode, and it has received
1374 * the charger is not connected anymore.
1375 * In this case, the charger goes into charge mode.
1377 dev_dbg(dev, "USB_EVENT_CHARGER received, therefore the charger goes into charge mode\n");
1381 dev_err(dev, "Failed to set charger in charge mode\n");
1408 * Determine whether the charger is in charge mode
1474 * Notify userspace that the charger has been either connected to or
1477 power_supply_changed(info->charger);
1535 * charger.
1537 power_supply_changed(info->charger);
1631 dev_err(dev, "Failed to discover charger\n");
1675 dev_err(dev, "Failed to set charger to its default values\n");
1679 info->charger = devm_power_supply_register(dev, &rt9455_charger_desc,
1681 if (IS_ERR(info->charger)) {
1682 dev_err(dev, "Failed to register charger\n");
1683 ret = PTR_ERR(info->charger);
1706 dev_err(&info->client->dev, "Failed to set charger to its default values\n");