2 * Copyright 2009 Amit Kucheria <amit.kucheria@canonical.com>
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
12 #include <linux/platform_device.h>
13 #include <mach/hardware.h>
14 #include <mach/imx-uart.h>
16 static struct resource uart0[] = {
18 .start = MX51_UART1_BASE_ADDR,
19 .end = MX51_UART1_BASE_ADDR + 0xfff,
20 .flags = IORESOURCE_MEM,
22 .start = MX51_MXC_INT_UART1,
23 .end = MX51_MXC_INT_UART1,
24 .flags = IORESOURCE_IRQ,
28 struct platform_device mxc_uart_device0 = {
32 .num_resources = ARRAY_SIZE(uart0),
35 static struct resource uart1[] = {
37 .start = MX51_UART2_BASE_ADDR,
38 .end = MX51_UART2_BASE_ADDR + 0xfff,
39 .flags = IORESOURCE_MEM,
41 .start = MX51_MXC_INT_UART2,
42 .end = MX51_MXC_INT_UART2,
43 .flags = IORESOURCE_IRQ,
47 struct platform_device mxc_uart_device1 = {
51 .num_resources = ARRAY_SIZE(uart1),
54 static struct resource uart2[] = {
56 .start = MX51_UART3_BASE_ADDR,
57 .end = MX51_UART3_BASE_ADDR + 0xfff,
58 .flags = IORESOURCE_MEM,
60 .start = MX51_MXC_INT_UART3,
61 .end = MX51_MXC_INT_UART3,
62 .flags = IORESOURCE_IRQ,
66 struct platform_device mxc_uart_device2 = {
70 .num_resources = ARRAY_SIZE(uart2),
73 static struct resource mxc_fec_resources[] = {
75 .start = MX51_MXC_FEC_BASE_ADDR,
76 .end = MX51_MXC_FEC_BASE_ADDR + 0xfff,
77 .flags = IORESOURCE_MEM,
79 .start = MX51_MXC_INT_FEC,
80 .end = MX51_MXC_INT_FEC,
81 .flags = IORESOURCE_IRQ,
85 struct platform_device mxc_fec_device = {
88 .num_resources = ARRAY_SIZE(mxc_fec_resources),
89 .resource = mxc_fec_resources,
92 /* Dummy definition to allow compiling in AVIC and TZIC simultaneously */
93 int __init mxc_register_gpios(void)