blob: c33532bbb9c75a8e75717cc4a5b844f1800e09eb [file] [log] [blame]
Woogyom Kim2165c8a2012-01-04 08:27:43 +04001/*
Kim, Milof7bae492012-01-26 22:59:08 -08002 * Driver for LP8727 Micro/Mini USB IC with integrated charger
Woogyom Kim2165c8a2012-01-04 08:27:43 +04003 *
Kim, Miloe39b8282012-01-29 17:28:18 -08004 * Copyright (C) 2011 Texas Instruments
Woogyom Kim2165c8a2012-01-04 08:27:43 +04005 * Copyright (C) 2011 National Semiconductor
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11 */
12
13#include <linux/module.h>
14#include <linux/slab.h>
15#include <linux/interrupt.h>
16#include <linux/i2c.h>
17#include <linux/power_supply.h>
Kim, Milo1aebb092012-07-03 01:19:03 +000018#include <linux/platform_data/lp8727.h>
Woogyom Kim2165c8a2012-01-04 08:27:43 +040019
Kim, Milo60fd57e2012-08-31 09:23:25 +000020#define DEFAULT_DEBOUNCE_MSEC 270
Woogyom Kim2165c8a2012-01-04 08:27:43 +040021
22/* Registers */
23#define CTRL1 0x1
24#define CTRL2 0x2
25#define SWCTRL 0x3
26#define INT1 0x4
27#define INT2 0x5
28#define STATUS1 0x6
Kim, Milo73368802012-01-26 22:58:51 -080029#define STATUS2 0x7
Woogyom Kim2165c8a2012-01-04 08:27:43 +040030#define CHGCTRL2 0x9
31
32/* CTRL1 register */
33#define CP_EN (1 << 0)
34#define ADC_EN (1 << 1)
35#define ID200_EN (1 << 4)
36
37/* CTRL2 register */
38#define CHGDET_EN (1 << 1)
39#define INT_EN (1 << 6)
40
41/* SWCTRL register */
42#define SW_DM1_DM (0x0 << 0)
43#define SW_DM1_U1 (0x1 << 0)
44#define SW_DM1_HiZ (0x7 << 0)
45#define SW_DP2_DP (0x0 << 3)
46#define SW_DP2_U2 (0x1 << 3)
47#define SW_DP2_HiZ (0x7 << 3)
48
49/* INT1 register */
50#define IDNO (0xF << 0)
51#define VBUS (1 << 4)
52
53/* STATUS1 register */
54#define CHGSTAT (3 << 4)
55#define CHPORT (1 << 6)
56#define DCPORT (1 << 7)
57
58/* STATUS2 register */
59#define TEMP_STAT (3 << 5)
60
61enum lp8727_dev_id {
62 ID_NONE,
63 ID_TA,
64 ID_DEDICATED_CHG,
65 ID_USB_CHG,
66 ID_USB_DS,
67 ID_MAX,
68};
69
70enum lp8727_chg_stat {
71 PRECHG,
72 CC,
73 CV,
74 EOC,
75};
76
77struct lp8727_psy {
78 struct power_supply ac;
79 struct power_supply usb;
80 struct power_supply batt;
81};
82
83struct lp8727_chg {
84 struct device *dev;
85 struct i2c_client *client;
86 struct mutex xfer_lock;
87 struct delayed_work work;
Woogyom Kim2165c8a2012-01-04 08:27:43 +040088 struct lp8727_platform_data *pdata;
89 struct lp8727_psy *psy;
90 struct lp8727_chg_param *chg_parm;
91 enum lp8727_dev_id devid;
Kim, Milo60fd57e2012-08-31 09:23:25 +000092 unsigned long debounce_jiffies;
Woogyom Kim2165c8a2012-01-04 08:27:43 +040093};
94
Kim, Milo27aefa32012-01-26 22:58:39 -080095static int lp8727_read_bytes(struct lp8727_chg *pchg, u8 reg, u8 *data, u8 len)
Woogyom Kim2165c8a2012-01-04 08:27:43 +040096{
97 s32 ret;
98
99 mutex_lock(&pchg->xfer_lock);
100 ret = i2c_smbus_read_i2c_block_data(pchg->client, reg, len, data);
101 mutex_unlock(&pchg->xfer_lock);
102
103 return (ret != len) ? -EIO : 0;
104}
105
Kim, Milo27aefa32012-01-26 22:58:39 -0800106static inline int lp8727_read_byte(struct lp8727_chg *pchg, u8 reg, u8 *data)
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400107{
Kim, Milo27aefa32012-01-26 22:58:39 -0800108 return lp8727_read_bytes(pchg, reg, data, 1);
109}
110
111static int lp8727_write_byte(struct lp8727_chg *pchg, u8 reg, u8 data)
112{
113 int ret;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400114
115 mutex_lock(&pchg->xfer_lock);
Kim, Milo27aefa32012-01-26 22:58:39 -0800116 ret = i2c_smbus_write_byte_data(pchg->client, reg, data);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400117 mutex_unlock(&pchg->xfer_lock);
118
119 return ret;
120}
121
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400122static int lp8727_is_charger_attached(const char *name, int id)
123{
124 if (name) {
125 if (!strcmp(name, "ac"))
126 return (id == ID_TA || id == ID_DEDICATED_CHG) ? 1 : 0;
127 else if (!strcmp(name, "usb"))
128 return (id == ID_USB_CHG) ? 1 : 0;
129 }
130
131 return (id >= ID_TA && id <= ID_USB_CHG) ? 1 : 0;
132}
133
Kim, Milo7da63342012-01-26 22:58:30 -0800134static int lp8727_init_device(struct lp8727_chg *pchg)
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400135{
136 u8 val;
Kim, Milo7da63342012-01-26 22:58:30 -0800137 int ret;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400138
139 val = ID200_EN | ADC_EN | CP_EN;
Kim, Milo27aefa32012-01-26 22:58:39 -0800140 ret = lp8727_write_byte(pchg, CTRL1, val);
Kim, Milo7da63342012-01-26 22:58:30 -0800141 if (ret)
142 return ret;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400143
144 val = INT_EN | CHGDET_EN;
Kim, Milo27aefa32012-01-26 22:58:39 -0800145 ret = lp8727_write_byte(pchg, CTRL2, val);
Kim, Milo7da63342012-01-26 22:58:30 -0800146 if (ret)
147 return ret;
148
149 return 0;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400150}
151
152static int lp8727_is_dedicated_charger(struct lp8727_chg *pchg)
153{
154 u8 val;
Kim, Milo27aefa32012-01-26 22:58:39 -0800155 lp8727_read_byte(pchg, STATUS1, &val);
Kim, Milo73368802012-01-26 22:58:51 -0800156 return val & DCPORT;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400157}
158
159static int lp8727_is_usb_charger(struct lp8727_chg *pchg)
160{
161 u8 val;
Kim, Milo27aefa32012-01-26 22:58:39 -0800162 lp8727_read_byte(pchg, STATUS1, &val);
Kim, Milo73368802012-01-26 22:58:51 -0800163 return val & CHPORT;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400164}
165
166static void lp8727_ctrl_switch(struct lp8727_chg *pchg, u8 sw)
167{
Kim, Milo27aefa32012-01-26 22:58:39 -0800168 lp8727_write_byte(pchg, SWCTRL, sw);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400169}
170
171static void lp8727_id_detection(struct lp8727_chg *pchg, u8 id, int vbusin)
172{
Kim, Milo318cb382012-08-31 09:23:12 +0000173 struct lp8727_platform_data *pdata = pchg->pdata;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400174 u8 devid = ID_NONE;
175 u8 swctrl = SW_DM1_HiZ | SW_DP2_HiZ;
176
177 switch (id) {
178 case 0x5:
179 devid = ID_TA;
Kim, Milo318cb382012-08-31 09:23:12 +0000180 pchg->chg_parm = pdata ? pdata->ac : NULL;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400181 break;
182 case 0xB:
183 if (lp8727_is_dedicated_charger(pchg)) {
Kim, Milo318cb382012-08-31 09:23:12 +0000184 pchg->chg_parm = pdata ? pdata->ac : NULL;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400185 devid = ID_DEDICATED_CHG;
186 } else if (lp8727_is_usb_charger(pchg)) {
Kim, Milo318cb382012-08-31 09:23:12 +0000187 pchg->chg_parm = pdata ? pdata->usb : NULL;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400188 devid = ID_USB_CHG;
189 swctrl = SW_DM1_DM | SW_DP2_DP;
190 } else if (vbusin) {
191 devid = ID_USB_DS;
192 swctrl = SW_DM1_DM | SW_DP2_DP;
193 }
194 break;
195 default:
196 devid = ID_NONE;
197 pchg->chg_parm = NULL;
198 break;
199 }
200
201 pchg->devid = devid;
202 lp8727_ctrl_switch(pchg, swctrl);
203}
204
205static void lp8727_enable_chgdet(struct lp8727_chg *pchg)
206{
207 u8 val;
208
Kim, Milo27aefa32012-01-26 22:58:39 -0800209 lp8727_read_byte(pchg, CTRL2, &val);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400210 val |= CHGDET_EN;
Kim, Milo27aefa32012-01-26 22:58:39 -0800211 lp8727_write_byte(pchg, CTRL2, val);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400212}
213
214static void lp8727_delayed_func(struct work_struct *_work)
215{
216 u8 intstat[2], idno, vbus;
217 struct lp8727_chg *pchg =
218 container_of(_work, struct lp8727_chg, work.work);
219
Kim, Milo27aefa32012-01-26 22:58:39 -0800220 if (lp8727_read_bytes(pchg, INT1, intstat, 2)) {
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400221 dev_err(pchg->dev, "can not read INT registers\n");
222 return;
223 }
224
225 idno = intstat[0] & IDNO;
226 vbus = intstat[0] & VBUS;
227
228 lp8727_id_detection(pchg, idno, vbus);
229 lp8727_enable_chgdet(pchg);
230
231 power_supply_changed(&pchg->psy->ac);
232 power_supply_changed(&pchg->psy->usb);
233 power_supply_changed(&pchg->psy->batt);
234}
235
236static irqreturn_t lp8727_isr_func(int irq, void *ptr)
237{
238 struct lp8727_chg *pchg = ptr;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400239
Kim, Milo2a092582012-08-31 09:23:41 +0000240 schedule_delayed_work(&pchg->work, pchg->debounce_jiffies);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400241 return IRQ_HANDLED;
242}
243
Kim, Milo7da63342012-01-26 22:58:30 -0800244static int lp8727_intr_config(struct lp8727_chg *pchg)
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400245{
Kim, Milo60fd57e2012-08-31 09:23:25 +0000246 unsigned delay_msec = pchg->pdata ? pchg->pdata->debounce_msec :
247 DEFAULT_DEBOUNCE_MSEC;
248
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400249 INIT_DELAYED_WORK(&pchg->work, lp8727_delayed_func);
250
Kim, Milo60fd57e2012-08-31 09:23:25 +0000251 pchg->debounce_jiffies = msecs_to_jiffies(delay_msec);
252
Kim, Milo7da63342012-01-26 22:58:30 -0800253 return request_threaded_irq(pchg->client->irq,
254 NULL,
255 lp8727_isr_func,
Fengguang Wu7c577c0d2012-08-23 19:42:29 +0800256 IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
Kim, Milo7da63342012-01-26 22:58:30 -0800257 "lp8727_irq",
258 pchg);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400259}
260
261static enum power_supply_property lp8727_charger_prop[] = {
262 POWER_SUPPLY_PROP_ONLINE,
263};
264
265static enum power_supply_property lp8727_battery_prop[] = {
266 POWER_SUPPLY_PROP_STATUS,
267 POWER_SUPPLY_PROP_HEALTH,
268 POWER_SUPPLY_PROP_PRESENT,
269 POWER_SUPPLY_PROP_VOLTAGE_NOW,
270 POWER_SUPPLY_PROP_CAPACITY,
271 POWER_SUPPLY_PROP_TEMP,
272};
273
274static char *battery_supplied_to[] = {
275 "main_batt",
276};
277
278static int lp8727_charger_get_property(struct power_supply *psy,
279 enum power_supply_property psp,
280 union power_supply_propval *val)
281{
282 struct lp8727_chg *pchg = dev_get_drvdata(psy->dev->parent);
283
Kim, Miloce09aff2012-01-04 09:03:18 +0400284 if (psp == POWER_SUPPLY_PROP_ONLINE)
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400285 val->intval = lp8727_is_charger_attached(psy->name,
286 pchg->devid);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400287
288 return 0;
289}
290
291static int lp8727_battery_get_property(struct power_supply *psy,
292 enum power_supply_property psp,
293 union power_supply_propval *val)
294{
295 struct lp8727_chg *pchg = dev_get_drvdata(psy->dev->parent);
Kim, Milo318cb382012-08-31 09:23:12 +0000296 struct lp8727_platform_data *pdata = pchg->pdata;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400297 u8 read;
298
299 switch (psp) {
300 case POWER_SUPPLY_PROP_STATUS:
301 if (lp8727_is_charger_attached(psy->name, pchg->devid)) {
Kim, Milo27aefa32012-01-26 22:58:39 -0800302 lp8727_read_byte(pchg, STATUS1, &read);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400303 if (((read & CHGSTAT) >> 4) == EOC)
304 val->intval = POWER_SUPPLY_STATUS_FULL;
305 else
306 val->intval = POWER_SUPPLY_STATUS_CHARGING;
307 } else {
308 val->intval = POWER_SUPPLY_STATUS_DISCHARGING;
309 }
310 break;
311 case POWER_SUPPLY_PROP_HEALTH:
Kim, Milo27aefa32012-01-26 22:58:39 -0800312 lp8727_read_byte(pchg, STATUS2, &read);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400313 read = (read & TEMP_STAT) >> 5;
314 if (read >= 0x1 && read <= 0x3)
315 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT;
316 else
317 val->intval = POWER_SUPPLY_HEALTH_GOOD;
318 break;
319 case POWER_SUPPLY_PROP_PRESENT:
Kim, Milo318cb382012-08-31 09:23:12 +0000320 if (!pdata)
321 return -EINVAL;
322
323 if (pdata->get_batt_present)
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400324 val->intval = pchg->pdata->get_batt_present();
325 break;
326 case POWER_SUPPLY_PROP_VOLTAGE_NOW:
Kim, Milo318cb382012-08-31 09:23:12 +0000327 if (!pdata)
328 return -EINVAL;
329
330 if (pdata->get_batt_level)
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400331 val->intval = pchg->pdata->get_batt_level();
332 break;
333 case POWER_SUPPLY_PROP_CAPACITY:
Kim, Milo318cb382012-08-31 09:23:12 +0000334 if (!pdata)
335 return -EINVAL;
336
337 if (pdata->get_batt_capacity)
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400338 val->intval = pchg->pdata->get_batt_capacity();
339 break;
340 case POWER_SUPPLY_PROP_TEMP:
Kim, Milo318cb382012-08-31 09:23:12 +0000341 if (!pdata)
342 return -EINVAL;
343
344 if (pdata->get_batt_temp)
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400345 val->intval = pchg->pdata->get_batt_temp();
346 break;
347 default:
348 break;
349 }
350
351 return 0;
352}
353
354static void lp8727_charger_changed(struct power_supply *psy)
355{
356 struct lp8727_chg *pchg = dev_get_drvdata(psy->dev->parent);
357 u8 val;
358 u8 eoc_level, ichg;
359
360 if (lp8727_is_charger_attached(psy->name, pchg->devid)) {
361 if (pchg->chg_parm) {
362 eoc_level = pchg->chg_parm->eoc_level;
363 ichg = pchg->chg_parm->ichg;
364 val = (ichg << 4) | eoc_level;
Kim, Milo27aefa32012-01-26 22:58:39 -0800365 lp8727_write_byte(pchg, CHGCTRL2, val);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400366 }
367 }
368}
369
370static int lp8727_register_psy(struct lp8727_chg *pchg)
371{
372 struct lp8727_psy *psy;
373
Kim, Milo74727c52012-08-31 09:22:46 +0000374 psy = devm_kzalloc(pchg->dev, sizeof(*psy), GFP_KERNEL);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400375 if (!psy)
Devendra Naga6297b5e2012-07-29 23:31:55 +0545376 return -ENOMEM;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400377
378 pchg->psy = psy;
379
380 psy->ac.name = "ac";
381 psy->ac.type = POWER_SUPPLY_TYPE_MAINS;
382 psy->ac.properties = lp8727_charger_prop;
383 psy->ac.num_properties = ARRAY_SIZE(lp8727_charger_prop);
384 psy->ac.get_property = lp8727_charger_get_property;
385 psy->ac.supplied_to = battery_supplied_to;
386 psy->ac.num_supplicants = ARRAY_SIZE(battery_supplied_to);
387
388 if (power_supply_register(pchg->dev, &psy->ac))
Devendra Naga6297b5e2012-07-29 23:31:55 +0545389 goto err_psy_ac;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400390
391 psy->usb.name = "usb";
392 psy->usb.type = POWER_SUPPLY_TYPE_USB;
393 psy->usb.properties = lp8727_charger_prop;
394 psy->usb.num_properties = ARRAY_SIZE(lp8727_charger_prop);
395 psy->usb.get_property = lp8727_charger_get_property;
396 psy->usb.supplied_to = battery_supplied_to;
397 psy->usb.num_supplicants = ARRAY_SIZE(battery_supplied_to);
398
399 if (power_supply_register(pchg->dev, &psy->usb))
Devendra Naga6297b5e2012-07-29 23:31:55 +0545400 goto err_psy_usb;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400401
402 psy->batt.name = "main_batt";
403 psy->batt.type = POWER_SUPPLY_TYPE_BATTERY;
404 psy->batt.properties = lp8727_battery_prop;
405 psy->batt.num_properties = ARRAY_SIZE(lp8727_battery_prop);
406 psy->batt.get_property = lp8727_battery_get_property;
407 psy->batt.external_power_changed = lp8727_charger_changed;
408
409 if (power_supply_register(pchg->dev, &psy->batt))
Devendra Naga6297b5e2012-07-29 23:31:55 +0545410 goto err_psy_batt;
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400411
412 return 0;
413
Devendra Naga6297b5e2012-07-29 23:31:55 +0545414err_psy_batt:
415 power_supply_unregister(&psy->usb);
416err_psy_usb:
417 power_supply_unregister(&psy->ac);
418err_psy_ac:
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400419 return -EPERM;
420}
421
422static void lp8727_unregister_psy(struct lp8727_chg *pchg)
423{
424 struct lp8727_psy *psy = pchg->psy;
425
Kim, Miloce09aff2012-01-04 09:03:18 +0400426 if (!psy)
427 return;
428
429 power_supply_unregister(&psy->ac);
430 power_supply_unregister(&psy->usb);
431 power_supply_unregister(&psy->batt);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400432}
433
434static int lp8727_probe(struct i2c_client *cl, const struct i2c_device_id *id)
435{
436 struct lp8727_chg *pchg;
437 int ret;
438
Kim, Milo998a8e72011-11-17 21:43:06 -0800439 if (!i2c_check_functionality(cl->adapter, I2C_FUNC_SMBUS_I2C_BLOCK))
440 return -EIO;
441
Kim, Milo74727c52012-08-31 09:22:46 +0000442 pchg = devm_kzalloc(&cl->dev, sizeof(*pchg), GFP_KERNEL);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400443 if (!pchg)
444 return -ENOMEM;
445
446 pchg->client = cl;
447 pchg->dev = &cl->dev;
448 pchg->pdata = cl->dev.platform_data;
449 i2c_set_clientdata(cl, pchg);
450
451 mutex_init(&pchg->xfer_lock);
452
Kim, Milo7da63342012-01-26 22:58:30 -0800453 ret = lp8727_init_device(pchg);
454 if (ret) {
455 dev_err(pchg->dev, "i2c communication err: %d", ret);
Kim, Milofb9adc52012-08-31 09:23:03 +0000456 return ret;
Kim, Milo7da63342012-01-26 22:58:30 -0800457 }
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400458
459 ret = lp8727_register_psy(pchg);
Kim, Milo7da63342012-01-26 22:58:30 -0800460 if (ret) {
461 dev_err(pchg->dev, "power supplies register err: %d", ret);
Kim, Milofb9adc52012-08-31 09:23:03 +0000462 return ret;
463 }
464
465 ret = lp8727_intr_config(pchg);
466 if (ret) {
467 dev_err(pchg->dev, "irq handler err: %d", ret);
468 lp8727_unregister_psy(pchg);
469 return ret;
Kim, Milo7da63342012-01-26 22:58:30 -0800470 }
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400471
472 return 0;
473}
474
475static int __devexit lp8727_remove(struct i2c_client *cl)
476{
477 struct lp8727_chg *pchg = i2c_get_clientdata(cl);
478
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400479 free_irq(pchg->client->irq, pchg);
Kim, Milofb9adc52012-08-31 09:23:03 +0000480 lp8727_unregister_psy(pchg);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400481 return 0;
482}
483
484static const struct i2c_device_id lp8727_ids[] = {
485 {"lp8727", 0},
Axel Lin455a0e22012-01-16 13:48:20 +0800486 { }
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400487};
Axel Line2c5f7d2012-01-12 20:45:02 +0800488MODULE_DEVICE_TABLE(i2c, lp8727_ids);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400489
490static struct i2c_driver lp8727_driver = {
491 .driver = {
492 .name = "lp8727",
493 },
494 .probe = lp8727_probe,
495 .remove = __devexit_p(lp8727_remove),
496 .id_table = lp8727_ids,
497};
Axel Lin5ff92e72012-01-21 14:42:54 +0800498module_i2c_driver(lp8727_driver);
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400499
Kim, Miloe39b8282012-01-29 17:28:18 -0800500MODULE_DESCRIPTION("TI/National Semiconductor LP8727 charger driver");
Kim, Milo73368802012-01-26 22:58:51 -0800501MODULE_AUTHOR("Woogyom Kim <milo.kim@ti.com>, "
502 "Daniel Jeong <daniel.jeong@ti.com>");
Woogyom Kim2165c8a2012-01-04 08:27:43 +0400503MODULE_LICENSE("GPL");