blob: 51b91553c59073198f4e2fe5fd3ed61c65b6a66e [file] [log] [blame]
Uwe Kleine-König0e7a29a2010-06-16 07:35:31 +02001/*
2 * Copyright (C) 2010 Pengutronix
3 * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
4 *
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License version 2 as published by the
7 * Free Software Foundation.
8 */
9#include <mach/mx27.h>
10#include <mach/devices-common.h>
11
Uwe Kleine-König6bd96f32010-10-06 12:00:18 +020012extern const struct imx_fec_data imx27_fec_data __initconst;
13#define imx27_add_fec(pdata) \
14 imx_add_fec(&imx27_fec_data, pdata)
15
Uwe Kleine-Könige0a19612010-11-04 10:09:10 +010016extern const struct imx_imx2_wdt_data imx27_imx2_wdt_data __initconst;
17#define imx27_add_imx2_wdt(pdata) \
18 imx_add_imx2_wdt(&imx27_imx2_wdt_data)
19
Uwe Kleine-Königad851bf2010-11-04 17:07:48 +010020extern const struct imx_imx_fb_data imx27_imx_fb_data __initconst;
21#define imx27_add_imx_fb(pdata) \
22 imx_add_imx_fb(&imx27_imx_fb_data, pdata)
23
Uwe Kleine-König64de5ec2010-09-21 12:13:34 +020024extern const struct imx_imx_i2c_data imx27_imx_i2c_data[] __initconst;
25#define imx27_add_imx_i2c(id, pdata) \
26 imx_add_imx_i2c(&imx27_imx_i2c_data[id], pdata)
Uwe Kleine-Königc6987152010-06-16 17:25:40 +020027
Uwe Kleine-König4697bb922010-08-25 17:37:45 +020028extern const struct imx_imx_ssi_data imx27_imx_ssi_data[] __initconst;
29#define imx27_add_imx_ssi(id, pdata) \
30 imx_add_imx_ssi(&imx27_imx_ssi_data[id], pdata)
31
Uwe Kleine-König5162de02010-08-10 22:57:24 +020032extern const struct imx_imx_uart_1irq_data imx27_imx_uart_data[] __initconst;
33#define imx27_add_imx_uart(id, pdata) \
34 imx_add_imx_uart_1irq(&imx27_imx_uart_data[id], pdata)
35#define imx27_add_imx_uart0(pdata) imx27_add_imx_uart(0, pdata)
36#define imx27_add_imx_uart1(pdata) imx27_add_imx_uart(1, pdata)
37#define imx27_add_imx_uart2(pdata) imx27_add_imx_uart(2, pdata)
38#define imx27_add_imx_uart3(pdata) imx27_add_imx_uart(3, pdata)
39#define imx27_add_imx_uart4(pdata) imx27_add_imx_uart(4, pdata)
40#define imx27_add_imx_uart5(pdata) imx27_add_imx_uart(5, pdata)
Uwe Kleine-Königd5dac4a2010-06-23 09:36:01 +020041
Uwe Kleine-Königb2997cb2010-11-02 17:50:55 +010042extern const struct imx_mx2_camera_data imx27_mx2_camera_data __initconst;
43#define imx27_add_mx2_camera(pdata) \
44 imx_add_mx2_camera(&imx27_mx2_camera_data, pdata)
45
Uwe Kleine-König2eb42d52010-11-05 18:52:09 +010046extern const struct imx_mxc_ehci_data imx27_mxc_ehci_otg_data __initconst;
47#define imx27_add_mxc_ehci_otg(pdata) \
48 imx_add_mxc_ehci(&imx27_mxc_ehci_otg_data, pdata)
49extern const struct imx_mxc_ehci_data imx27_mxc_ehci_hs_data[] __initconst;
50#define imx27_add_mxc_ehci_hs(id, pdata) \
51 imx_add_mxc_ehci(&imx27_mxc_ehci_hs_data[id - 1], pdata)
52
Uwe Kleine-König9d3d9452010-11-05 17:26:09 +010053extern const struct imx_mxc_mmc_data imx27_mxc_mmc_data[] __initconst;
54#define imx27_add_mxc_mmc(id, pdata) \
55 imx_add_mxc_mmc(&imx27_mxc_mmc_data[id], pdata)
56
Uwe Kleine-König00b57bf2010-08-23 11:25:52 +020057extern const struct imx_mxc_nand_data imx27_mxc_nand_data __initconst;
Uwe Kleine-König0e7a29a2010-06-16 07:35:31 +020058#define imx27_add_mxc_nand(pdata) \
Uwe Kleine-König00b57bf2010-08-23 11:25:52 +020059 imx_add_mxc_nand(&imx27_mxc_nand_data, pdata)
Uwe Kleine-König7536cf92010-06-22 09:00:22 +020060
Uwe Kleine-Königae71a562010-10-29 10:56:07 +020061extern const struct imx_mxc_w1_data imx27_mxc_w1_data __initconst;
62#define imx27_add_mxc_w1(pdata) \
63 imx_add_mxc_w1(&imx27_mxc_w1_data)
64
Uwe Kleine-König35bab052010-09-09 21:02:02 +020065extern const struct imx_spi_imx_data imx27_cspi_data[] __initconst;
66#define imx27_add_cspi(id, pdata) \
67 imx_add_spi_imx(&imx27_cspi_data[id], pdata)
68#define imx27_add_spi_imx0(pdata) imx27_add_cspi(0, pdata)
69#define imx27_add_spi_imx1(pdata) imx27_add_cspi(1, pdata)
70#define imx27_add_spi_imx2(pdata) imx27_add_cspi(2, pdata)