Uwe Kleine-König | 44505c0 | 2010-09-30 16:44:53 +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 | */ |
Shawn Guo | e0557c0 | 2012-09-13 15:51:15 +0800 | [diff] [blame] | 9 | #include "devices/devices-common.h" |
Uwe Kleine-König | 44505c0 | 2010-09-30 16:44:53 +0200 | [diff] [blame] | 10 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 11 | extern const struct imx_fec_data imx51_fec_data; |
Uwe Kleine-König | 6bd96f3 | 2010-10-06 12:00:18 +0200 | [diff] [blame] | 12 | #define imx51_add_fec(pdata) \ |
| 13 | imx_add_fec(&imx51_fec_data, pdata) |
| 14 | |
Uwe Kleine-König | 6cafe48 | 2011-07-30 23:57:25 +0200 | [diff] [blame] | 15 | extern const struct imx_fsl_usb2_udc_data imx51_fsl_usb2_udc_data; |
| 16 | #define imx51_add_fsl_usb2_udc(pdata) \ |
| 17 | imx_add_fsl_usb2_udc(&imx51_fsl_usb2_udc_data, pdata) |
| 18 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 19 | extern const struct imx_imx_i2c_data imx51_imx_i2c_data[]; |
Uwe Kleine-König | 44505c0 | 2010-09-30 16:44:53 +0200 | [diff] [blame] | 20 | #define imx51_add_imx_i2c(id, pdata) \ |
| 21 | imx_add_imx_i2c(&imx51_imx_i2c_data[id], pdata) |
Uwe Kleine-König | f268885 | 2011-08-01 09:07:54 +0200 | [diff] [blame] | 22 | #define imx51_add_hsi2c(pdata) \ |
| 23 | imx51_add_imx_i2c(2, pdata) |
Uwe Kleine-König | 9f0c11e | 2010-09-10 16:57:07 +0200 | [diff] [blame] | 24 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 25 | extern const struct imx_imx_ssi_data imx51_imx_ssi_data[]; |
Sascha Hauer | b861866 | 2010-08-20 16:43:54 +0200 | [diff] [blame] | 26 | #define imx51_add_imx_ssi(id, pdata) \ |
| 27 | imx_add_imx_ssi(&imx51_imx_ssi_data[id], pdata) |
| 28 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 29 | extern const struct imx_imx_uart_1irq_data imx51_imx_uart_data[]; |
Uwe Kleine-König | 04b73b15 | 2010-08-11 22:23:06 +0200 | [diff] [blame] | 30 | #define imx51_add_imx_uart(id, pdata) \ |
| 31 | imx_add_imx_uart_1irq(&imx51_imx_uart_data[id], pdata) |
| 32 | |
Uwe Kleine-König | 7d92e8e | 2011-07-30 23:41:49 +0200 | [diff] [blame] | 33 | extern const struct imx_mxc_ehci_data imx51_mxc_ehci_otg_data; |
| 34 | #define imx51_add_mxc_ehci_otg(pdata) \ |
| 35 | imx_add_mxc_ehci(&imx51_mxc_ehci_otg_data, pdata) |
| 36 | extern const struct imx_mxc_ehci_data imx51_mxc_ehci_hs_data[]; |
| 37 | #define imx51_add_mxc_ehci_hs(id, pdata) \ |
| 38 | imx_add_mxc_ehci(&imx51_mxc_ehci_hs_data[id - 1], pdata) |
| 39 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 40 | extern const struct imx_mxc_nand_data imx51_mxc_nand_data; |
Sascha Hauer | 63a7c6d | 2010-08-03 11:59:46 +0200 | [diff] [blame] | 41 | #define imx51_add_mxc_nand(pdata) \ |
| 42 | imx_add_mxc_nand(&imx51_mxc_nand_data, pdata) |
| 43 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 44 | extern const struct imx_sdhci_esdhc_imx_data imx51_sdhci_esdhc_imx_data[]; |
Uwe Kleine-König | 124bf94 | 2010-11-19 21:03:33 +0100 | [diff] [blame] | 45 | #define imx51_add_sdhci_esdhc_imx(id, pdata) \ |
| 46 | imx_add_sdhci_esdhc_imx(&imx51_sdhci_esdhc_imx_data[id], pdata) |
| 47 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 48 | extern const struct imx_spi_imx_data imx51_cspi_data; |
Uwe Kleine-König | 9f0c11e | 2010-09-10 16:57:07 +0200 | [diff] [blame] | 49 | #define imx51_add_cspi(pdata) \ |
| 50 | imx_add_spi_imx(&imx51_cspi_data, pdata) |
| 51 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 52 | extern const struct imx_spi_imx_data imx51_ecspi_data[]; |
Uwe Kleine-König | 9f0c11e | 2010-09-10 16:57:07 +0200 | [diff] [blame] | 53 | #define imx51_add_ecspi(id, pdata) \ |
| 54 | imx_add_spi_imx(&imx51_ecspi_data[id], pdata) |
Fabio Estevam | b99545c | 2010-11-26 12:25:59 -0200 | [diff] [blame] | 55 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 56 | extern const struct imx_imx2_wdt_data imx51_imx2_wdt_data[]; |
Benoît Thébaudeau | bec31a8 | 2012-07-04 16:35:54 +0200 | [diff] [blame] | 57 | #define imx51_add_imx2_wdt(id) \ |
Fabio Estevam | 8c2efec | 2010-12-06 16:38:32 -0200 | [diff] [blame] | 58 | imx_add_imx2_wdt(&imx51_imx2_wdt_data[id]) |
Fabio Estevam | 076762a | 2010-12-01 11:11:46 -0200 | [diff] [blame] | 59 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 60 | extern const struct imx_mxc_pwm_data imx51_mxc_pwm_data[]; |
Arnaud Patard (Rtp) | 01c0761 | 2011-01-13 12:26:39 +0100 | [diff] [blame] | 61 | #define imx51_add_mxc_pwm(id) \ |
| 62 | imx_add_mxc_pwm(&imx51_mxc_pwm_data[id]) |
Fabio Estevam | a5fcfef | 2010-12-01 11:11:47 -0200 | [diff] [blame] | 63 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 64 | extern const struct imx_imx_keypad_data imx51_imx_keypad_data; |
Fabio Estevam | a5fcfef | 2010-12-01 11:11:47 -0200 | [diff] [blame] | 65 | #define imx51_add_imx_keypad(pdata) \ |
| 66 | imx_add_imx_keypad(&imx51_imx_keypad_data, pdata) |
Arnaud Patard (Rtp) | a45adf1 | 2011-07-26 16:54:25 +0200 | [diff] [blame] | 67 | |
| 68 | extern const struct imx_pata_imx_data imx51_pata_imx_data; |
| 69 | #define imx51_add_pata_imx() \ |
| 70 | imx_add_pata_imx(&imx51_pata_imx_data) |