Lines Matching defs:charger

3  * Driver for Richtek RT9455WSC battery charger.
22 #define RT9455_DRIVER_NAME "rt9455-charger"
181 * When the charger is in charge mode, REG02[7:2] represent battery regulation
197 * When the charger is in boost mode, REG02[7:2] represent boost output
237 struct power_supply *charger;
383 * If PWR_RDY bit is set, but STAT bits value is 0, the charger
691 * charger is connected to a power source.
694 * When the OS is loaded and the charger driver is inserted, it is used
800 * Before setting the charger into boost mode, boost output voltage is
803 * or boost output voltage, depending on the mode the charger is. Both battery
826 * Before setting the charger into charge mode, battery regulation voltage is
829 * or boost output voltage, depending on the mode the charger is. Both battery
969 * 1. when the power source is connected to the charger.
970 * 2. when the power source is disconnected from the charger.
1026 * No need to check whether the charger is connected to
1028 * is not triggered if the charger is not connected to
1095 dev_info(dev, "Boost fault occurred, therefore the charger goes into charge mode\n");
1104 dev_err(dev, "Failed to set charger in charge mode\n");
1128 dev_err(dev, "Interrupt is not for RT9455 charger\n");
1176 if (info->charger)
1177 power_supply_changed(info->charger);
1253 * If the charger is in boost mode, and it has received
1255 * charger is not connected anymore.
1256 * In this case, the charger goes into charge mode.
1258 dev_dbg(dev, "USB_EVENT_NONE received, therefore the charger goes into charge mode\n");
1262 dev_err(dev, "Failed to set charger in charge mode\n");
1293 * If the charger is in boost mode, and it has received
1295 * charger is not connected anymore.
1296 * In this case, the charger goes into charge mode.
1298 dev_dbg(dev, "USB_EVENT_VBUS received, therefore the charger goes into charge mode\n");
1302 dev_err(dev, "Failed to set charger in charge mode\n");
1333 * If the charger is in charge mode, and it has received
1335 * it should be powered by the charger.
1336 * In this case, the charger goes into boost mode.
1338 dev_dbg(dev, "USB_EVENT_ID received, therefore the charger goes into boost mode\n");
1342 dev_err(dev, "Failed to set charger in boost mode\n");
1373 * If the charger is in boost mode, and it has received
1375 * the charger is not connected anymore.
1376 * In this case, the charger goes into charge mode.
1378 dev_dbg(dev, "USB_EVENT_CHARGER received, therefore the charger goes into charge mode\n");
1382 dev_err(dev, "Failed to set charger in charge mode\n");
1409 * Determine whether the charger is in charge mode
1475 * Notify userspace that the charger has been either connected to or
1478 power_supply_changed(info->charger);
1536 * charger.
1538 power_supply_changed(info->charger);
1633 dev_err(dev, "Failed to discover charger\n");
1677 dev_err(dev, "Failed to set charger to its default values\n");
1681 info->charger = devm_power_supply_register(dev, &rt9455_charger_desc,
1683 if (IS_ERR(info->charger)) {
1684 dev_err(dev, "Failed to register charger\n");
1685 ret = PTR_ERR(info->charger);
1708 dev_err(&info->client->dev, "Failed to set charger to its default values\n");