blob: 112efd3c494041717a3253a5856a949c0cbe39f3 [file] [log] [blame]
Rabin Vincentb4ecd322010-05-10 23:39:47 +02001/*
2 * Copyright (C) ST-Ericsson SA 2010
3 *
4 * License Terms: GNU General Public License, version 2
5 * Author: Hanumath Prasad <hanumath.prasad@stericsson.com> for ST-Ericsson
6 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson
7 */
8
9#include <linux/module.h>
10#include <linux/interrupt.h>
11#include <linux/irq.h>
12#include <linux/slab.h>
13#include <linux/i2c.h>
14#include <linux/mfd/core.h>
Sundar Iyerc6eda6c2010-12-13 09:33:12 +053015#include <linux/mfd/tc3589x.h>
Rabin Vincentb4ecd322010-05-10 23:39:47 +020016
Sundar Iyer593e9d72010-12-13 09:33:18 +053017#define TC3589x_CLKMODE_MODCTL_SLEEP 0x0
18#define TC3589x_CLKMODE_MODCTL_OPERATION (1 << 0)
19
Rabin Vincentb4ecd322010-05-10 23:39:47 +020020/**
Sundar Iyer20406eb2010-12-13 09:33:14 +053021 * tc3589x_reg_read() - read a single TC3589x register
22 * @tc3589x: Device to read from
Rabin Vincentb4ecd322010-05-10 23:39:47 +020023 * @reg: Register to read
24 */
Sundar Iyer20406eb2010-12-13 09:33:14 +053025int tc3589x_reg_read(struct tc3589x *tc3589x, u8 reg)
Rabin Vincentb4ecd322010-05-10 23:39:47 +020026{
27 int ret;
28
Sundar Iyer20406eb2010-12-13 09:33:14 +053029 ret = i2c_smbus_read_byte_data(tc3589x->i2c, reg);
Rabin Vincentb4ecd322010-05-10 23:39:47 +020030 if (ret < 0)
Sundar Iyer20406eb2010-12-13 09:33:14 +053031 dev_err(tc3589x->dev, "failed to read reg %#x: %d\n",
Rabin Vincentb4ecd322010-05-10 23:39:47 +020032 reg, ret);
33
34 return ret;
35}
Sundar Iyer20406eb2010-12-13 09:33:14 +053036EXPORT_SYMBOL_GPL(tc3589x_reg_read);
Rabin Vincentb4ecd322010-05-10 23:39:47 +020037
38/**
Sundar Iyer20406eb2010-12-13 09:33:14 +053039 * tc3589x_reg_read() - write a single TC3589x register
40 * @tc3589x: Device to write to
Rabin Vincentb4ecd322010-05-10 23:39:47 +020041 * @reg: Register to read
42 * @data: Value to write
43 */
Sundar Iyer20406eb2010-12-13 09:33:14 +053044int tc3589x_reg_write(struct tc3589x *tc3589x, u8 reg, u8 data)
Rabin Vincentb4ecd322010-05-10 23:39:47 +020045{
46 int ret;
47
Sundar Iyer20406eb2010-12-13 09:33:14 +053048 ret = i2c_smbus_write_byte_data(tc3589x->i2c, reg, data);
Rabin Vincentb4ecd322010-05-10 23:39:47 +020049 if (ret < 0)
Sundar Iyer20406eb2010-12-13 09:33:14 +053050 dev_err(tc3589x->dev, "failed to write reg %#x: %d\n",
Rabin Vincentb4ecd322010-05-10 23:39:47 +020051 reg, ret);
52
53 return ret;
54}
Sundar Iyer20406eb2010-12-13 09:33:14 +053055EXPORT_SYMBOL_GPL(tc3589x_reg_write);
Rabin Vincentb4ecd322010-05-10 23:39:47 +020056
57/**
Sundar Iyer20406eb2010-12-13 09:33:14 +053058 * tc3589x_block_read() - read multiple TC3589x registers
59 * @tc3589x: Device to read from
Rabin Vincentb4ecd322010-05-10 23:39:47 +020060 * @reg: First register
61 * @length: Number of registers
62 * @values: Buffer to write to
63 */
Sundar Iyer20406eb2010-12-13 09:33:14 +053064int tc3589x_block_read(struct tc3589x *tc3589x, u8 reg, u8 length, u8 *values)
Rabin Vincentb4ecd322010-05-10 23:39:47 +020065{
66 int ret;
67
Sundar Iyer20406eb2010-12-13 09:33:14 +053068 ret = i2c_smbus_read_i2c_block_data(tc3589x->i2c, reg, length, values);
Rabin Vincentb4ecd322010-05-10 23:39:47 +020069 if (ret < 0)
Sundar Iyer20406eb2010-12-13 09:33:14 +053070 dev_err(tc3589x->dev, "failed to read regs %#x: %d\n",
Rabin Vincentb4ecd322010-05-10 23:39:47 +020071 reg, ret);
72
73 return ret;
74}
Sundar Iyer20406eb2010-12-13 09:33:14 +053075EXPORT_SYMBOL_GPL(tc3589x_block_read);
Rabin Vincentb4ecd322010-05-10 23:39:47 +020076
77/**
Sundar Iyer20406eb2010-12-13 09:33:14 +053078 * tc3589x_block_write() - write multiple TC3589x registers
79 * @tc3589x: Device to write to
Rabin Vincentb4ecd322010-05-10 23:39:47 +020080 * @reg: First register
81 * @length: Number of registers
82 * @values: Values to write
83 */
Sundar Iyer20406eb2010-12-13 09:33:14 +053084int tc3589x_block_write(struct tc3589x *tc3589x, u8 reg, u8 length,
Rabin Vincentb4ecd322010-05-10 23:39:47 +020085 const u8 *values)
86{
87 int ret;
88
Sundar Iyer20406eb2010-12-13 09:33:14 +053089 ret = i2c_smbus_write_i2c_block_data(tc3589x->i2c, reg, length,
Rabin Vincentb4ecd322010-05-10 23:39:47 +020090 values);
91 if (ret < 0)
Sundar Iyer20406eb2010-12-13 09:33:14 +053092 dev_err(tc3589x->dev, "failed to write regs %#x: %d\n",
Rabin Vincentb4ecd322010-05-10 23:39:47 +020093 reg, ret);
94
95 return ret;
96}
Sundar Iyer20406eb2010-12-13 09:33:14 +053097EXPORT_SYMBOL_GPL(tc3589x_block_write);
Rabin Vincentb4ecd322010-05-10 23:39:47 +020098
99/**
Sundar Iyer20406eb2010-12-13 09:33:14 +0530100 * tc3589x_set_bits() - set the value of a bitfield in a TC3589x register
101 * @tc3589x: Device to write to
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200102 * @reg: Register to write
103 * @mask: Mask of bits to set
104 * @values: Value to set
105 */
Sundar Iyer20406eb2010-12-13 09:33:14 +0530106int tc3589x_set_bits(struct tc3589x *tc3589x, u8 reg, u8 mask, u8 val)
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200107{
108 int ret;
109
Sundar Iyer20406eb2010-12-13 09:33:14 +0530110 mutex_lock(&tc3589x->lock);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200111
Sundar Iyer20406eb2010-12-13 09:33:14 +0530112 ret = tc3589x_reg_read(tc3589x, reg);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200113 if (ret < 0)
114 goto out;
115
116 ret &= ~mask;
117 ret |= val;
118
Sundar Iyer20406eb2010-12-13 09:33:14 +0530119 ret = tc3589x_reg_write(tc3589x, reg, ret);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200120
121out:
Sundar Iyer20406eb2010-12-13 09:33:14 +0530122 mutex_unlock(&tc3589x->lock);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200123 return ret;
124}
Sundar Iyer20406eb2010-12-13 09:33:14 +0530125EXPORT_SYMBOL_GPL(tc3589x_set_bits);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200126
127static struct resource gpio_resources[] = {
128 {
Sundar Iyer20406eb2010-12-13 09:33:14 +0530129 .start = TC3589x_INT_GPIIRQ,
130 .end = TC3589x_INT_GPIIRQ,
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200131 .flags = IORESOURCE_IRQ,
132 },
133};
134
Sundar Iyer611b7592010-12-13 09:33:15 +0530135static struct mfd_cell tc3589x_dev_gpio[] = {
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200136 {
Sundar Iyer20406eb2010-12-13 09:33:14 +0530137 .name = "tc3589x-gpio",
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200138 .num_resources = ARRAY_SIZE(gpio_resources),
139 .resources = &gpio_resources[0],
140 },
141};
142
Sundar Iyer20406eb2010-12-13 09:33:14 +0530143static irqreturn_t tc3589x_irq(int irq, void *data)
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200144{
Sundar Iyer20406eb2010-12-13 09:33:14 +0530145 struct tc3589x *tc3589x = data;
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200146 int status;
147
Sundar Iyerbd77efd2010-12-13 09:33:16 +0530148again:
Sundar Iyer20406eb2010-12-13 09:33:14 +0530149 status = tc3589x_reg_read(tc3589x, TC3589x_IRQST);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200150 if (status < 0)
151 return IRQ_NONE;
152
153 while (status) {
154 int bit = __ffs(status);
155
Sundar Iyer20406eb2010-12-13 09:33:14 +0530156 handle_nested_irq(tc3589x->irq_base + bit);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200157 status &= ~(1 << bit);
158 }
159
160 /*
161 * A dummy read or write (to any register) appears to be necessary to
162 * have the last interrupt clear (for example, GPIO IC write) take
Sundar Iyerbd77efd2010-12-13 09:33:16 +0530163 * effect. In such a case, recheck for any interrupt which is still
164 * pending.
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200165 */
Sundar Iyerbd77efd2010-12-13 09:33:16 +0530166 status = tc3589x_reg_read(tc3589x, TC3589x_IRQST);
167 if (status)
168 goto again;
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200169
170 return IRQ_HANDLED;
171}
172
Sundar Iyer20406eb2010-12-13 09:33:14 +0530173static int tc3589x_irq_init(struct tc3589x *tc3589x)
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200174{
Sundar Iyer20406eb2010-12-13 09:33:14 +0530175 int base = tc3589x->irq_base;
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200176 int irq;
177
Sundar Iyer20406eb2010-12-13 09:33:14 +0530178 for (irq = base; irq < base + TC3589x_NR_INTERNAL_IRQS; irq++) {
179 set_irq_chip_data(irq, tc3589x);
Samuel Ortizabda3a22010-12-20 13:01:30 +0100180 set_irq_chip_and_handler(irq, &dummy_irq_chip,
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200181 handle_edge_irq);
182 set_irq_nested_thread(irq, 1);
183#ifdef CONFIG_ARM
184 set_irq_flags(irq, IRQF_VALID);
185#else
186 set_irq_noprobe(irq);
187#endif
188 }
189
190 return 0;
191}
192
Sundar Iyer20406eb2010-12-13 09:33:14 +0530193static void tc3589x_irq_remove(struct tc3589x *tc3589x)
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200194{
Sundar Iyer20406eb2010-12-13 09:33:14 +0530195 int base = tc3589x->irq_base;
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200196 int irq;
197
Sundar Iyer20406eb2010-12-13 09:33:14 +0530198 for (irq = base; irq < base + TC3589x_NR_INTERNAL_IRQS; irq++) {
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200199#ifdef CONFIG_ARM
200 set_irq_flags(irq, 0);
201#endif
202 set_irq_chip_and_handler(irq, NULL, NULL);
203 set_irq_chip_data(irq, NULL);
204 }
205}
206
Sundar Iyer20406eb2010-12-13 09:33:14 +0530207static int tc3589x_chip_init(struct tc3589x *tc3589x)
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200208{
209 int manf, ver, ret;
210
Sundar Iyer20406eb2010-12-13 09:33:14 +0530211 manf = tc3589x_reg_read(tc3589x, TC3589x_MANFCODE);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200212 if (manf < 0)
213 return manf;
214
Sundar Iyer20406eb2010-12-13 09:33:14 +0530215 ver = tc3589x_reg_read(tc3589x, TC3589x_VERSION);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200216 if (ver < 0)
217 return ver;
218
Sundar Iyer20406eb2010-12-13 09:33:14 +0530219 if (manf != TC3589x_MANFCODE_MAGIC) {
220 dev_err(tc3589x->dev, "unknown manufacturer: %#x\n", manf);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200221 return -EINVAL;
222 }
223
Sundar Iyer20406eb2010-12-13 09:33:14 +0530224 dev_info(tc3589x->dev, "manufacturer: %#x, version: %#x\n", manf, ver);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200225
Sundar Iyer523bc382010-12-13 09:33:17 +0530226 /*
227 * Put everything except the IRQ module into reset;
228 * also spare the GPIO module for any pin initialization
229 * done during pre-kernel boot
230 */
Sundar Iyer20406eb2010-12-13 09:33:14 +0530231 ret = tc3589x_reg_write(tc3589x, TC3589x_RSTCTRL,
232 TC3589x_RSTCTRL_TIMRST
233 | TC3589x_RSTCTRL_ROTRST
Sundar Iyer523bc382010-12-13 09:33:17 +0530234 | TC3589x_RSTCTRL_KBDRST);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200235 if (ret < 0)
236 return ret;
237
238 /* Clear the reset interrupt. */
Sundar Iyer20406eb2010-12-13 09:33:14 +0530239 return tc3589x_reg_write(tc3589x, TC3589x_RSTINTCLR, 0x1);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200240}
241
Sundar Iyer611b7592010-12-13 09:33:15 +0530242static int __devinit tc3589x_device_init(struct tc3589x *tc3589x)
243{
244 int ret = 0;
245 unsigned int blocks = tc3589x->pdata->block;
246
247 if (blocks & TC3589x_BLOCK_GPIO) {
248 ret = mfd_add_devices(tc3589x->dev, -1, tc3589x_dev_gpio,
249 ARRAY_SIZE(tc3589x_dev_gpio), NULL,
250 tc3589x->irq_base);
251 if (ret) {
252 dev_err(tc3589x->dev, "failed to add gpio child\n");
253 return ret;
254 }
255 dev_info(tc3589x->dev, "added gpio block\n");
256 }
257
258 return ret;
259
260}
261
Sundar Iyer20406eb2010-12-13 09:33:14 +0530262static int __devinit tc3589x_probe(struct i2c_client *i2c,
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200263 const struct i2c_device_id *id)
264{
Sundar Iyer20406eb2010-12-13 09:33:14 +0530265 struct tc3589x_platform_data *pdata = i2c->dev.platform_data;
266 struct tc3589x *tc3589x;
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200267 int ret;
268
269 if (!i2c_check_functionality(i2c->adapter, I2C_FUNC_SMBUS_BYTE_DATA
270 | I2C_FUNC_SMBUS_I2C_BLOCK))
271 return -EIO;
272
Sundar Iyer20406eb2010-12-13 09:33:14 +0530273 tc3589x = kzalloc(sizeof(struct tc3589x), GFP_KERNEL);
274 if (!tc3589x)
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200275 return -ENOMEM;
276
Sundar Iyer20406eb2010-12-13 09:33:14 +0530277 mutex_init(&tc3589x->lock);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200278
Sundar Iyer20406eb2010-12-13 09:33:14 +0530279 tc3589x->dev = &i2c->dev;
280 tc3589x->i2c = i2c;
281 tc3589x->pdata = pdata;
282 tc3589x->irq_base = pdata->irq_base;
283 tc3589x->num_gpio = id->driver_data;
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200284
Sundar Iyer20406eb2010-12-13 09:33:14 +0530285 i2c_set_clientdata(i2c, tc3589x);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200286
Sundar Iyer20406eb2010-12-13 09:33:14 +0530287 ret = tc3589x_chip_init(tc3589x);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200288 if (ret)
289 goto out_free;
290
Sundar Iyer20406eb2010-12-13 09:33:14 +0530291 ret = tc3589x_irq_init(tc3589x);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200292 if (ret)
293 goto out_free;
294
Sundar Iyer20406eb2010-12-13 09:33:14 +0530295 ret = request_threaded_irq(tc3589x->i2c->irq, NULL, tc3589x_irq,
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200296 IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
Sundar Iyer20406eb2010-12-13 09:33:14 +0530297 "tc3589x", tc3589x);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200298 if (ret) {
Sundar Iyer20406eb2010-12-13 09:33:14 +0530299 dev_err(tc3589x->dev, "failed to request IRQ: %d\n", ret);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200300 goto out_removeirq;
301 }
302
Sundar Iyer611b7592010-12-13 09:33:15 +0530303 ret = tc3589x_device_init(tc3589x);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200304 if (ret) {
Sundar Iyer611b7592010-12-13 09:33:15 +0530305 dev_err(tc3589x->dev, "failed to add child devices\n");
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200306 goto out_freeirq;
307 }
308
309 return 0;
310
311out_freeirq:
Sundar Iyer20406eb2010-12-13 09:33:14 +0530312 free_irq(tc3589x->i2c->irq, tc3589x);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200313out_removeirq:
Sundar Iyer20406eb2010-12-13 09:33:14 +0530314 tc3589x_irq_remove(tc3589x);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200315out_free:
Sundar Iyer20406eb2010-12-13 09:33:14 +0530316 kfree(tc3589x);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200317 return ret;
318}
319
Sundar Iyer20406eb2010-12-13 09:33:14 +0530320static int __devexit tc3589x_remove(struct i2c_client *client)
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200321{
Sundar Iyer20406eb2010-12-13 09:33:14 +0530322 struct tc3589x *tc3589x = i2c_get_clientdata(client);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200323
Sundar Iyer20406eb2010-12-13 09:33:14 +0530324 mfd_remove_devices(tc3589x->dev);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200325
Sundar Iyer20406eb2010-12-13 09:33:14 +0530326 free_irq(tc3589x->i2c->irq, tc3589x);
327 tc3589x_irq_remove(tc3589x);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200328
Sundar Iyer20406eb2010-12-13 09:33:14 +0530329 kfree(tc3589x);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200330
331 return 0;
332}
333
Sundar Iyer593e9d72010-12-13 09:33:18 +0530334static int tc3589x_suspend(struct device *dev)
335{
336 struct tc3589x *tc3589x = dev_get_drvdata(dev);
337 struct i2c_client *client = tc3589x->i2c;
338 int ret = 0;
339
340 /* put the system to sleep mode */
341 if (!device_may_wakeup(&client->dev))
342 ret = tc3589x_reg_write(tc3589x, TC3589x_CLKMODE,
343 TC3589x_CLKMODE_MODCTL_SLEEP);
344
345 return ret;
346}
347
348static int tc3589x_resume(struct device *dev)
349{
350 struct tc3589x *tc3589x = dev_get_drvdata(dev);
351 struct i2c_client *client = tc3589x->i2c;
352 int ret = 0;
353
354 /* enable the system into operation */
355 if (!device_may_wakeup(&client->dev))
356 ret = tc3589x_reg_write(tc3589x, TC3589x_CLKMODE,
357 TC3589x_CLKMODE_MODCTL_OPERATION);
358
359 return ret;
360}
361
362static const SIMPLE_DEV_PM_OPS(tc3589x_dev_pm_ops, tc3589x_suspend,
363 tc3589x_resume);
364
Sundar Iyer20406eb2010-12-13 09:33:14 +0530365static const struct i2c_device_id tc3589x_id[] = {
366 { "tc3589x", 24 },
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200367 { }
368};
Sundar Iyer20406eb2010-12-13 09:33:14 +0530369MODULE_DEVICE_TABLE(i2c, tc3589x_id);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200370
Sundar Iyer20406eb2010-12-13 09:33:14 +0530371static struct i2c_driver tc3589x_driver = {
372 .driver.name = "tc3589x",
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200373 .driver.owner = THIS_MODULE,
Sundar Iyer593e9d72010-12-13 09:33:18 +0530374#ifdef CONFIG_PM
375 .driver.pm = &tc3589x_dev_pm_ops,
376#endif
Sundar Iyer20406eb2010-12-13 09:33:14 +0530377 .probe = tc3589x_probe,
378 .remove = __devexit_p(tc3589x_remove),
379 .id_table = tc3589x_id,
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200380};
381
Sundar Iyer20406eb2010-12-13 09:33:14 +0530382static int __init tc3589x_init(void)
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200383{
Sundar Iyer20406eb2010-12-13 09:33:14 +0530384 return i2c_add_driver(&tc3589x_driver);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200385}
Sundar Iyer20406eb2010-12-13 09:33:14 +0530386subsys_initcall(tc3589x_init);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200387
Sundar Iyer20406eb2010-12-13 09:33:14 +0530388static void __exit tc3589x_exit(void)
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200389{
Sundar Iyer20406eb2010-12-13 09:33:14 +0530390 i2c_del_driver(&tc3589x_driver);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200391}
Sundar Iyer20406eb2010-12-13 09:33:14 +0530392module_exit(tc3589x_exit);
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200393
394MODULE_LICENSE("GPL v2");
Sundar Iyer20406eb2010-12-13 09:33:14 +0530395MODULE_DESCRIPTION("TC3589x MFD core driver");
Rabin Vincentb4ecd322010-05-10 23:39:47 +0200396MODULE_AUTHOR("Hanumath Prasad, Rabin Vincent");