xref: /openbmc/linux/drivers/gpio/gpio-mxc.c (revision 5523f86b)
1d37a65bbSShawn Guo /*
2d37a65bbSShawn Guo  * MXC GPIO support. (c) 2008 Daniel Mack <daniel@caiaq.de>
3d37a65bbSShawn Guo  * Copyright 2008 Juergen Beisert, kernel@pengutronix.de
4d37a65bbSShawn Guo  *
5d37a65bbSShawn Guo  * Based on code from Freescale,
6d37a65bbSShawn Guo  * Copyright (C) 2004-2010 Freescale Semiconductor, Inc. All Rights Reserved.
7d37a65bbSShawn Guo  *
8d37a65bbSShawn Guo  * This program is free software; you can redistribute it and/or
9d37a65bbSShawn Guo  * modify it under the terms of the GNU General Public License
10d37a65bbSShawn Guo  * as published by the Free Software Foundation; either version 2
11d37a65bbSShawn Guo  * of the License, or (at your option) any later version.
12d37a65bbSShawn Guo  * This program is distributed in the hope that it will be useful,
13d37a65bbSShawn Guo  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14d37a65bbSShawn Guo  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15d37a65bbSShawn Guo  * GNU General Public License for more details.
16d37a65bbSShawn Guo  *
17d37a65bbSShawn Guo  * You should have received a copy of the GNU General Public License
18d37a65bbSShawn Guo  * along with this program; if not, write to the Free Software
19d37a65bbSShawn Guo  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20d37a65bbSShawn Guo  */
21d37a65bbSShawn Guo 
22d37a65bbSShawn Guo #include <linux/init.h>
23d37a65bbSShawn Guo #include <linux/interrupt.h>
24d37a65bbSShawn Guo #include <linux/io.h>
25d37a65bbSShawn Guo #include <linux/irq.h>
26d37a65bbSShawn Guo #include <linux/gpio.h>
27b78d8e59SShawn Guo #include <linux/platform_device.h>
28b78d8e59SShawn Guo #include <linux/slab.h>
292ce420daSShawn Guo #include <linux/basic_mmio_gpio.h>
30d37a65bbSShawn Guo #include <mach/hardware.h>
31d37a65bbSShawn Guo #include <asm-generic/bug.h>
32d37a65bbSShawn Guo 
33b78d8e59SShawn Guo struct mxc_gpio_port {
34b78d8e59SShawn Guo 	struct list_head node;
35b78d8e59SShawn Guo 	void __iomem *base;
36b78d8e59SShawn Guo 	int irq;
37b78d8e59SShawn Guo 	int irq_high;
38b78d8e59SShawn Guo 	int virtual_irq_start;
392ce420daSShawn Guo 	struct bgpio_chip bgc;
40b78d8e59SShawn Guo 	u32 both_edges;
41b78d8e59SShawn Guo };
42b78d8e59SShawn Guo 
43b78d8e59SShawn Guo /*
44b78d8e59SShawn Guo  * MX2 has one interrupt *for all* gpio ports. The list is used
45b78d8e59SShawn Guo  * to save the references to all ports, so that mx2_gpio_irq_handler
46b78d8e59SShawn Guo  * can walk through all interrupt status registers.
47b78d8e59SShawn Guo  */
48b78d8e59SShawn Guo static LIST_HEAD(mxc_gpio_ports);
49d37a65bbSShawn Guo 
50d37a65bbSShawn Guo #define cpu_is_mx1_mx2()	(cpu_is_mx1() || cpu_is_mx2())
51d37a65bbSShawn Guo 
52d37a65bbSShawn Guo #define GPIO_DR		(cpu_is_mx1_mx2() ? 0x1c : 0x00)
53d37a65bbSShawn Guo #define GPIO_GDIR	(cpu_is_mx1_mx2() ? 0x00 : 0x04)
54d37a65bbSShawn Guo #define GPIO_PSR	(cpu_is_mx1_mx2() ? 0x24 : 0x08)
55d37a65bbSShawn Guo #define GPIO_ICR1	(cpu_is_mx1_mx2() ? 0x28 : 0x0C)
56d37a65bbSShawn Guo #define GPIO_ICR2	(cpu_is_mx1_mx2() ? 0x2C : 0x10)
57d37a65bbSShawn Guo #define GPIO_IMR	(cpu_is_mx1_mx2() ? 0x30 : 0x14)
58d37a65bbSShawn Guo #define GPIO_ISR	(cpu_is_mx1_mx2() ? 0x34 : 0x18)
59d37a65bbSShawn Guo 
60d37a65bbSShawn Guo #define GPIO_INT_LOW_LEV	(cpu_is_mx1_mx2() ? 0x3 : 0x0)
61d37a65bbSShawn Guo #define GPIO_INT_HIGH_LEV	(cpu_is_mx1_mx2() ? 0x2 : 0x1)
62d37a65bbSShawn Guo #define GPIO_INT_RISE_EDGE	(cpu_is_mx1_mx2() ? 0x0 : 0x2)
63d37a65bbSShawn Guo #define GPIO_INT_FALL_EDGE	(cpu_is_mx1_mx2() ? 0x1 : 0x3)
64d37a65bbSShawn Guo #define GPIO_INT_NONE		0x4
65d37a65bbSShawn Guo 
66d37a65bbSShawn Guo /* Note: This driver assumes 32 GPIOs are handled in one register */
67d37a65bbSShawn Guo 
68d37a65bbSShawn Guo static int gpio_set_irq_type(struct irq_data *d, u32 type)
69d37a65bbSShawn Guo {
70d37a65bbSShawn Guo 	u32 gpio = irq_to_gpio(d->irq);
71e4ea9333SShawn Guo 	struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d);
72e4ea9333SShawn Guo 	struct mxc_gpio_port *port = gc->private;
73d37a65bbSShawn Guo 	u32 bit, val;
74d37a65bbSShawn Guo 	int edge;
75d37a65bbSShawn Guo 	void __iomem *reg = port->base;
76d37a65bbSShawn Guo 
77d37a65bbSShawn Guo 	port->both_edges &= ~(1 << (gpio & 31));
78d37a65bbSShawn Guo 	switch (type) {
79d37a65bbSShawn Guo 	case IRQ_TYPE_EDGE_RISING:
80d37a65bbSShawn Guo 		edge = GPIO_INT_RISE_EDGE;
81d37a65bbSShawn Guo 		break;
82d37a65bbSShawn Guo 	case IRQ_TYPE_EDGE_FALLING:
83d37a65bbSShawn Guo 		edge = GPIO_INT_FALL_EDGE;
84d37a65bbSShawn Guo 		break;
85d37a65bbSShawn Guo 	case IRQ_TYPE_EDGE_BOTH:
865523f86bSShawn Guo 		val = gpio_get_value(gpio);
87d37a65bbSShawn Guo 		if (val) {
88d37a65bbSShawn Guo 			edge = GPIO_INT_LOW_LEV;
89d37a65bbSShawn Guo 			pr_debug("mxc: set GPIO %d to low trigger\n", gpio);
90d37a65bbSShawn Guo 		} else {
91d37a65bbSShawn Guo 			edge = GPIO_INT_HIGH_LEV;
92d37a65bbSShawn Guo 			pr_debug("mxc: set GPIO %d to high trigger\n", gpio);
93d37a65bbSShawn Guo 		}
94d37a65bbSShawn Guo 		port->both_edges |= 1 << (gpio & 31);
95d37a65bbSShawn Guo 		break;
96d37a65bbSShawn Guo 	case IRQ_TYPE_LEVEL_LOW:
97d37a65bbSShawn Guo 		edge = GPIO_INT_LOW_LEV;
98d37a65bbSShawn Guo 		break;
99d37a65bbSShawn Guo 	case IRQ_TYPE_LEVEL_HIGH:
100d37a65bbSShawn Guo 		edge = GPIO_INT_HIGH_LEV;
101d37a65bbSShawn Guo 		break;
102d37a65bbSShawn Guo 	default:
103d37a65bbSShawn Guo 		return -EINVAL;
104d37a65bbSShawn Guo 	}
105d37a65bbSShawn Guo 
106d37a65bbSShawn Guo 	reg += GPIO_ICR1 + ((gpio & 0x10) >> 2); /* lower or upper register */
107d37a65bbSShawn Guo 	bit = gpio & 0xf;
108b78d8e59SShawn Guo 	val = readl(reg) & ~(0x3 << (bit << 1));
109b78d8e59SShawn Guo 	writel(val | (edge << (bit << 1)), reg);
110e4ea9333SShawn Guo 	writel(1 << (gpio & 0x1f), port->base + GPIO_ISR);
111d37a65bbSShawn Guo 
112d37a65bbSShawn Guo 	return 0;
113d37a65bbSShawn Guo }
114d37a65bbSShawn Guo 
115d37a65bbSShawn Guo static void mxc_flip_edge(struct mxc_gpio_port *port, u32 gpio)
116d37a65bbSShawn Guo {
117d37a65bbSShawn Guo 	void __iomem *reg = port->base;
118d37a65bbSShawn Guo 	u32 bit, val;
119d37a65bbSShawn Guo 	int edge;
120d37a65bbSShawn Guo 
121d37a65bbSShawn Guo 	reg += GPIO_ICR1 + ((gpio & 0x10) >> 2); /* lower or upper register */
122d37a65bbSShawn Guo 	bit = gpio & 0xf;
123b78d8e59SShawn Guo 	val = readl(reg);
124d37a65bbSShawn Guo 	edge = (val >> (bit << 1)) & 3;
125d37a65bbSShawn Guo 	val &= ~(0x3 << (bit << 1));
126d37a65bbSShawn Guo 	if (edge == GPIO_INT_HIGH_LEV) {
127d37a65bbSShawn Guo 		edge = GPIO_INT_LOW_LEV;
128d37a65bbSShawn Guo 		pr_debug("mxc: switch GPIO %d to low trigger\n", gpio);
129d37a65bbSShawn Guo 	} else if (edge == GPIO_INT_LOW_LEV) {
130d37a65bbSShawn Guo 		edge = GPIO_INT_HIGH_LEV;
131d37a65bbSShawn Guo 		pr_debug("mxc: switch GPIO %d to high trigger\n", gpio);
132d37a65bbSShawn Guo 	} else {
133d37a65bbSShawn Guo 		pr_err("mxc: invalid configuration for GPIO %d: %x\n",
134d37a65bbSShawn Guo 		       gpio, edge);
135d37a65bbSShawn Guo 		return;
136d37a65bbSShawn Guo 	}
137b78d8e59SShawn Guo 	writel(val | (edge << (bit << 1)), reg);
138d37a65bbSShawn Guo }
139d37a65bbSShawn Guo 
140d37a65bbSShawn Guo /* handle 32 interrupts in one status register */
141d37a65bbSShawn Guo static void mxc_gpio_irq_handler(struct mxc_gpio_port *port, u32 irq_stat)
142d37a65bbSShawn Guo {
143d37a65bbSShawn Guo 	u32 gpio_irq_no_base = port->virtual_irq_start;
144d37a65bbSShawn Guo 
145d37a65bbSShawn Guo 	while (irq_stat != 0) {
146d37a65bbSShawn Guo 		int irqoffset = fls(irq_stat) - 1;
147d37a65bbSShawn Guo 
148d37a65bbSShawn Guo 		if (port->both_edges & (1 << irqoffset))
149d37a65bbSShawn Guo 			mxc_flip_edge(port, irqoffset);
150d37a65bbSShawn Guo 
151d37a65bbSShawn Guo 		generic_handle_irq(gpio_irq_no_base + irqoffset);
152d37a65bbSShawn Guo 
153d37a65bbSShawn Guo 		irq_stat &= ~(1 << irqoffset);
154d37a65bbSShawn Guo 	}
155d37a65bbSShawn Guo }
156d37a65bbSShawn Guo 
157d37a65bbSShawn Guo /* MX1 and MX3 has one interrupt *per* gpio port */
158d37a65bbSShawn Guo static void mx3_gpio_irq_handler(u32 irq, struct irq_desc *desc)
159d37a65bbSShawn Guo {
160d37a65bbSShawn Guo 	u32 irq_stat;
161d37a65bbSShawn Guo 	struct mxc_gpio_port *port = irq_get_handler_data(irq);
162d37a65bbSShawn Guo 
163b78d8e59SShawn Guo 	irq_stat = readl(port->base + GPIO_ISR) & readl(port->base + GPIO_IMR);
164d37a65bbSShawn Guo 
165d37a65bbSShawn Guo 	mxc_gpio_irq_handler(port, irq_stat);
166d37a65bbSShawn Guo }
167d37a65bbSShawn Guo 
168d37a65bbSShawn Guo /* MX2 has one interrupt *for all* gpio ports */
169d37a65bbSShawn Guo static void mx2_gpio_irq_handler(u32 irq, struct irq_desc *desc)
170d37a65bbSShawn Guo {
171d37a65bbSShawn Guo 	u32 irq_msk, irq_stat;
172b78d8e59SShawn Guo 	struct mxc_gpio_port *port;
173d37a65bbSShawn Guo 
174d37a65bbSShawn Guo 	/* walk through all interrupt status registers */
175b78d8e59SShawn Guo 	list_for_each_entry(port, &mxc_gpio_ports, node) {
176b78d8e59SShawn Guo 		irq_msk = readl(port->base + GPIO_IMR);
177d37a65bbSShawn Guo 		if (!irq_msk)
178d37a65bbSShawn Guo 			continue;
179d37a65bbSShawn Guo 
180b78d8e59SShawn Guo 		irq_stat = readl(port->base + GPIO_ISR) & irq_msk;
181d37a65bbSShawn Guo 		if (irq_stat)
182b78d8e59SShawn Guo 			mxc_gpio_irq_handler(port, irq_stat);
183d37a65bbSShawn Guo 	}
184d37a65bbSShawn Guo }
185d37a65bbSShawn Guo 
186d37a65bbSShawn Guo /*
187d37a65bbSShawn Guo  * Set interrupt number "irq" in the GPIO as a wake-up source.
188d37a65bbSShawn Guo  * While system is running, all registered GPIO interrupts need to have
189d37a65bbSShawn Guo  * wake-up enabled. When system is suspended, only selected GPIO interrupts
190d37a65bbSShawn Guo  * need to have wake-up enabled.
191d37a65bbSShawn Guo  * @param  irq          interrupt source number
192d37a65bbSShawn Guo  * @param  enable       enable as wake-up if equal to non-zero
193d37a65bbSShawn Guo  * @return       This function returns 0 on success.
194d37a65bbSShawn Guo  */
195d37a65bbSShawn Guo static int gpio_set_wake_irq(struct irq_data *d, u32 enable)
196d37a65bbSShawn Guo {
197d37a65bbSShawn Guo 	u32 gpio = irq_to_gpio(d->irq);
198d37a65bbSShawn Guo 	u32 gpio_idx = gpio & 0x1F;
199e4ea9333SShawn Guo 	struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d);
200e4ea9333SShawn Guo 	struct mxc_gpio_port *port = gc->private;
201d37a65bbSShawn Guo 
202d37a65bbSShawn Guo 	if (enable) {
203d37a65bbSShawn Guo 		if (port->irq_high && (gpio_idx >= 16))
204d37a65bbSShawn Guo 			enable_irq_wake(port->irq_high);
205d37a65bbSShawn Guo 		else
206d37a65bbSShawn Guo 			enable_irq_wake(port->irq);
207d37a65bbSShawn Guo 	} else {
208d37a65bbSShawn Guo 		if (port->irq_high && (gpio_idx >= 16))
209d37a65bbSShawn Guo 			disable_irq_wake(port->irq_high);
210d37a65bbSShawn Guo 		else
211d37a65bbSShawn Guo 			disable_irq_wake(port->irq);
212d37a65bbSShawn Guo 	}
213d37a65bbSShawn Guo 
214d37a65bbSShawn Guo 	return 0;
215d37a65bbSShawn Guo }
216d37a65bbSShawn Guo 
217e4ea9333SShawn Guo static void __init mxc_gpio_init_gc(struct mxc_gpio_port *port)
218e4ea9333SShawn Guo {
219e4ea9333SShawn Guo 	struct irq_chip_generic *gc;
220e4ea9333SShawn Guo 	struct irq_chip_type *ct;
221d37a65bbSShawn Guo 
222e4ea9333SShawn Guo 	gc = irq_alloc_generic_chip("gpio-mxc", 1, port->virtual_irq_start,
223e4ea9333SShawn Guo 				    port->base, handle_level_irq);
224e4ea9333SShawn Guo 	gc->private = port;
225e4ea9333SShawn Guo 
226e4ea9333SShawn Guo 	ct = gc->chip_types;
227e4ea9333SShawn Guo 	ct->chip.irq_ack = irq_gc_ack,
228e4ea9333SShawn Guo 	ct->chip.irq_mask = irq_gc_mask_clr_bit;
229e4ea9333SShawn Guo 	ct->chip.irq_unmask = irq_gc_mask_set_bit;
230e4ea9333SShawn Guo 	ct->chip.irq_set_type = gpio_set_irq_type;
231e4ea9333SShawn Guo 	ct->chip.irq_set_wake = gpio_set_wake_irq,
232e4ea9333SShawn Guo 	ct->regs.ack = GPIO_ISR;
233e4ea9333SShawn Guo 	ct->regs.mask = GPIO_IMR;
234e4ea9333SShawn Guo 
235e4ea9333SShawn Guo 	irq_setup_generic_chip(gc, IRQ_MSK(32), IRQ_GC_INIT_NESTED_LOCK,
236e4ea9333SShawn Guo 			       IRQ_NOREQUEST, 0);
237e4ea9333SShawn Guo }
238d37a65bbSShawn Guo 
239b78d8e59SShawn Guo static int __devinit mxc_gpio_probe(struct platform_device *pdev)
240d37a65bbSShawn Guo {
241b78d8e59SShawn Guo 	struct mxc_gpio_port *port;
242b78d8e59SShawn Guo 	struct resource *iores;
243e4ea9333SShawn Guo 	int err;
244d37a65bbSShawn Guo 
245b78d8e59SShawn Guo 	port = kzalloc(sizeof(struct mxc_gpio_port), GFP_KERNEL);
246b78d8e59SShawn Guo 	if (!port)
247b78d8e59SShawn Guo 		return -ENOMEM;
248d37a65bbSShawn Guo 
249b78d8e59SShawn Guo 	port->virtual_irq_start = MXC_GPIO_IRQ_START + pdev->id * 32;
250d37a65bbSShawn Guo 
251b78d8e59SShawn Guo 	iores = platform_get_resource(pdev, IORESOURCE_MEM, 0);
252b78d8e59SShawn Guo 	if (!iores) {
253b78d8e59SShawn Guo 		err = -ENODEV;
254b78d8e59SShawn Guo 		goto out_kfree;
255b78d8e59SShawn Guo 	}
256b78d8e59SShawn Guo 
257b78d8e59SShawn Guo 	if (!request_mem_region(iores->start, resource_size(iores),
258b78d8e59SShawn Guo 				pdev->name)) {
259b78d8e59SShawn Guo 		err = -EBUSY;
260b78d8e59SShawn Guo 		goto out_kfree;
261b78d8e59SShawn Guo 	}
262b78d8e59SShawn Guo 
263b78d8e59SShawn Guo 	port->base = ioremap(iores->start, resource_size(iores));
264b78d8e59SShawn Guo 	if (!port->base) {
265b78d8e59SShawn Guo 		err = -ENOMEM;
266b78d8e59SShawn Guo 		goto out_release_mem;
267b78d8e59SShawn Guo 	}
268b78d8e59SShawn Guo 
269b78d8e59SShawn Guo 	port->irq_high = platform_get_irq(pdev, 1);
270b78d8e59SShawn Guo 	port->irq = platform_get_irq(pdev, 0);
271b78d8e59SShawn Guo 	if (port->irq < 0) {
272b78d8e59SShawn Guo 		err = -EINVAL;
273b78d8e59SShawn Guo 		goto out_iounmap;
274b78d8e59SShawn Guo 	}
275b78d8e59SShawn Guo 
276d37a65bbSShawn Guo 	/* disable the interrupt and clear the status */
277b78d8e59SShawn Guo 	writel(0, port->base + GPIO_IMR);
278b78d8e59SShawn Guo 	writel(~0, port->base + GPIO_ISR);
279d37a65bbSShawn Guo 
280e4ea9333SShawn Guo 	/* gpio-mxc can be a generic irq chip */
281e4ea9333SShawn Guo 	mxc_gpio_init_gc(port);
282d37a65bbSShawn Guo 
283d37a65bbSShawn Guo 	if (cpu_is_mx2()) {
284d37a65bbSShawn Guo 		/* setup one handler for all GPIO interrupts */
285b78d8e59SShawn Guo 		if (pdev->id == 0)
286b78d8e59SShawn Guo 			irq_set_chained_handler(port->irq,
287b78d8e59SShawn Guo 						mx2_gpio_irq_handler);
288b78d8e59SShawn Guo 	} else {
289b78d8e59SShawn Guo 		/* setup one handler for each entry */
290b78d8e59SShawn Guo 		irq_set_chained_handler(port->irq, mx3_gpio_irq_handler);
291b78d8e59SShawn Guo 		irq_set_handler_data(port->irq, port);
292b78d8e59SShawn Guo 		if (port->irq_high > 0) {
293b78d8e59SShawn Guo 			/* setup handler for GPIO 16 to 31 */
294b78d8e59SShawn Guo 			irq_set_chained_handler(port->irq_high,
295b78d8e59SShawn Guo 						mx3_gpio_irq_handler);
296b78d8e59SShawn Guo 			irq_set_handler_data(port->irq_high, port);
297b78d8e59SShawn Guo 		}
298d37a65bbSShawn Guo 	}
299d37a65bbSShawn Guo 
3002ce420daSShawn Guo 	err = bgpio_init(&port->bgc, &pdev->dev, 4,
3012ce420daSShawn Guo 			 port->base + GPIO_PSR,
3022ce420daSShawn Guo 			 port->base + GPIO_DR, NULL,
3032ce420daSShawn Guo 			 port->base + GPIO_GDIR, NULL, false);
304b78d8e59SShawn Guo 	if (err)
305b78d8e59SShawn Guo 		goto out_iounmap;
306b78d8e59SShawn Guo 
3072ce420daSShawn Guo 	port->bgc.gc.base = pdev->id * 32;
3082ce420daSShawn Guo 
3092ce420daSShawn Guo 	err = gpiochip_add(&port->bgc.gc);
3102ce420daSShawn Guo 	if (err)
3112ce420daSShawn Guo 		goto out_bgpio_remove;
3122ce420daSShawn Guo 
313b78d8e59SShawn Guo 	list_add_tail(&port->node, &mxc_gpio_ports);
314b78d8e59SShawn Guo 
315d37a65bbSShawn Guo 	return 0;
316b78d8e59SShawn Guo 
3172ce420daSShawn Guo out_bgpio_remove:
3182ce420daSShawn Guo 	bgpio_remove(&port->bgc);
319b78d8e59SShawn Guo out_iounmap:
320b78d8e59SShawn Guo 	iounmap(port->base);
321b78d8e59SShawn Guo out_release_mem:
322b78d8e59SShawn Guo 	release_mem_region(iores->start, resource_size(iores));
323b78d8e59SShawn Guo out_kfree:
324b78d8e59SShawn Guo 	kfree(port);
325b78d8e59SShawn Guo 	dev_info(&pdev->dev, "%s failed with errno %d\n", __func__, err);
326b78d8e59SShawn Guo 	return err;
327d37a65bbSShawn Guo }
328b78d8e59SShawn Guo 
329b78d8e59SShawn Guo static struct platform_driver mxc_gpio_driver = {
330b78d8e59SShawn Guo 	.driver		= {
331b78d8e59SShawn Guo 		.name	= "gpio-mxc",
332b78d8e59SShawn Guo 		.owner	= THIS_MODULE,
333b78d8e59SShawn Guo 	},
334b78d8e59SShawn Guo 	.probe		= mxc_gpio_probe,
335b78d8e59SShawn Guo };
336b78d8e59SShawn Guo 
337b78d8e59SShawn Guo static int __init gpio_mxc_init(void)
338b78d8e59SShawn Guo {
339b78d8e59SShawn Guo 	return platform_driver_register(&mxc_gpio_driver);
340b78d8e59SShawn Guo }
341b78d8e59SShawn Guo postcore_initcall(gpio_mxc_init);
342b78d8e59SShawn Guo 
343b78d8e59SShawn Guo MODULE_AUTHOR("Freescale Semiconductor, "
344b78d8e59SShawn Guo 	      "Daniel Mack <danielncaiaq.de>, "
345b78d8e59SShawn Guo 	      "Juergen Beisert <kernel@pengutronix.de>");
346b78d8e59SShawn Guo MODULE_DESCRIPTION("Freescale MXC GPIO");
347b78d8e59SShawn Guo MODULE_LICENSE("GPL");
348