Uwe Kleine-König | 0e7a29a | 2010-06-16 07:35:31 +0200 | [diff] [blame] | 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/mx27.h> |
| 10 | #include <mach/devices-common.h> |
| 11 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 12 | extern const struct imx_fec_data imx27_fec_data; |
Uwe Kleine-König | 6bd96f3 | 2010-10-06 12:00:18 +0200 | [diff] [blame] | 13 | #define imx27_add_fec(pdata) \ |
| 14 | imx_add_fec(&imx27_fec_data, pdata) |
| 15 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 16 | extern const struct imx_fsl_usb2_udc_data imx27_fsl_usb2_udc_data; |
Uwe Kleine-König | bd455ed | 2010-11-09 17:52:14 +0100 | [diff] [blame] | 17 | #define imx27_add_fsl_usb2_udc(pdata) \ |
| 18 | imx_add_fsl_usb2_udc(&imx27_fsl_usb2_udc_data, pdata) |
| 19 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 20 | extern const struct imx_imx2_wdt_data imx27_imx2_wdt_data; |
Uwe Kleine-König | e0a1961 | 2010-11-04 10:09:10 +0100 | [diff] [blame] | 21 | #define imx27_add_imx2_wdt(pdata) \ |
| 22 | imx_add_imx2_wdt(&imx27_imx2_wdt_data) |
| 23 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 24 | extern const struct imx_imx_fb_data imx27_imx_fb_data; |
Uwe Kleine-König | ad851bf | 2010-11-04 17:07:48 +0100 | [diff] [blame] | 25 | #define imx27_add_imx_fb(pdata) \ |
| 26 | imx_add_imx_fb(&imx27_imx_fb_data, pdata) |
| 27 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 28 | extern const struct imx_imx_i2c_data imx27_imx_i2c_data[]; |
Uwe Kleine-König | 64de5ec | 2010-09-21 12:13:34 +0200 | [diff] [blame] | 29 | #define imx27_add_imx_i2c(id, pdata) \ |
| 30 | imx_add_imx_i2c(&imx27_imx_i2c_data[id], pdata) |
Uwe Kleine-König | c698715 | 2010-06-16 17:25:40 +0200 | [diff] [blame] | 31 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 32 | extern const struct imx_imx_keypad_data imx27_imx_keypad_data; |
Uwe Kleine-König | 3f88014 | 2010-11-10 09:58:56 +0100 | [diff] [blame] | 33 | #define imx27_add_imx_keypad(pdata) \ |
| 34 | imx_add_imx_keypad(&imx27_imx_keypad_data, pdata) |
| 35 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 36 | extern const struct imx_imx_ssi_data imx27_imx_ssi_data[]; |
Uwe Kleine-König | 4697bb92 | 2010-08-25 17:37:45 +0200 | [diff] [blame] | 37 | #define imx27_add_imx_ssi(id, pdata) \ |
| 38 | imx_add_imx_ssi(&imx27_imx_ssi_data[id], pdata) |
| 39 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 40 | extern const struct imx_imx_uart_1irq_data imx27_imx_uart_data[]; |
Uwe Kleine-König | 5162de0 | 2010-08-10 22:57:24 +0200 | [diff] [blame] | 41 | #define imx27_add_imx_uart(id, pdata) \ |
| 42 | imx_add_imx_uart_1irq(&imx27_imx_uart_data[id], pdata) |
| 43 | #define imx27_add_imx_uart0(pdata) imx27_add_imx_uart(0, pdata) |
| 44 | #define imx27_add_imx_uart1(pdata) imx27_add_imx_uart(1, pdata) |
| 45 | #define imx27_add_imx_uart2(pdata) imx27_add_imx_uart(2, pdata) |
| 46 | #define imx27_add_imx_uart3(pdata) imx27_add_imx_uart(3, pdata) |
| 47 | #define imx27_add_imx_uart4(pdata) imx27_add_imx_uart(4, pdata) |
| 48 | #define imx27_add_imx_uart5(pdata) imx27_add_imx_uart(5, pdata) |
Uwe Kleine-König | d5dac4a | 2010-06-23 09:36:01 +0200 | [diff] [blame] | 49 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 50 | extern const struct imx_mx2_camera_data imx27_mx2_camera_data; |
Uwe Kleine-König | b2997cb | 2010-11-02 17:50:55 +0100 | [diff] [blame] | 51 | #define imx27_add_mx2_camera(pdata) \ |
| 52 | imx_add_mx2_camera(&imx27_mx2_camera_data, pdata) |
| 53 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 54 | extern const struct imx_mxc_ehci_data imx27_mxc_ehci_otg_data; |
Uwe Kleine-König | 2eb42d5 | 2010-11-05 18:52:09 +0100 | [diff] [blame] | 55 | #define imx27_add_mxc_ehci_otg(pdata) \ |
| 56 | imx_add_mxc_ehci(&imx27_mxc_ehci_otg_data, pdata) |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 57 | extern const struct imx_mxc_ehci_data imx27_mxc_ehci_hs_data[]; |
Uwe Kleine-König | 2eb42d5 | 2010-11-05 18:52:09 +0100 | [diff] [blame] | 58 | #define imx27_add_mxc_ehci_hs(id, pdata) \ |
| 59 | imx_add_mxc_ehci(&imx27_mxc_ehci_hs_data[id - 1], pdata) |
| 60 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 61 | extern const struct imx_mxc_mmc_data imx27_mxc_mmc_data[]; |
Uwe Kleine-König | 9d3d945 | 2010-11-05 17:26:09 +0100 | [diff] [blame] | 62 | #define imx27_add_mxc_mmc(id, pdata) \ |
| 63 | imx_add_mxc_mmc(&imx27_mxc_mmc_data[id], pdata) |
| 64 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 65 | extern const struct imx_mxc_nand_data imx27_mxc_nand_data; |
Uwe Kleine-König | 0e7a29a | 2010-06-16 07:35:31 +0200 | [diff] [blame] | 66 | #define imx27_add_mxc_nand(pdata) \ |
Uwe Kleine-König | 00b57bf | 2010-08-23 11:25:52 +0200 | [diff] [blame] | 67 | imx_add_mxc_nand(&imx27_mxc_nand_data, pdata) |
Uwe Kleine-König | 7536cf9 | 2010-06-22 09:00:22 +0200 | [diff] [blame] | 68 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 69 | extern const struct imx_mxc_w1_data imx27_mxc_w1_data; |
Uwe Kleine-König | ae71a56 | 2010-10-29 10:56:07 +0200 | [diff] [blame] | 70 | #define imx27_add_mxc_w1(pdata) \ |
| 71 | imx_add_mxc_w1(&imx27_mxc_w1_data) |
| 72 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 73 | extern const struct imx_spi_imx_data imx27_cspi_data[]; |
Uwe Kleine-König | 35bab05 | 2010-09-09 21:02:02 +0200 | [diff] [blame] | 74 | #define imx27_add_cspi(id, pdata) \ |
| 75 | imx_add_spi_imx(&imx27_cspi_data[id], pdata) |
| 76 | #define imx27_add_spi_imx0(pdata) imx27_add_cspi(0, pdata) |
| 77 | #define imx27_add_spi_imx1(pdata) imx27_add_cspi(1, pdata) |
| 78 | #define imx27_add_spi_imx2(pdata) imx27_add_cspi(2, pdata) |