Lines Matching full:charger
3 * max8903_charger.c - Maxim 8903 USB/Adapter Charger Driver
28 struct gpio_desc *cen; /* Charger Enable input */
31 struct gpio_desc *chg; /* Charger status output */
41 POWER_SUPPLY_PROP_STATUS, /* Charger status output */
106 /* Charger Enable / Disable */ in max8903_dcin()
114 /* Enable if the USB charger is enabled */ in max8903_dcin()
123 dev_dbg(data->dev, "TA(DC-IN) Charger %s.\n", ta_in ? in max8903_dcin()
163 /* Charger Enable / Disable */ in max8903_usbin()
171 /* Enable if the DC charger is enabled */ in max8903_usbin()
180 dev_dbg(data->dev, "USB Charger %s.\n", usb_in ? in max8903_usbin()
218 dev_err(data->dev, "Charger suffers a fault and stops.\n"); in max8903_fault()
220 dev_err(data->dev, "Charger recovered from a fault.\n"); in max8903_fault()
240 * The DC OK is pulled up to 1 and goes low when a charger in max8903_setup_gpios()
243 * here if the DC charger is plugged in. in max8903_setup_gpios()
255 * The USB OK is pulled up to 1 and goes low when a USB charger in max8903_setup_gpios()
258 * here if the USB charger is plugged in. in max8903_setup_gpios()
270 * If either charger is already connected at this point, in max8903_setup_gpios()
279 * If DC OK is provided, Charger Enable CEN is compulsory in max8903_setup_gpios()
289 * If the DC charger is connected, then select it. in max8903_setup_gpios()
292 * device tree. Driving it high will enable the DC charger in max8903_setup_gpios()
293 * input over the USB charger input. in max8903_setup_gpios()
413 .name = "max8903-charger",
421 MODULE_DESCRIPTION("MAX8903 Charger Driver");
423 MODULE_ALIAS("platform:max8903-charger");