Commit | Line | Data |
---|---|---|
44505c07 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 | */ | |
9 | #include <mach/mx51.h> | |
10 | #include <mach/devices-common.h> | |
11 | ||
af12e3ae | 12 | extern const struct imx_fec_data imx51_fec_data; |
6bd96f3c UKK |
13 | #define imx51_add_fec(pdata) \ |
14 | imx_add_fec(&imx51_fec_data, pdata) | |
15 | ||
6cafe48a UKK |
16 | extern const struct imx_fsl_usb2_udc_data imx51_fsl_usb2_udc_data; |
17 | #define imx51_add_fsl_usb2_udc(pdata) \ | |
18 | imx_add_fsl_usb2_udc(&imx51_fsl_usb2_udc_data, pdata) | |
19 | ||
af12e3ae | 20 | extern const struct imx_imx_i2c_data imx51_imx_i2c_data[]; |
44505c07 UKK |
21 | #define imx51_add_imx_i2c(id, pdata) \ |
22 | imx_add_imx_i2c(&imx51_imx_i2c_data[id], pdata) | |
f2688854 UKK |
23 | #define imx51_add_hsi2c(pdata) \ |
24 | imx51_add_imx_i2c(2, pdata) | |
9f0c11ee | 25 | |
af12e3ae | 26 | extern const struct imx_imx_ssi_data imx51_imx_ssi_data[]; |
b8618661 SH |
27 | #define imx51_add_imx_ssi(id, pdata) \ |
28 | imx_add_imx_ssi(&imx51_imx_ssi_data[id], pdata) | |
29 | ||
af12e3ae | 30 | extern const struct imx_imx_uart_1irq_data imx51_imx_uart_data[]; |
04b73b15 UKK |
31 | #define imx51_add_imx_uart(id, pdata) \ |
32 | imx_add_imx_uart_1irq(&imx51_imx_uart_data[id], pdata) | |
33 | ||
7d92e8e6 UKK |
34 | extern const struct imx_mxc_ehci_data imx51_mxc_ehci_otg_data; |
35 | #define imx51_add_mxc_ehci_otg(pdata) \ | |
36 | imx_add_mxc_ehci(&imx51_mxc_ehci_otg_data, pdata) | |
37 | extern const struct imx_mxc_ehci_data imx51_mxc_ehci_hs_data[]; | |
38 | #define imx51_add_mxc_ehci_hs(id, pdata) \ | |
39 | imx_add_mxc_ehci(&imx51_mxc_ehci_hs_data[id - 1], pdata) | |
40 | ||
af12e3ae | 41 | extern const struct imx_mxc_nand_data imx51_mxc_nand_data; |
63a7c6d7 SH |
42 | #define imx51_add_mxc_nand(pdata) \ |
43 | imx_add_mxc_nand(&imx51_mxc_nand_data, pdata) | |
44 | ||
af12e3ae | 45 | extern const struct imx_sdhci_esdhc_imx_data imx51_sdhci_esdhc_imx_data[]; |
124bf94a UKK |
46 | #define imx51_add_sdhci_esdhc_imx(id, pdata) \ |
47 | imx_add_sdhci_esdhc_imx(&imx51_sdhci_esdhc_imx_data[id], pdata) | |
48 | ||
af12e3ae | 49 | extern const struct imx_spi_imx_data imx51_cspi_data; |
9f0c11ee UKK |
50 | #define imx51_add_cspi(pdata) \ |
51 | imx_add_spi_imx(&imx51_cspi_data, pdata) | |
52 | ||
af12e3ae | 53 | extern const struct imx_spi_imx_data imx51_ecspi_data[]; |
9f0c11ee UKK |
54 | #define imx51_add_ecspi(id, pdata) \ |
55 | imx_add_spi_imx(&imx51_ecspi_data[id], pdata) | |
b99545cb | 56 | |
af12e3ae | 57 | extern const struct imx_imx2_wdt_data imx51_imx2_wdt_data[]; |
8c2efec3 FE |
58 | #define imx51_add_imx2_wdt(id, pdata) \ |
59 | imx_add_imx2_wdt(&imx51_imx2_wdt_data[id]) | |
076762aa | 60 | |
af12e3ae | 61 | extern const struct imx_mxc_pwm_data imx51_mxc_pwm_data[]; |
01c0761c APR |
62 | #define imx51_add_mxc_pwm(id) \ |
63 | imx_add_mxc_pwm(&imx51_mxc_pwm_data[id]) | |
a5fcfef0 | 64 | |
af12e3ae | 65 | extern const struct imx_imx_keypad_data imx51_imx_keypad_data; |
a5fcfef0 FE |
66 | #define imx51_add_imx_keypad(pdata) \ |
67 | imx_add_imx_keypad(&imx51_imx_keypad_data, pdata) | |
a45adf1c APR |
68 | |
69 | extern const struct imx_pata_imx_data imx51_pata_imx_data; | |
70 | #define imx51_add_pata_imx() \ | |
71 | imx_add_pata_imx(&imx51_pata_imx_data) |