blob: 43d8683266de298aea8bbdb0388a9fba10a2c1cd [file] [log] [blame]
Ian Molton1f192012008-07-15 15:09:43 +01001/*
2 *
3 * Toshiba T7L66XB core mfd support
4 *
5 * Copyright (c) 2005, 2007, 2008 Ian Molton
6 * Copyright (c) 2008 Dmitry Baryshkov
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 *
12 * T7L66 features:
13 *
14 * Supported in this driver:
15 * SD/MMC
16 * SM/NAND flash controller
17 *
18 * As yet not supported
19 * GPIO interface (on NAND pins)
20 * Serial interface
21 * TFT 'interface converter'
22 * PCMCIA interface logic
23 */
24
25#include <linux/kernel.h>
26#include <linux/module.h>
Ian Molton7acb7062008-10-09 20:06:09 +020027#include <linux/err.h>
Ian Molton1f192012008-07-15 15:09:43 +010028#include <linux/io.h>
Tejun Heo5a0e3ad2010-03-24 17:04:11 +090029#include <linux/slab.h>
Ian Molton1f192012008-07-15 15:09:43 +010030#include <linux/irq.h>
Ian Molton7acb7062008-10-09 20:06:09 +020031#include <linux/clk.h>
Ian Molton1f192012008-07-15 15:09:43 +010032#include <linux/platform_device.h>
33#include <linux/mfd/core.h>
34#include <linux/mfd/tmio.h>
35#include <linux/mfd/t7l66xb.h>
36
37enum {
38 T7L66XB_CELL_NAND,
39 T7L66XB_CELL_MMC,
40};
41
Ian Molton64e88672010-01-06 13:51:48 +010042static const struct resource t7l66xb_mmc_resources[] = {
43 {
44 .start = 0x800,
45 .end = 0x9ff,
46 .flags = IORESOURCE_MEM,
47 },
48 {
49 .start = IRQ_T7L66XB_MMC,
50 .end = IRQ_T7L66XB_MMC,
51 .flags = IORESOURCE_IRQ,
52 },
53};
54
Ian Molton1f192012008-07-15 15:09:43 +010055#define SCR_REVID 0x08 /* b Revision ID */
56#define SCR_IMR 0x42 /* b Interrupt Mask */
57#define SCR_DEV_CTL 0xe0 /* b Device control */
58#define SCR_ISR 0xe1 /* b Interrupt Status */
59#define SCR_GPO_OC 0xf0 /* b GPO output control */
60#define SCR_GPO_OS 0xf1 /* b GPO output enable */
61#define SCR_GPI_S 0xf2 /* w GPI status */
62#define SCR_APDC 0xf8 /* b Active pullup down ctrl */
63
64#define SCR_DEV_CTL_USB BIT(0) /* USB enable */
65#define SCR_DEV_CTL_MMC BIT(1) /* MMC enable */
66
67/*--------------------------------------------------------------------------*/
68
69struct t7l66xb {
70 void __iomem *scr;
71 /* Lock to protect registers requiring read/modify/write ops. */
Julia Cartwright9fe8c2d2017-03-21 17:43:05 -050072 raw_spinlock_t lock;
Ian Molton1f192012008-07-15 15:09:43 +010073
74 struct resource rscr;
Ian Molton7acb7062008-10-09 20:06:09 +020075 struct clk *clk48m;
76 struct clk *clk32k;
Ian Molton1f192012008-07-15 15:09:43 +010077 int irq;
78 int irq_base;
79};
80
81/*--------------------------------------------------------------------------*/
82
83static int t7l66xb_mmc_enable(struct platform_device *mmc)
84{
85 struct platform_device *dev = to_platform_device(mmc->dev.parent);
Ian Molton1f192012008-07-15 15:09:43 +010086 struct t7l66xb *t7l66xb = platform_get_drvdata(dev);
87 unsigned long flags;
88 u8 dev_ctl;
Arvind Yadavb62d8db2017-08-08 15:24:56 +053089 int ret;
Ian Molton1f192012008-07-15 15:09:43 +010090
Arvind Yadavb62d8db2017-08-08 15:24:56 +053091 ret = clk_prepare_enable(t7l66xb->clk32k);
92 if (ret)
93 return ret;
Ian Molton1f192012008-07-15 15:09:43 +010094
Julia Cartwright9fe8c2d2017-03-21 17:43:05 -050095 raw_spin_lock_irqsave(&t7l66xb->lock, flags);
Ian Molton1f192012008-07-15 15:09:43 +010096
97 dev_ctl = tmio_ioread8(t7l66xb->scr + SCR_DEV_CTL);
98 dev_ctl |= SCR_DEV_CTL_MMC;
99 tmio_iowrite8(dev_ctl, t7l66xb->scr + SCR_DEV_CTL);
100
Julia Cartwright9fe8c2d2017-03-21 17:43:05 -0500101 raw_spin_unlock_irqrestore(&t7l66xb->lock, flags);
Ian Molton1f192012008-07-15 15:09:43 +0100102
Ian Molton64e88672010-01-06 13:51:48 +0100103 tmio_core_mmc_enable(t7l66xb->scr + 0x200, 0,
104 t7l66xb_mmc_resources[0].start & 0xfffe);
105
Ian Molton1f192012008-07-15 15:09:43 +0100106 return 0;
107}
108
109static int t7l66xb_mmc_disable(struct platform_device *mmc)
110{
111 struct platform_device *dev = to_platform_device(mmc->dev.parent);
Ian Molton1f192012008-07-15 15:09:43 +0100112 struct t7l66xb *t7l66xb = platform_get_drvdata(dev);
113 unsigned long flags;
114 u8 dev_ctl;
115
Julia Cartwright9fe8c2d2017-03-21 17:43:05 -0500116 raw_spin_lock_irqsave(&t7l66xb->lock, flags);
Ian Molton1f192012008-07-15 15:09:43 +0100117
118 dev_ctl = tmio_ioread8(t7l66xb->scr + SCR_DEV_CTL);
119 dev_ctl &= ~SCR_DEV_CTL_MMC;
120 tmio_iowrite8(dev_ctl, t7l66xb->scr + SCR_DEV_CTL);
121
Julia Cartwright9fe8c2d2017-03-21 17:43:05 -0500122 raw_spin_unlock_irqrestore(&t7l66xb->lock, flags);
Ian Molton1f192012008-07-15 15:09:43 +0100123
Dmitry Eremin-Solenikov71d679b2014-11-17 18:07:42 +0300124 clk_disable_unprepare(t7l66xb->clk32k);
Ian Molton1f192012008-07-15 15:09:43 +0100125
126 return 0;
127}
128
Ian Molton64e88672010-01-06 13:51:48 +0100129static void t7l66xb_mmc_pwr(struct platform_device *mmc, int state)
130{
131 struct platform_device *dev = to_platform_device(mmc->dev.parent);
132 struct t7l66xb *t7l66xb = platform_get_drvdata(dev);
133
134 tmio_core_mmc_pwr(t7l66xb->scr + 0x200, 0, state);
135}
136
137static void t7l66xb_mmc_clk_div(struct platform_device *mmc, int state)
138{
139 struct platform_device *dev = to_platform_device(mmc->dev.parent);
140 struct t7l66xb *t7l66xb = platform_get_drvdata(dev);
141
142 tmio_core_mmc_clk_div(t7l66xb->scr + 0x200, 0, state);
143}
144
Ian Molton1f192012008-07-15 15:09:43 +0100145/*--------------------------------------------------------------------------*/
146
Samuel Ortiz4d3792e2009-06-15 15:43:31 +0200147static struct tmio_mmc_data t7166xb_mmc_data = {
Philipp Zabelf0e46cc2009-06-04 20:12:31 +0200148 .hclk = 24000000,
Ian Molton64e88672010-01-06 13:51:48 +0100149 .set_pwr = t7l66xb_mmc_pwr,
150 .set_clk_div = t7l66xb_mmc_clk_div,
Ian Molton1f192012008-07-15 15:09:43 +0100151};
152
Tobias Klauser3446d4b2009-02-17 10:11:42 +0100153static const struct resource t7l66xb_nand_resources[] = {
Ian Molton1f192012008-07-15 15:09:43 +0100154 {
155 .start = 0xc00,
156 .end = 0xc07,
157 .flags = IORESOURCE_MEM,
158 },
159 {
160 .start = 0x0100,
161 .end = 0x01ff,
162 .flags = IORESOURCE_MEM,
163 },
164 {
165 .start = IRQ_T7L66XB_NAND,
166 .end = IRQ_T7L66XB_NAND,
167 .flags = IORESOURCE_IRQ,
168 },
169};
170
171static struct mfd_cell t7l66xb_cells[] = {
172 [T7L66XB_CELL_MMC] = {
173 .name = "tmio-mmc",
174 .enable = t7l66xb_mmc_enable,
175 .disable = t7l66xb_mmc_disable,
Samuel Ortizec719742011-04-06 11:38:14 +0200176 .platform_data = &t7166xb_mmc_data,
177 .pdata_size = sizeof(t7166xb_mmc_data),
Ian Molton1f192012008-07-15 15:09:43 +0100178 .num_resources = ARRAY_SIZE(t7l66xb_mmc_resources),
179 .resources = t7l66xb_mmc_resources,
180 },
181 [T7L66XB_CELL_NAND] = {
182 .name = "tmio-nand",
183 .num_resources = ARRAY_SIZE(t7l66xb_nand_resources),
184 .resources = t7l66xb_nand_resources,
185 },
186};
187
188/*--------------------------------------------------------------------------*/
189
190/* Handle the T7L66XB interrupt mux */
Thomas Gleixnerbd0b9ac2015-09-14 10:42:37 +0200191static void t7l66xb_irq(struct irq_desc *desc)
Ian Molton1f192012008-07-15 15:09:43 +0100192{
Jiang Liu1e84aa42015-07-13 20:44:56 +0000193 struct t7l66xb *t7l66xb = irq_desc_get_handler_data(desc);
Ian Molton1f192012008-07-15 15:09:43 +0100194 unsigned int isr;
195 unsigned int i, irq_base;
196
197 irq_base = t7l66xb->irq_base;
198
199 while ((isr = tmio_ioread8(t7l66xb->scr + SCR_ISR) &
200 ~tmio_ioread8(t7l66xb->scr + SCR_IMR)))
201 for (i = 0; i < T7L66XB_NR_IRQS; i++)
202 if (isr & (1 << i))
203 generic_handle_irq(irq_base + i);
204}
205
Mark Browna4e7fea2010-12-12 12:18:58 +0000206static void t7l66xb_irq_mask(struct irq_data *data)
Ian Molton1f192012008-07-15 15:09:43 +0100207{
Mark Browna4e7fea2010-12-12 12:18:58 +0000208 struct t7l66xb *t7l66xb = irq_data_get_irq_chip_data(data);
Ian Molton1f192012008-07-15 15:09:43 +0100209 unsigned long flags;
210 u8 imr;
211
Julia Cartwright9fe8c2d2017-03-21 17:43:05 -0500212 raw_spin_lock_irqsave(&t7l66xb->lock, flags);
Ian Molton1f192012008-07-15 15:09:43 +0100213 imr = tmio_ioread8(t7l66xb->scr + SCR_IMR);
Mark Browna4e7fea2010-12-12 12:18:58 +0000214 imr |= 1 << (data->irq - t7l66xb->irq_base);
Ian Molton1f192012008-07-15 15:09:43 +0100215 tmio_iowrite8(imr, t7l66xb->scr + SCR_IMR);
Julia Cartwright9fe8c2d2017-03-21 17:43:05 -0500216 raw_spin_unlock_irqrestore(&t7l66xb->lock, flags);
Ian Molton1f192012008-07-15 15:09:43 +0100217}
218
Mark Browna4e7fea2010-12-12 12:18:58 +0000219static void t7l66xb_irq_unmask(struct irq_data *data)
Ian Molton1f192012008-07-15 15:09:43 +0100220{
Mark Browna4e7fea2010-12-12 12:18:58 +0000221 struct t7l66xb *t7l66xb = irq_data_get_irq_chip_data(data);
Ian Molton1f192012008-07-15 15:09:43 +0100222 unsigned long flags;
223 u8 imr;
224
Julia Cartwright9fe8c2d2017-03-21 17:43:05 -0500225 raw_spin_lock_irqsave(&t7l66xb->lock, flags);
Ian Molton1f192012008-07-15 15:09:43 +0100226 imr = tmio_ioread8(t7l66xb->scr + SCR_IMR);
Mark Browna4e7fea2010-12-12 12:18:58 +0000227 imr &= ~(1 << (data->irq - t7l66xb->irq_base));
Ian Molton1f192012008-07-15 15:09:43 +0100228 tmio_iowrite8(imr, t7l66xb->scr + SCR_IMR);
Julia Cartwright9fe8c2d2017-03-21 17:43:05 -0500229 raw_spin_unlock_irqrestore(&t7l66xb->lock, flags);
Ian Molton1f192012008-07-15 15:09:43 +0100230}
231
232static struct irq_chip t7l66xb_chip = {
Mark Browna4e7fea2010-12-12 12:18:58 +0000233 .name = "t7l66xb",
234 .irq_ack = t7l66xb_irq_mask,
235 .irq_mask = t7l66xb_irq_mask,
236 .irq_unmask = t7l66xb_irq_unmask,
Ian Molton1f192012008-07-15 15:09:43 +0100237};
238
239/*--------------------------------------------------------------------------*/
240
241/* Install the IRQ handler */
242static void t7l66xb_attach_irq(struct platform_device *dev)
243{
244 struct t7l66xb *t7l66xb = platform_get_drvdata(dev);
245 unsigned int irq, irq_base;
246
247 irq_base = t7l66xb->irq_base;
248
249 for (irq = irq_base; irq < irq_base + T7L66XB_NR_IRQS; irq++) {
Thomas Gleixnerd6f7ce9f2011-03-25 11:12:35 +0000250 irq_set_chip_and_handler(irq, &t7l66xb_chip, handle_level_irq);
Thomas Gleixnerd5bb1222011-03-25 11:12:32 +0000251 irq_set_chip_data(irq, t7l66xb);
Ian Molton1f192012008-07-15 15:09:43 +0100252 }
253
Thomas Gleixnerd5bb1222011-03-25 11:12:32 +0000254 irq_set_irq_type(t7l66xb->irq, IRQ_TYPE_EDGE_FALLING);
Thomas Gleixnerde7c9e02015-07-13 20:44:52 +0000255 irq_set_chained_handler_and_data(t7l66xb->irq, t7l66xb_irq, t7l66xb);
Ian Molton1f192012008-07-15 15:09:43 +0100256}
257
258static void t7l66xb_detach_irq(struct platform_device *dev)
259{
260 struct t7l66xb *t7l66xb = platform_get_drvdata(dev);
261 unsigned int irq, irq_base;
262
263 irq_base = t7l66xb->irq_base;
264
Thomas Gleixnerde7c9e02015-07-13 20:44:52 +0000265 irq_set_chained_handler_and_data(t7l66xb->irq, NULL, NULL);
Ian Molton1f192012008-07-15 15:09:43 +0100266
267 for (irq = irq_base; irq < irq_base + T7L66XB_NR_IRQS; irq++) {
Thomas Gleixnerd5bb1222011-03-25 11:12:32 +0000268 irq_set_chip(irq, NULL);
269 irq_set_chip_data(irq, NULL);
Ian Molton1f192012008-07-15 15:09:43 +0100270 }
271}
272
273/*--------------------------------------------------------------------------*/
274
275#ifdef CONFIG_PM
276static int t7l66xb_suspend(struct platform_device *dev, pm_message_t state)
277{
Ian Molton7acb7062008-10-09 20:06:09 +0200278 struct t7l66xb *t7l66xb = platform_get_drvdata(dev);
Jingoo Han334a41ce2013-07-30 17:10:05 +0900279 struct t7l66xb_platform_data *pdata = dev_get_platdata(&dev->dev);
Ian Molton1f192012008-07-15 15:09:43 +0100280
281 if (pdata && pdata->suspend)
282 pdata->suspend(dev);
Dmitry Eremin-Solenikov71d679b2014-11-17 18:07:42 +0300283 clk_disable_unprepare(t7l66xb->clk48m);
Ian Molton1f192012008-07-15 15:09:43 +0100284
285 return 0;
286}
287
288static int t7l66xb_resume(struct platform_device *dev)
289{
Ian Molton7acb7062008-10-09 20:06:09 +0200290 struct t7l66xb *t7l66xb = platform_get_drvdata(dev);
Jingoo Han334a41ce2013-07-30 17:10:05 +0900291 struct t7l66xb_platform_data *pdata = dev_get_platdata(&dev->dev);
Arvind Yadavb62d8db2017-08-08 15:24:56 +0530292 int ret;
Ian Molton1f192012008-07-15 15:09:43 +0100293
Arvind Yadavb62d8db2017-08-08 15:24:56 +0530294 ret = clk_prepare_enable(t7l66xb->clk48m);
295 if (ret)
296 return ret;
297
Ian Molton1f192012008-07-15 15:09:43 +0100298 if (pdata && pdata->resume)
299 pdata->resume(dev);
300
Ian Molton64e88672010-01-06 13:51:48 +0100301 tmio_core_mmc_enable(t7l66xb->scr + 0x200, 0,
302 t7l66xb_mmc_resources[0].start & 0xfffe);
303
Ian Molton1f192012008-07-15 15:09:43 +0100304 return 0;
305}
306#else
307#define t7l66xb_suspend NULL
308#define t7l66xb_resume NULL
309#endif
310
311/*--------------------------------------------------------------------------*/
312
313static int t7l66xb_probe(struct platform_device *dev)
314{
Jingoo Han334a41ce2013-07-30 17:10:05 +0900315 struct t7l66xb_platform_data *pdata = dev_get_platdata(&dev->dev);
Ian Molton1f192012008-07-15 15:09:43 +0100316 struct t7l66xb *t7l66xb;
317 struct resource *iomem, *rscr;
318 int ret;
319
Maninder Singh78b7d842015-07-02 08:52:58 +0530320 if (!pdata)
Samuel Ortiz9ad285d2010-03-19 12:46:28 +0100321 return -EINVAL;
322
Ian Molton1f192012008-07-15 15:09:43 +0100323 iomem = platform_get_resource(dev, IORESOURCE_MEM, 0);
324 if (!iomem)
325 return -EINVAL;
326
327 t7l66xb = kzalloc(sizeof *t7l66xb, GFP_KERNEL);
328 if (!t7l66xb)
329 return -ENOMEM;
330
Julia Cartwright9fe8c2d2017-03-21 17:43:05 -0500331 raw_spin_lock_init(&t7l66xb->lock);
Ian Molton1f192012008-07-15 15:09:43 +0100332
333 platform_set_drvdata(dev, t7l66xb);
334
335 ret = platform_get_irq(dev, 0);
336 if (ret >= 0)
337 t7l66xb->irq = ret;
338 else
339 goto err_noirq;
340
341 t7l66xb->irq_base = pdata->irq_base;
342
Ian Molton7acb7062008-10-09 20:06:09 +0200343 t7l66xb->clk32k = clk_get(&dev->dev, "CLK_CK32K");
344 if (IS_ERR(t7l66xb->clk32k)) {
345 ret = PTR_ERR(t7l66xb->clk32k);
346 goto err_clk32k_get;
347 }
348
349 t7l66xb->clk48m = clk_get(&dev->dev, "CLK_CK48M");
350 if (IS_ERR(t7l66xb->clk48m)) {
351 ret = PTR_ERR(t7l66xb->clk48m);
Ian Molton7acb7062008-10-09 20:06:09 +0200352 goto err_clk48m_get;
353 }
354
Ian Molton1f192012008-07-15 15:09:43 +0100355 rscr = &t7l66xb->rscr;
356 rscr->name = "t7l66xb-core";
357 rscr->start = iomem->start;
358 rscr->end = iomem->start + 0xff;
359 rscr->flags = IORESOURCE_MEM;
360
361 ret = request_resource(iomem, rscr);
362 if (ret)
363 goto err_request_scr;
364
H Hartley Sweetenc02e6a52010-01-05 19:58:34 +0100365 t7l66xb->scr = ioremap(rscr->start, resource_size(rscr));
Ian Molton1f192012008-07-15 15:09:43 +0100366 if (!t7l66xb->scr) {
367 ret = -ENOMEM;
368 goto err_ioremap;
369 }
370
Arvind Yadavb62d8db2017-08-08 15:24:56 +0530371 ret = clk_prepare_enable(t7l66xb->clk48m);
372 if (ret)
373 goto err_clk_enable;
Ian Molton7acb7062008-10-09 20:06:09 +0200374
Maninder Singh78b7d842015-07-02 08:52:58 +0530375 if (pdata->enable)
Ian Molton1f192012008-07-15 15:09:43 +0100376 pdata->enable(dev);
377
378 /* Mask all interrupts */
379 tmio_iowrite8(0xbf, t7l66xb->scr + SCR_IMR);
380
381 printk(KERN_INFO "%s rev %d @ 0x%08lx, irq %d\n",
382 dev->name, tmio_ioread8(t7l66xb->scr + SCR_REVID),
383 (unsigned long)iomem->start, t7l66xb->irq);
384
385 t7l66xb_attach_irq(dev);
386
Samuel Ortiz7dc00a02011-04-06 12:20:49 +0200387 t7l66xb_cells[T7L66XB_CELL_NAND].platform_data = pdata->nand_data;
388 t7l66xb_cells[T7L66XB_CELL_NAND].pdata_size = sizeof(*pdata->nand_data);
Ian Molton8a4fbe02008-08-04 18:06:18 +0200389
Samuel Ortiz56bf2bd2008-08-01 00:16:13 +0200390 ret = mfd_add_devices(&dev->dev, dev->id,
391 t7l66xb_cells, ARRAY_SIZE(t7l66xb_cells),
Mark Brown0848c942012-09-11 15:16:36 +0800392 iomem, t7l66xb->irq_base, NULL);
Ian Molton1f192012008-07-15 15:09:43 +0100393
394 if (!ret)
395 return 0;
396
397 t7l66xb_detach_irq(dev);
Arvind Yadavb62d8db2017-08-08 15:24:56 +0530398 clk_disable_unprepare(t7l66xb->clk48m);
399err_clk_enable:
Ian Molton1f192012008-07-15 15:09:43 +0100400 iounmap(t7l66xb->scr);
401err_ioremap:
402 release_resource(&t7l66xb->rscr);
Ian Molton1f192012008-07-15 15:09:43 +0100403err_request_scr:
Ian Molton7acb7062008-10-09 20:06:09 +0200404 clk_put(t7l66xb->clk48m);
405err_clk48m_get:
406 clk_put(t7l66xb->clk32k);
407err_clk32k_get:
408err_noirq:
Julia Lawall0e820ab2009-12-22 21:31:43 +0100409 kfree(t7l66xb);
Ian Molton1f192012008-07-15 15:09:43 +0100410 return ret;
411}
412
413static int t7l66xb_remove(struct platform_device *dev)
414{
Jingoo Han334a41ce2013-07-30 17:10:05 +0900415 struct t7l66xb_platform_data *pdata = dev_get_platdata(&dev->dev);
Ian Molton1f192012008-07-15 15:09:43 +0100416 struct t7l66xb *t7l66xb = platform_get_drvdata(dev);
417 int ret;
418
419 ret = pdata->disable(dev);
Dmitry Eremin-Solenikov71d679b2014-11-17 18:07:42 +0300420 clk_disable_unprepare(t7l66xb->clk48m);
Ian Molton7acb7062008-10-09 20:06:09 +0200421 clk_put(t7l66xb->clk48m);
Dmitry Eremin-Solenikov71d679b2014-11-17 18:07:42 +0300422 clk_disable_unprepare(t7l66xb->clk32k);
Axel Lind2d272a2010-07-01 17:43:50 +0800423 clk_put(t7l66xb->clk32k);
Ian Molton1f192012008-07-15 15:09:43 +0100424 t7l66xb_detach_irq(dev);
425 iounmap(t7l66xb->scr);
426 release_resource(&t7l66xb->rscr);
Samuel Ortiz56bf2bd2008-08-01 00:16:13 +0200427 mfd_remove_devices(&dev->dev);
Ian Molton1f192012008-07-15 15:09:43 +0100428 kfree(t7l66xb);
429
430 return ret;
431
432}
433
434static struct platform_driver t7l66xb_platform_driver = {
435 .driver = {
436 .name = "t7l66xb",
Ian Molton1f192012008-07-15 15:09:43 +0100437 },
438 .suspend = t7l66xb_suspend,
439 .resume = t7l66xb_resume,
440 .probe = t7l66xb_probe,
441 .remove = t7l66xb_remove,
442};
443
444/*--------------------------------------------------------------------------*/
445
Mark Brown65349d62011-11-23 22:58:34 +0000446module_platform_driver(t7l66xb_platform_driver);
Ian Molton1f192012008-07-15 15:09:43 +0100447
448MODULE_DESCRIPTION("Toshiba T7L66XB core driver");
449MODULE_LICENSE("GPL v2");
450MODULE_AUTHOR("Ian Molton");
451MODULE_ALIAS("platform:t7l66xb");