]>
Commit | Line | Data |
---|---|---|
0e7a29a8 UKK |
1 | /* |
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 | */ | |
e0557c0d | 9 | #include "devices/devices-common.h" |
0e7a29a8 | 10 | |
af12e3ae | 11 | extern const struct imx_fec_data imx27_fec_data; |
6bd96f3c UKK |
12 | #define imx27_add_fec(pdata) \ |
13 | imx_add_fec(&imx27_fec_data, pdata) | |
14 | ||
af12e3ae | 15 | extern const struct imx_fsl_usb2_udc_data imx27_fsl_usb2_udc_data; |
bd455ed3 UKK |
16 | #define imx27_add_fsl_usb2_udc(pdata) \ |
17 | imx_add_fsl_usb2_udc(&imx27_fsl_usb2_udc_data, pdata) | |
18 | ||
6d8c4529 JM |
19 | extern const struct imx_imx27_coda_data imx27_coda_data; |
20 | #define imx27_add_coda() \ | |
21 | imx_add_imx27_coda(&imx27_coda_data) | |
22 | ||
af12e3ae | 23 | extern const struct imx_imx2_wdt_data imx27_imx2_wdt_data; |
bec31a85 | 24 | #define imx27_add_imx2_wdt() \ |
e0a1961d UKK |
25 | imx_add_imx2_wdt(&imx27_imx2_wdt_data) |
26 | ||
af12e3ae | 27 | extern const struct imx_imx_fb_data imx27_imx_fb_data; |
ad851bff UKK |
28 | #define imx27_add_imx_fb(pdata) \ |
29 | imx_add_imx_fb(&imx27_imx_fb_data, pdata) | |
30 | ||
af12e3ae | 31 | extern const struct imx_imx_i2c_data imx27_imx_i2c_data[]; |
64de5ec1 UKK |
32 | #define imx27_add_imx_i2c(id, pdata) \ |
33 | imx_add_imx_i2c(&imx27_imx_i2c_data[id], pdata) | |
c6987159 | 34 | |
af12e3ae | 35 | extern const struct imx_imx_keypad_data imx27_imx_keypad_data; |
3f880141 UKK |
36 | #define imx27_add_imx_keypad(pdata) \ |
37 | imx_add_imx_keypad(&imx27_imx_keypad_data, pdata) | |
38 | ||
af12e3ae | 39 | extern const struct imx_imx_ssi_data imx27_imx_ssi_data[]; |
4697bb92 UKK |
40 | #define imx27_add_imx_ssi(id, pdata) \ |
41 | imx_add_imx_ssi(&imx27_imx_ssi_data[id], pdata) | |
42 | ||
af12e3ae | 43 | extern const struct imx_imx_uart_1irq_data imx27_imx_uart_data[]; |
5162de08 UKK |
44 | #define imx27_add_imx_uart(id, pdata) \ |
45 | imx_add_imx_uart_1irq(&imx27_imx_uart_data[id], pdata) | |
46 | #define imx27_add_imx_uart0(pdata) imx27_add_imx_uart(0, pdata) | |
47 | #define imx27_add_imx_uart1(pdata) imx27_add_imx_uart(1, pdata) | |
48 | #define imx27_add_imx_uart2(pdata) imx27_add_imx_uart(2, pdata) | |
49 | #define imx27_add_imx_uart3(pdata) imx27_add_imx_uart(3, pdata) | |
50 | #define imx27_add_imx_uart4(pdata) imx27_add_imx_uart(4, pdata) | |
51 | #define imx27_add_imx_uart5(pdata) imx27_add_imx_uart(5, pdata) | |
d5dac4a6 | 52 | |
af12e3ae | 53 | extern const struct imx_mx2_camera_data imx27_mx2_camera_data; |
b2997cb1 UKK |
54 | #define imx27_add_mx2_camera(pdata) \ |
55 | imx_add_mx2_camera(&imx27_mx2_camera_data, pdata) | |
3ab3a350 GC |
56 | |
57 | extern const struct imx_mx2_emma_data imx27_mx2_emmaprp_data; | |
bec31a85 | 58 | #define imx27_add_mx2_emmaprp() \ |
3ab3a350 | 59 | imx_add_mx2_emmaprp(&imx27_mx2_emmaprp_data) |
b2997cb1 | 60 | |
af12e3ae | 61 | extern const struct imx_mxc_ehci_data imx27_mxc_ehci_otg_data; |
2eb42d5c UKK |
62 | #define imx27_add_mxc_ehci_otg(pdata) \ |
63 | imx_add_mxc_ehci(&imx27_mxc_ehci_otg_data, pdata) | |
af12e3ae | 64 | extern const struct imx_mxc_ehci_data imx27_mxc_ehci_hs_data[]; |
2eb42d5c UKK |
65 | #define imx27_add_mxc_ehci_hs(id, pdata) \ |
66 | imx_add_mxc_ehci(&imx27_mxc_ehci_hs_data[id - 1], pdata) | |
67 | ||
af12e3ae | 68 | extern const struct imx_mxc_mmc_data imx27_mxc_mmc_data[]; |
9d3d945a UKK |
69 | #define imx27_add_mxc_mmc(id, pdata) \ |
70 | imx_add_mxc_mmc(&imx27_mxc_mmc_data[id], pdata) | |
71 | ||
af12e3ae | 72 | extern const struct imx_mxc_nand_data imx27_mxc_nand_data; |
0e7a29a8 | 73 | #define imx27_add_mxc_nand(pdata) \ |
00b57bf9 | 74 | imx_add_mxc_nand(&imx27_mxc_nand_data, pdata) |
7536cf99 | 75 | |
af12e3ae | 76 | extern const struct imx_mxc_w1_data imx27_mxc_w1_data; |
bec31a85 | 77 | #define imx27_add_mxc_w1() \ |
ae71a562 UKK |
78 | imx_add_mxc_w1(&imx27_mxc_w1_data) |
79 | ||
af12e3ae | 80 | extern const struct imx_spi_imx_data imx27_cspi_data[]; |
35bab058 UKK |
81 | #define imx27_add_cspi(id, pdata) \ |
82 | imx_add_spi_imx(&imx27_cspi_data[id], pdata) | |
83 | #define imx27_add_spi_imx0(pdata) imx27_add_cspi(0, pdata) | |
84 | #define imx27_add_spi_imx1(pdata) imx27_add_cspi(1, pdata) | |
85 | #define imx27_add_spi_imx2(pdata) imx27_add_cspi(2, pdata) | |
d5534ba6 FE |
86 | |
87 | extern const struct imx_pata_imx_data imx27_pata_imx_data; | |
88 | #define imx27_add_pata_imx() \ | |
89 | imx_add_pata_imx(&imx27_pata_imx_data) |