Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
devices-imx27.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010 Pengutronix
3  * Uwe Kleine-Koenig <[email protected]>
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 
12 extern const struct imx_fec_data imx27_fec_data;
13 #define imx27_add_fec(pdata) \
14  imx_add_fec(&imx27_fec_data, pdata)
15 
17 #define imx27_add_fsl_usb2_udc(pdata) \
18  imx_add_fsl_usb2_udc(&imx27_fsl_usb2_udc_data, pdata)
19 
20 extern const struct imx_imx27_coda_data imx27_coda_data;
21 #define imx27_add_coda() \
22  imx_add_imx27_coda(&imx27_coda_data)
23 
24 extern const struct imx_imx2_wdt_data imx27_imx2_wdt_data;
25 #define imx27_add_imx2_wdt() \
26  imx_add_imx2_wdt(&imx27_imx2_wdt_data)
27 
28 extern const struct imx_imx_fb_data imx27_imx_fb_data;
29 #define imx27_add_imx_fb(pdata) \
30  imx_add_imx_fb(&imx27_imx_fb_data, pdata)
31 
32 extern const struct imx_imx_i2c_data imx27_imx_i2c_data[];
33 #define imx27_add_imx_i2c(id, pdata) \
34  imx_add_imx_i2c(&imx27_imx_i2c_data[id], pdata)
35 
36 extern const struct imx_imx_keypad_data imx27_imx_keypad_data;
37 #define imx27_add_imx_keypad(pdata) \
38  imx_add_imx_keypad(&imx27_imx_keypad_data, pdata)
39 
40 extern const struct imx_imx_ssi_data imx27_imx_ssi_data[];
41 #define imx27_add_imx_ssi(id, pdata) \
42  imx_add_imx_ssi(&imx27_imx_ssi_data[id], pdata)
43 
44 extern const struct imx_imx_uart_1irq_data imx27_imx_uart_data[];
45 #define imx27_add_imx_uart(id, pdata) \
46  imx_add_imx_uart_1irq(&imx27_imx_uart_data[id], pdata)
47 #define imx27_add_imx_uart0(pdata) imx27_add_imx_uart(0, pdata)
48 #define imx27_add_imx_uart1(pdata) imx27_add_imx_uart(1, pdata)
49 #define imx27_add_imx_uart2(pdata) imx27_add_imx_uart(2, pdata)
50 #define imx27_add_imx_uart3(pdata) imx27_add_imx_uart(3, pdata)
51 #define imx27_add_imx_uart4(pdata) imx27_add_imx_uart(4, pdata)
52 #define imx27_add_imx_uart5(pdata) imx27_add_imx_uart(5, pdata)
53 
54 extern const struct imx_mx2_camera_data imx27_mx2_camera_data;
55 #define imx27_add_mx2_camera(pdata) \
56  imx_add_mx2_camera(&imx27_mx2_camera_data, pdata)
57 #define imx27_add_mx2_emmaprp() \
58  imx_add_mx2_emmaprp(&imx27_mx2_camera_data)
59 
60 extern const struct imx_mxc_ehci_data imx27_mxc_ehci_otg_data;
61 #define imx27_add_mxc_ehci_otg(pdata) \
62  imx_add_mxc_ehci(&imx27_mxc_ehci_otg_data, pdata)
63 extern const struct imx_mxc_ehci_data imx27_mxc_ehci_hs_data[];
64 #define imx27_add_mxc_ehci_hs(id, pdata) \
65  imx_add_mxc_ehci(&imx27_mxc_ehci_hs_data[id - 1], pdata)
66 
67 extern const struct imx_mxc_mmc_data imx27_mxc_mmc_data[];
68 #define imx27_add_mxc_mmc(id, pdata) \
69  imx_add_mxc_mmc(&imx27_mxc_mmc_data[id], pdata)
70 
71 extern const struct imx_mxc_nand_data imx27_mxc_nand_data;
72 #define imx27_add_mxc_nand(pdata) \
73  imx_add_mxc_nand(&imx27_mxc_nand_data, pdata)
74 
75 extern const struct imx_mxc_w1_data imx27_mxc_w1_data;
76 #define imx27_add_mxc_w1() \
77  imx_add_mxc_w1(&imx27_mxc_w1_data)
78 
79 extern const struct imx_spi_imx_data imx27_cspi_data[];
80 #define imx27_add_cspi(id, pdata) \
81  imx_add_spi_imx(&imx27_cspi_data[id], pdata)
82 #define imx27_add_spi_imx0(pdata) imx27_add_cspi(0, pdata)
83 #define imx27_add_spi_imx1(pdata) imx27_add_cspi(1, pdata)
84 #define imx27_add_spi_imx2(pdata) imx27_add_cspi(2, pdata)
85 
86 extern const struct imx_pata_imx_data imx27_pata_imx_data;
87 #define imx27_add_pata_imx() \
88  imx_add_pata_imx(&imx27_pata_imx_data)