blob: 67ec6ad7eb5e6e8bc2d357e4ac1f851bcc1615eb [file] [log] [blame]
Wolfram Sang27f37e42009-09-25 09:39:26 +02001/*
2 * max8660.c -- Voltage regulation for the Maxim 8660/8661
3 *
4 * based on max1586.c and wm8400-regulator.c
5 *
6 * Copyright (C) 2009 Wolfram Sang, Pengutronix e.K.
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the Free
10 * Software Foundation; version 2 of the License.
11 *
12 * This program is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * more details.
16 *
17 * You should have received a copy of the GNU General Public License along with
18 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19 * Place, Suite 330, Boston, MA 02111-1307 USA
20 *
21 * Some info:
22 *
23 * Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX8660-MAX8661.pdf
24 *
25 * This chip is a bit nasty because it is a write-only device. Thus, the driver
26 * uses shadow registers to keep track of its values. The main problem appears
27 * to be the initialization: When Linux boots up, we cannot know if the chip is
28 * in the default state or not, so we would have to pass such information in
29 * platform_data. As this adds a bit of complexity to the driver, this is left
30 * out for now until it is really needed.
31 *
32 * [A|S|M]DTV1 registers are currently not used, but [A|S|M]DTV2.
33 *
34 * If the driver is feature complete, it might be worth to check if one set of
35 * functions for V3-V7 is sufficient. For maximum flexibility during
36 * development, they are separated for now.
37 *
38 */
39
40#include <linux/module.h>
41#include <linux/err.h>
42#include <linux/i2c.h>
43#include <linux/platform_device.h>
44#include <linux/regulator/driver.h>
Tejun Heo5a0e3ad2010-03-24 17:04:11 +090045#include <linux/slab.h>
Wolfram Sang27f37e42009-09-25 09:39:26 +020046#include <linux/regulator/max8660.h>
47
48#define MAX8660_DCDC_MIN_UV 725000
49#define MAX8660_DCDC_MAX_UV 1800000
50#define MAX8660_DCDC_STEP 25000
51#define MAX8660_DCDC_MAX_SEL 0x2b
52
53#define MAX8660_LDO5_MIN_UV 1700000
54#define MAX8660_LDO5_MAX_UV 2000000
55#define MAX8660_LDO5_STEP 25000
56#define MAX8660_LDO5_MAX_SEL 0x0c
57
58#define MAX8660_LDO67_MIN_UV 1800000
59#define MAX8660_LDO67_MAX_UV 3300000
60#define MAX8660_LDO67_STEP 100000
61#define MAX8660_LDO67_MAX_SEL 0x0f
62
63enum {
64 MAX8660_OVER1,
65 MAX8660_OVER2,
66 MAX8660_VCC1,
67 MAX8660_ADTV1,
68 MAX8660_ADTV2,
69 MAX8660_SDTV1,
70 MAX8660_SDTV2,
71 MAX8660_MDTV1,
72 MAX8660_MDTV2,
73 MAX8660_L12VCR,
74 MAX8660_FPWM,
75 MAX8660_N_REGS, /* not a real register */
76};
77
78struct max8660 {
79 struct i2c_client *client;
80 u8 shadow_regs[MAX8660_N_REGS]; /* as chip is write only */
81 struct regulator_dev *rdev[];
82};
83
84static int max8660_write(struct max8660 *max8660, u8 reg, u8 mask, u8 val)
85{
86 static const u8 max8660_addresses[MAX8660_N_REGS] =
87 { 0x10, 0x12, 0x20, 0x23, 0x24, 0x29, 0x2a, 0x32, 0x33, 0x39, 0x80 };
88
89 int ret;
90 u8 reg_val = (max8660->shadow_regs[reg] & mask) | val;
91 dev_vdbg(&max8660->client->dev, "Writing reg %02x with %02x\n",
92 max8660_addresses[reg], reg_val);
93
94 ret = i2c_smbus_write_byte_data(max8660->client,
95 max8660_addresses[reg], reg_val);
96 if (ret == 0)
97 max8660->shadow_regs[reg] = reg_val;
98
99 return ret;
100}
101
102
103/*
104 * DCDC functions
105 */
106
107static int max8660_dcdc_is_enabled(struct regulator_dev *rdev)
108{
109 struct max8660 *max8660 = rdev_get_drvdata(rdev);
110 u8 val = max8660->shadow_regs[MAX8660_OVER1];
111 u8 mask = (rdev_get_id(rdev) == MAX8660_V3) ? 1 : 4;
112 return !!(val & mask);
113}
114
115static int max8660_dcdc_enable(struct regulator_dev *rdev)
116{
117 struct max8660 *max8660 = rdev_get_drvdata(rdev);
118 u8 bit = (rdev_get_id(rdev) == MAX8660_V3) ? 1 : 4;
119 return max8660_write(max8660, MAX8660_OVER1, 0xff, bit);
120}
121
122static int max8660_dcdc_disable(struct regulator_dev *rdev)
123{
124 struct max8660 *max8660 = rdev_get_drvdata(rdev);
125 u8 mask = (rdev_get_id(rdev) == MAX8660_V3) ? ~1 : ~4;
126 return max8660_write(max8660, MAX8660_OVER1, mask, 0);
127}
128
Wolfram Sang27f37e42009-09-25 09:39:26 +0200129static int max8660_dcdc_get(struct regulator_dev *rdev)
130{
131 struct max8660 *max8660 = rdev_get_drvdata(rdev);
132 u8 reg = (rdev_get_id(rdev) == MAX8660_V3) ? MAX8660_ADTV2 : MAX8660_SDTV2;
133 u8 selector = max8660->shadow_regs[reg];
134 return MAX8660_DCDC_MIN_UV + selector * MAX8660_DCDC_STEP;
135}
136
Mark Brown3a93f2a2010-11-10 14:38:29 +0000137static int max8660_dcdc_set(struct regulator_dev *rdev, int min_uV, int max_uV,
138 unsigned int *s)
Wolfram Sang27f37e42009-09-25 09:39:26 +0200139{
140 struct max8660 *max8660 = rdev_get_drvdata(rdev);
141 u8 reg, selector, bits;
142 int ret;
143
144 if (min_uV < MAX8660_DCDC_MIN_UV || min_uV > MAX8660_DCDC_MAX_UV)
145 return -EINVAL;
146 if (max_uV < MAX8660_DCDC_MIN_UV || max_uV > MAX8660_DCDC_MAX_UV)
147 return -EINVAL;
148
Axel Linab353c22012-03-02 16:23:39 +0800149 selector = DIV_ROUND_UP(min_uV - MAX8660_DCDC_MIN_UV,
150 MAX8660_DCDC_STEP);
Wolfram Sang27f37e42009-09-25 09:39:26 +0200151
Axel Lin134d34a2012-05-15 21:41:18 +0800152 ret = regulator_list_voltage_linear(rdev, selector);
Wolfram Sang27f37e42009-09-25 09:39:26 +0200153 if (ret < 0 || ret > max_uV)
154 return -EINVAL;
155
Axel Linab353c22012-03-02 16:23:39 +0800156 *s = selector;
157
Wolfram Sang27f37e42009-09-25 09:39:26 +0200158 reg = (rdev_get_id(rdev) == MAX8660_V3) ? MAX8660_ADTV2 : MAX8660_SDTV2;
159 ret = max8660_write(max8660, reg, 0, selector);
160 if (ret)
161 return ret;
162
163 /* Select target voltage register and activate regulation */
164 bits = (rdev_get_id(rdev) == MAX8660_V3) ? 0x03 : 0x30;
165 return max8660_write(max8660, MAX8660_VCC1, 0xff, bits);
166}
167
168static struct regulator_ops max8660_dcdc_ops = {
169 .is_enabled = max8660_dcdc_is_enabled,
Axel Lin134d34a2012-05-15 21:41:18 +0800170 .list_voltage = regulator_list_voltage_linear,
Wolfram Sang27f37e42009-09-25 09:39:26 +0200171 .set_voltage = max8660_dcdc_set,
172 .get_voltage = max8660_dcdc_get,
173};
174
175
176/*
177 * LDO5 functions
178 */
179
Wolfram Sang27f37e42009-09-25 09:39:26 +0200180static int max8660_ldo5_get(struct regulator_dev *rdev)
181{
182 struct max8660 *max8660 = rdev_get_drvdata(rdev);
183 u8 selector = max8660->shadow_regs[MAX8660_MDTV2];
184
185 return MAX8660_LDO5_MIN_UV + selector * MAX8660_LDO5_STEP;
186}
187
Mark Brown3a93f2a2010-11-10 14:38:29 +0000188static int max8660_ldo5_set(struct regulator_dev *rdev, int min_uV, int max_uV,
189 unsigned int *s)
Wolfram Sang27f37e42009-09-25 09:39:26 +0200190{
191 struct max8660 *max8660 = rdev_get_drvdata(rdev);
192 u8 selector;
193 int ret;
194
195 if (min_uV < MAX8660_LDO5_MIN_UV || min_uV > MAX8660_LDO5_MAX_UV)
196 return -EINVAL;
197 if (max_uV < MAX8660_LDO5_MIN_UV || max_uV > MAX8660_LDO5_MAX_UV)
198 return -EINVAL;
199
Axel Linab353c22012-03-02 16:23:39 +0800200 selector = DIV_ROUND_UP(min_uV - MAX8660_LDO5_MIN_UV,
201 MAX8660_LDO5_STEP);
202
Axel Lin134d34a2012-05-15 21:41:18 +0800203 ret = regulator_list_voltage_linear(rdev, selector);
Wolfram Sang27f37e42009-09-25 09:39:26 +0200204 if (ret < 0 || ret > max_uV)
205 return -EINVAL;
206
Mark Brown3a93f2a2010-11-10 14:38:29 +0000207 *s = selector;
208
Wolfram Sang27f37e42009-09-25 09:39:26 +0200209 ret = max8660_write(max8660, MAX8660_MDTV2, 0, selector);
210 if (ret)
211 return ret;
212
213 /* Select target voltage register and activate regulation */
214 return max8660_write(max8660, MAX8660_VCC1, 0xff, 0xc0);
215}
216
217static struct regulator_ops max8660_ldo5_ops = {
Axel Lin134d34a2012-05-15 21:41:18 +0800218 .list_voltage = regulator_list_voltage_linear,
Wolfram Sang27f37e42009-09-25 09:39:26 +0200219 .set_voltage = max8660_ldo5_set,
220 .get_voltage = max8660_ldo5_get,
221};
222
223
224/*
225 * LDO67 functions
226 */
227
228static int max8660_ldo67_is_enabled(struct regulator_dev *rdev)
229{
230 struct max8660 *max8660 = rdev_get_drvdata(rdev);
231 u8 val = max8660->shadow_regs[MAX8660_OVER2];
232 u8 mask = (rdev_get_id(rdev) == MAX8660_V6) ? 2 : 4;
233 return !!(val & mask);
234}
235
236static int max8660_ldo67_enable(struct regulator_dev *rdev)
237{
238 struct max8660 *max8660 = rdev_get_drvdata(rdev);
239 u8 bit = (rdev_get_id(rdev) == MAX8660_V6) ? 2 : 4;
240 return max8660_write(max8660, MAX8660_OVER2, 0xff, bit);
241}
242
243static int max8660_ldo67_disable(struct regulator_dev *rdev)
244{
245 struct max8660 *max8660 = rdev_get_drvdata(rdev);
246 u8 mask = (rdev_get_id(rdev) == MAX8660_V6) ? ~2 : ~4;
247 return max8660_write(max8660, MAX8660_OVER2, mask, 0);
248}
249
Wolfram Sang27f37e42009-09-25 09:39:26 +0200250static int max8660_ldo67_get(struct regulator_dev *rdev)
251{
252 struct max8660 *max8660 = rdev_get_drvdata(rdev);
253 u8 shift = (rdev_get_id(rdev) == MAX8660_V6) ? 0 : 4;
254 u8 selector = (max8660->shadow_regs[MAX8660_L12VCR] >> shift) & 0xf;
255
256 return MAX8660_LDO67_MIN_UV + selector * MAX8660_LDO67_STEP;
257}
258
Mark Brown3a93f2a2010-11-10 14:38:29 +0000259static int max8660_ldo67_set(struct regulator_dev *rdev, int min_uV,
260 int max_uV, unsigned int *s)
Wolfram Sang27f37e42009-09-25 09:39:26 +0200261{
262 struct max8660 *max8660 = rdev_get_drvdata(rdev);
263 u8 selector;
264 int ret;
265
266 if (min_uV < MAX8660_LDO67_MIN_UV || min_uV > MAX8660_LDO67_MAX_UV)
267 return -EINVAL;
268 if (max_uV < MAX8660_LDO67_MIN_UV || max_uV > MAX8660_LDO67_MAX_UV)
269 return -EINVAL;
270
Axel Linab353c22012-03-02 16:23:39 +0800271 selector = DIV_ROUND_UP(min_uV - MAX8660_LDO67_MIN_UV,
272 MAX8660_LDO67_STEP);
Wolfram Sang27f37e42009-09-25 09:39:26 +0200273
Axel Lin134d34a2012-05-15 21:41:18 +0800274 ret = regulator_list_voltage_linear(rdev, selector);
Wolfram Sang27f37e42009-09-25 09:39:26 +0200275 if (ret < 0 || ret > max_uV)
276 return -EINVAL;
277
Mark Brown3a93f2a2010-11-10 14:38:29 +0000278 *s = selector;
279
Wolfram Sang27f37e42009-09-25 09:39:26 +0200280 if (rdev_get_id(rdev) == MAX8660_V6)
281 return max8660_write(max8660, MAX8660_L12VCR, 0xf0, selector);
282 else
283 return max8660_write(max8660, MAX8660_L12VCR, 0x0f, selector << 4);
284}
285
286static struct regulator_ops max8660_ldo67_ops = {
287 .is_enabled = max8660_ldo67_is_enabled,
288 .enable = max8660_ldo67_enable,
289 .disable = max8660_ldo67_disable,
Axel Lin134d34a2012-05-15 21:41:18 +0800290 .list_voltage = regulator_list_voltage_linear,
Wolfram Sang27f37e42009-09-25 09:39:26 +0200291 .get_voltage = max8660_ldo67_get,
292 .set_voltage = max8660_ldo67_set,
293};
294
Axel Lin621adb32012-04-06 08:26:59 +0800295static const struct regulator_desc max8660_reg[] = {
Wolfram Sang27f37e42009-09-25 09:39:26 +0200296 {
297 .name = "V3(DCDC)",
298 .id = MAX8660_V3,
299 .ops = &max8660_dcdc_ops,
300 .type = REGULATOR_VOLTAGE,
301 .n_voltages = MAX8660_DCDC_MAX_SEL + 1,
302 .owner = THIS_MODULE,
Axel Lin134d34a2012-05-15 21:41:18 +0800303 .min_uV = MAX8660_DCDC_MIN_UV,
304 .uV_step = MAX8660_DCDC_STEP,
Wolfram Sang27f37e42009-09-25 09:39:26 +0200305 },
306 {
307 .name = "V4(DCDC)",
308 .id = MAX8660_V4,
309 .ops = &max8660_dcdc_ops,
310 .type = REGULATOR_VOLTAGE,
311 .n_voltages = MAX8660_DCDC_MAX_SEL + 1,
312 .owner = THIS_MODULE,
Axel Lin134d34a2012-05-15 21:41:18 +0800313 .min_uV = MAX8660_DCDC_MIN_UV,
314 .uV_step = MAX8660_DCDC_STEP,
Wolfram Sang27f37e42009-09-25 09:39:26 +0200315 },
316 {
317 .name = "V5(LDO)",
318 .id = MAX8660_V5,
319 .ops = &max8660_ldo5_ops,
320 .type = REGULATOR_VOLTAGE,
321 .n_voltages = MAX8660_LDO5_MAX_SEL + 1,
322 .owner = THIS_MODULE,
Axel Lin134d34a2012-05-15 21:41:18 +0800323 .min_uV = MAX8660_LDO5_MIN_UV,
324 .uV_step = MAX8660_LDO5_STEP,
Wolfram Sang27f37e42009-09-25 09:39:26 +0200325 },
326 {
327 .name = "V6(LDO)",
328 .id = MAX8660_V6,
329 .ops = &max8660_ldo67_ops,
330 .type = REGULATOR_VOLTAGE,
331 .n_voltages = MAX8660_LDO67_MAX_SEL + 1,
332 .owner = THIS_MODULE,
Axel Lin134d34a2012-05-15 21:41:18 +0800333 .min_uV = MAX8660_LDO67_MIN_UV,
334 .uV_step = MAX8660_LDO67_STEP,
Wolfram Sang27f37e42009-09-25 09:39:26 +0200335 },
336 {
337 .name = "V7(LDO)",
338 .id = MAX8660_V7,
339 .ops = &max8660_ldo67_ops,
340 .type = REGULATOR_VOLTAGE,
341 .n_voltages = MAX8660_LDO67_MAX_SEL + 1,
342 .owner = THIS_MODULE,
Axel Lin134d34a2012-05-15 21:41:18 +0800343 .min_uV = MAX8660_LDO67_MIN_UV,
344 .uV_step = MAX8660_LDO67_STEP,
Wolfram Sang27f37e42009-09-25 09:39:26 +0200345 },
346};
347
Dmitry Torokhov308f1002010-02-23 23:38:28 -0800348static int __devinit max8660_probe(struct i2c_client *client,
349 const struct i2c_device_id *i2c_id)
Wolfram Sang27f37e42009-09-25 09:39:26 +0200350{
351 struct regulator_dev **rdev;
352 struct max8660_platform_data *pdata = client->dev.platform_data;
Mark Brownc1727082012-04-04 00:50:22 +0100353 struct regulator_config config = { };
Wolfram Sang27f37e42009-09-25 09:39:26 +0200354 struct max8660 *max8660;
355 int boot_on, i, id, ret = -EINVAL;
356
357 if (pdata->num_subdevs > MAX8660_V_END) {
Dmitry Torokhov308f1002010-02-23 23:38:28 -0800358 dev_err(&client->dev, "Too many regulators found!\n");
Axel Lin4d26f7d2012-04-11 23:08:27 +0800359 return -EINVAL;
Wolfram Sang27f37e42009-09-25 09:39:26 +0200360 }
361
Axel Lin575f6902012-04-17 18:06:50 +0800362 max8660 = devm_kzalloc(&client->dev, sizeof(struct max8660) +
Wolfram Sang27f37e42009-09-25 09:39:26 +0200363 sizeof(struct regulator_dev *) * MAX8660_V_END,
364 GFP_KERNEL);
Axel Lin4d26f7d2012-04-11 23:08:27 +0800365 if (!max8660)
366 return -ENOMEM;
Wolfram Sang27f37e42009-09-25 09:39:26 +0200367
368 max8660->client = client;
369 rdev = max8660->rdev;
370
371 if (pdata->en34_is_high) {
372 /* Simulate always on */
373 max8660->shadow_regs[MAX8660_OVER1] = 5;
374 } else {
375 /* Otherwise devices can be toggled via software */
376 max8660_dcdc_ops.enable = max8660_dcdc_enable;
377 max8660_dcdc_ops.disable = max8660_dcdc_disable;
378 }
379
380 /*
381 * First, set up shadow registers to prevent glitches. As some
382 * registers are shared between regulators, everything must be properly
383 * set up for all regulators in advance.
384 */
385 max8660->shadow_regs[MAX8660_ADTV1] =
386 max8660->shadow_regs[MAX8660_ADTV2] =
387 max8660->shadow_regs[MAX8660_SDTV1] =
388 max8660->shadow_regs[MAX8660_SDTV2] = 0x1b;
389 max8660->shadow_regs[MAX8660_MDTV1] =
390 max8660->shadow_regs[MAX8660_MDTV2] = 0x04;
391
392 for (i = 0; i < pdata->num_subdevs; i++) {
393
394 if (!pdata->subdevs[i].platform_data)
Axel Lin4d26f7d2012-04-11 23:08:27 +0800395 goto err_out;
Wolfram Sang27f37e42009-09-25 09:39:26 +0200396
397 boot_on = pdata->subdevs[i].platform_data->constraints.boot_on;
398
399 switch (pdata->subdevs[i].id) {
400 case MAX8660_V3:
401 if (boot_on)
402 max8660->shadow_regs[MAX8660_OVER1] |= 1;
403 break;
404
405 case MAX8660_V4:
406 if (boot_on)
407 max8660->shadow_regs[MAX8660_OVER1] |= 4;
408 break;
409
410 case MAX8660_V5:
411 break;
412
413 case MAX8660_V6:
414 if (boot_on)
415 max8660->shadow_regs[MAX8660_OVER2] |= 2;
416 break;
417
418 case MAX8660_V7:
419 if (!strcmp(i2c_id->name, "max8661")) {
420 dev_err(&client->dev, "Regulator not on this chip!\n");
Axel Lin4d26f7d2012-04-11 23:08:27 +0800421 goto err_out;
Wolfram Sang27f37e42009-09-25 09:39:26 +0200422 }
423
424 if (boot_on)
425 max8660->shadow_regs[MAX8660_OVER2] |= 4;
426 break;
427
428 default:
429 dev_err(&client->dev, "invalid regulator %s\n",
430 pdata->subdevs[i].name);
Axel Lin4d26f7d2012-04-11 23:08:27 +0800431 goto err_out;
Wolfram Sang27f37e42009-09-25 09:39:26 +0200432 }
433 }
434
435 /* Finally register devices */
436 for (i = 0; i < pdata->num_subdevs; i++) {
437
438 id = pdata->subdevs[i].id;
439
Mark Brownc1727082012-04-04 00:50:22 +0100440 config.dev = &client->dev;
441 config.init_data = pdata->subdevs[i].platform_data;
442 config.driver_data = max8660;
443
444 rdev[i] = regulator_register(&max8660_reg[id], &config);
Wolfram Sang27f37e42009-09-25 09:39:26 +0200445 if (IS_ERR(rdev[i])) {
446 ret = PTR_ERR(rdev[i]);
447 dev_err(&client->dev, "failed to register %s\n",
448 max8660_reg[id].name);
449 goto err_unregister;
450 }
451 }
452
Axel Lin53a4bef2010-08-06 13:35:27 +0800453 i2c_set_clientdata(client, max8660);
Wolfram Sang27f37e42009-09-25 09:39:26 +0200454 return 0;
455
456err_unregister:
457 while (--i >= 0)
458 regulator_unregister(rdev[i]);
Axel Lin4d26f7d2012-04-11 23:08:27 +0800459err_out:
Wolfram Sang27f37e42009-09-25 09:39:26 +0200460 return ret;
461}
462
Dmitry Torokhov308f1002010-02-23 23:38:28 -0800463static int __devexit max8660_remove(struct i2c_client *client)
Wolfram Sang27f37e42009-09-25 09:39:26 +0200464{
Axel Lin53a4bef2010-08-06 13:35:27 +0800465 struct max8660 *max8660 = i2c_get_clientdata(client);
Wolfram Sang27f37e42009-09-25 09:39:26 +0200466 int i;
467
468 for (i = 0; i < MAX8660_V_END; i++)
Axel Lin53a4bef2010-08-06 13:35:27 +0800469 if (max8660->rdev[i])
470 regulator_unregister(max8660->rdev[i]);
Wolfram Sang27f37e42009-09-25 09:39:26 +0200471 return 0;
472}
473
474static const struct i2c_device_id max8660_id[] = {
475 { "max8660", 0 },
476 { "max8661", 0 },
477 { }
478};
479MODULE_DEVICE_TABLE(i2c, max8660_id);
480
481static struct i2c_driver max8660_driver = {
482 .probe = max8660_probe,
Dmitry Torokhov308f1002010-02-23 23:38:28 -0800483 .remove = __devexit_p(max8660_remove),
Wolfram Sang27f37e42009-09-25 09:39:26 +0200484 .driver = {
485 .name = "max8660",
Dmitry Torokhov308f1002010-02-23 23:38:28 -0800486 .owner = THIS_MODULE,
Wolfram Sang27f37e42009-09-25 09:39:26 +0200487 },
488 .id_table = max8660_id,
489};
490
491static int __init max8660_init(void)
492{
493 return i2c_add_driver(&max8660_driver);
494}
495subsys_initcall(max8660_init);
496
497static void __exit max8660_exit(void)
498{
499 i2c_del_driver(&max8660_driver);
500}
501module_exit(max8660_exit);
502
503/* Module information */
504MODULE_DESCRIPTION("MAXIM 8660/8661 voltage regulator driver");
505MODULE_AUTHOR("Wolfram Sang");
506MODULE_LICENSE("GPL v2");