Uwe Kleine-König | a2ceeef | 2010-06-16 12:23:11 +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 | a2ceeef | 2010-06-16 12:23:11 +0200 | [diff] [blame] | 10 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 11 | extern const struct imx_fsl_usb2_udc_data imx31_fsl_usb2_udc_data; |
Uwe Kleine-König | 9e1dde3 | 2010-11-12 16:40:06 +0100 | [diff] [blame] | 12 | #define imx31_add_fsl_usb2_udc(pdata) \ |
| 13 | imx_add_fsl_usb2_udc(&imx31_fsl_usb2_udc_data, pdata) |
| 14 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 15 | extern const struct imx_imx2_wdt_data imx31_imx2_wdt_data; |
Benoît Thébaudeau | bec31a8 | 2012-07-04 16:35:54 +0200 | [diff] [blame] | 16 | #define imx31_add_imx2_wdt() \ |
Uwe Kleine-König | 742269e | 2010-11-15 15:28:45 +0100 | [diff] [blame] | 17 | imx_add_imx2_wdt(&imx31_imx2_wdt_data) |
| 18 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 19 | extern const struct imx_imx_i2c_data imx31_imx_i2c_data[]; |
Uwe Kleine-König | 64de5ec | 2010-09-21 12:13:34 +0200 | [diff] [blame] | 20 | #define imx31_add_imx_i2c(id, pdata) \ |
| 21 | imx_add_imx_i2c(&imx31_imx_i2c_data[id], pdata) |
| 22 | #define imx31_add_imx_i2c0(pdata) imx31_add_imx_i2c(0, pdata) |
| 23 | #define imx31_add_imx_i2c1(pdata) imx31_add_imx_i2c(1, pdata) |
| 24 | #define imx31_add_imx_i2c2(pdata) imx31_add_imx_i2c(2, pdata) |
Uwe Kleine-König | 4a9b8b0 | 2010-06-16 18:03:05 +0200 | [diff] [blame] | 25 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 26 | extern const struct imx_imx_keypad_data imx31_imx_keypad_data; |
Uwe Kleine-König | d690b4c | 2010-11-16 21:27:33 +0100 | [diff] [blame] | 27 | #define imx31_add_imx_keypad(pdata) \ |
| 28 | imx_add_imx_keypad(&imx31_imx_keypad_data, pdata) |
| 29 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 30 | extern const struct imx_imx_ssi_data imx31_imx_ssi_data[]; |
Uwe Kleine-König | 4697bb92 | 2010-08-25 17:37:45 +0200 | [diff] [blame] | 31 | #define imx31_add_imx_ssi(id, pdata) \ |
| 32 | imx_add_imx_ssi(&imx31_imx_ssi_data[id], pdata) |
| 33 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 34 | extern const struct imx_imx_uart_1irq_data imx31_imx_uart_data[]; |
Uwe Kleine-König | 5162de0 | 2010-08-10 22:57:24 +0200 | [diff] [blame] | 35 | #define imx31_add_imx_uart(id, pdata) \ |
| 36 | imx_add_imx_uart_1irq(&imx31_imx_uart_data[id], pdata) |
| 37 | #define imx31_add_imx_uart0(pdata) imx31_add_imx_uart(0, pdata) |
| 38 | #define imx31_add_imx_uart1(pdata) imx31_add_imx_uart(1, pdata) |
| 39 | #define imx31_add_imx_uart2(pdata) imx31_add_imx_uart(2, pdata) |
| 40 | #define imx31_add_imx_uart3(pdata) imx31_add_imx_uart(3, pdata) |
| 41 | #define imx31_add_imx_uart4(pdata) imx31_add_imx_uart(4, pdata) |
Uwe Kleine-König | 16cf5c4 | 2010-06-23 11:46:16 +0200 | [diff] [blame] | 42 | |
Uwe Kleine-König | afa77ef | 2011-03-03 21:32:02 +0100 | [diff] [blame] | 43 | extern const struct imx_ipu_core_data imx31_ipu_core_data; |
Shawn Guo | 88289c8 | 2012-06-13 14:07:31 +0800 | [diff] [blame] | 44 | #define imx31_add_ipu_core() \ |
| 45 | imx_add_ipu_core(&imx31_ipu_core_data) |
Uwe Kleine-König | afa77ef | 2011-03-03 21:32:02 +0100 | [diff] [blame] | 46 | #define imx31_alloc_mx3_camera(pdata) \ |
| 47 | imx_alloc_mx3_camera(&imx31_ipu_core_data, pdata) |
| 48 | #define imx31_add_mx3_sdc_fb(pdata) \ |
| 49 | imx_add_mx3_sdc_fb(&imx31_ipu_core_data, pdata) |
| 50 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 51 | extern const struct imx_mxc_ehci_data imx31_mxc_ehci_otg_data; |
Uwe Kleine-König | 2d58de2 | 2010-11-15 11:57:49 +0100 | [diff] [blame] | 52 | #define imx31_add_mxc_ehci_otg(pdata) \ |
| 53 | imx_add_mxc_ehci(&imx31_mxc_ehci_otg_data, pdata) |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 54 | extern const struct imx_mxc_ehci_data imx31_mxc_ehci_hs_data[]; |
Uwe Kleine-König | 2d58de2 | 2010-11-15 11:57:49 +0100 | [diff] [blame] | 55 | #define imx31_add_mxc_ehci_hs(id, pdata) \ |
| 56 | imx_add_mxc_ehci(&imx31_mxc_ehci_hs_data[id - 1], pdata) |
| 57 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 58 | extern const struct imx_mxc_mmc_data imx31_mxc_mmc_data[]; |
Uwe Kleine-König | 6a697e3 | 2010-11-12 11:10:55 +0100 | [diff] [blame] | 59 | #define imx31_add_mxc_mmc(id, pdata) \ |
| 60 | imx_add_mxc_mmc(&imx31_mxc_mmc_data[id], pdata) |
| 61 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 62 | extern const struct imx_mxc_nand_data imx31_mxc_nand_data; |
Uwe Kleine-König | a2ceeef | 2010-06-16 12:23:11 +0200 | [diff] [blame] | 63 | #define imx31_add_mxc_nand(pdata) \ |
Uwe Kleine-König | 00b57bf | 2010-08-23 11:25:52 +0200 | [diff] [blame] | 64 | imx_add_mxc_nand(&imx31_mxc_nand_data, pdata) |
Uwe Kleine-König | 06606ff | 2010-06-22 10:09:14 +0200 | [diff] [blame] | 65 | |
Uwe Kleine-König | 8342267 | 2011-03-01 11:04:34 +0100 | [diff] [blame] | 66 | extern const struct imx_mxc_rtc_data imx31_mxc_rtc_data; |
Benoît Thébaudeau | bec31a8 | 2012-07-04 16:35:54 +0200 | [diff] [blame] | 67 | #define imx31_add_mxc_rtc() \ |
Uwe Kleine-König | 8342267 | 2011-03-01 11:04:34 +0100 | [diff] [blame] | 68 | imx_add_mxc_rtc(&imx31_mxc_rtc_data) |
| 69 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 70 | extern const struct imx_mxc_w1_data imx31_mxc_w1_data; |
Benoît Thébaudeau | bec31a8 | 2012-07-04 16:35:54 +0200 | [diff] [blame] | 71 | #define imx31_add_mxc_w1() \ |
Uwe Kleine-König | ae71a56 | 2010-10-29 10:56:07 +0200 | [diff] [blame] | 72 | imx_add_mxc_w1(&imx31_mxc_w1_data) |
| 73 | |
Richard Zhao | af12e3a | 2011-03-31 18:16:23 +0800 | [diff] [blame] | 74 | extern const struct imx_spi_imx_data imx31_cspi_data[]; |
Uwe Kleine-König | 35bab05 | 2010-09-09 21:02:02 +0200 | [diff] [blame] | 75 | #define imx31_add_cspi(id, pdata) \ |
| 76 | imx_add_spi_imx(&imx31_cspi_data[id], pdata) |
| 77 | #define imx31_add_spi_imx0(pdata) imx31_add_cspi(0, pdata) |
| 78 | #define imx31_add_spi_imx1(pdata) imx31_add_cspi(1, pdata) |
| 79 | #define imx31_add_spi_imx2(pdata) imx31_add_cspi(2, pdata) |
Fabio Estevam | d5534ba | 2011-08-24 12:04:14 -0300 | [diff] [blame] | 80 | |
| 81 | extern const struct imx_pata_imx_data imx31_pata_imx_data; |
| 82 | #define imx31_add_pata_imx() \ |
| 83 | imx_add_pata_imx(&imx31_pata_imx_data) |