blob: 130962519751ea0e4c4ad8aa752cc818c8487602 [file] [log] [blame]
Uwe Kleine-König0e7a29a2010-06-16 07:35:31 +02001/*
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 Guoe0557c02012-09-13 15:51:15 +08009#include "devices/devices-common.h"
Uwe Kleine-König0e7a29a2010-06-16 07:35:31 +020010
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080011extern const struct imx_fec_data imx27_fec_data;
Uwe Kleine-König6bd96f32010-10-06 12:00:18 +020012#define imx27_add_fec(pdata) \
13 imx_add_fec(&imx27_fec_data, pdata)
14
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080015extern const struct imx_fsl_usb2_udc_data imx27_fsl_usb2_udc_data;
Uwe Kleine-Königbd455ed2010-11-09 17:52:14 +010016#define imx27_add_fsl_usb2_udc(pdata) \
17 imx_add_fsl_usb2_udc(&imx27_fsl_usb2_udc_data, pdata)
18
Javier Martin6d8c4522012-07-26 05:45:32 -030019extern const struct imx_imx27_coda_data imx27_coda_data;
20#define imx27_add_coda() \
21 imx_add_imx27_coda(&imx27_coda_data)
22
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080023extern const struct imx_imx2_wdt_data imx27_imx2_wdt_data;
Benoît Thébaudeaubec31a82012-07-04 16:35:54 +020024#define imx27_add_imx2_wdt() \
Uwe Kleine-Könige0a19612010-11-04 10:09:10 +010025 imx_add_imx2_wdt(&imx27_imx2_wdt_data)
26
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080027extern const struct imx_imx_fb_data imx27_imx_fb_data;
Uwe Kleine-Königad851bf2010-11-04 17:07:48 +010028#define imx27_add_imx_fb(pdata) \
29 imx_add_imx_fb(&imx27_imx_fb_data, pdata)
30
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080031extern const struct imx_imx_i2c_data imx27_imx_i2c_data[];
Uwe Kleine-König64de5ec2010-09-21 12:13:34 +020032#define imx27_add_imx_i2c(id, pdata) \
33 imx_add_imx_i2c(&imx27_imx_i2c_data[id], pdata)
Uwe Kleine-Königc6987152010-06-16 17:25:40 +020034
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080035extern const struct imx_imx_keypad_data imx27_imx_keypad_data;
Uwe Kleine-König3f880142010-11-10 09:58:56 +010036#define imx27_add_imx_keypad(pdata) \
37 imx_add_imx_keypad(&imx27_imx_keypad_data, pdata)
38
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080039extern const struct imx_imx_ssi_data imx27_imx_ssi_data[];
Uwe Kleine-König4697bb92010-08-25 17:37:45 +020040#define imx27_add_imx_ssi(id, pdata) \
41 imx_add_imx_ssi(&imx27_imx_ssi_data[id], pdata)
42
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080043extern const struct imx_imx_uart_1irq_data imx27_imx_uart_data[];
Uwe Kleine-König5162de02010-08-10 22:57:24 +020044#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)
Uwe Kleine-Königd5dac4a2010-06-23 09:36:01 +020052
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080053extern const struct imx_mx2_camera_data imx27_mx2_camera_data;
Uwe Kleine-Königb2997cb2010-11-02 17:50:55 +010054#define imx27_add_mx2_camera(pdata) \
55 imx_add_mx2_camera(&imx27_mx2_camera_data, pdata)
Gaëtan Carlier3ab3a352012-09-05 13:06:15 +020056
57extern const struct imx_mx2_emma_data imx27_mx2_emmaprp_data;
Benoît Thébaudeaubec31a82012-07-04 16:35:54 +020058#define imx27_add_mx2_emmaprp() \
Gaëtan Carlier3ab3a352012-09-05 13:06:15 +020059 imx_add_mx2_emmaprp(&imx27_mx2_emmaprp_data)
Uwe Kleine-Königb2997cb2010-11-02 17:50:55 +010060
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080061extern const struct imx_mxc_ehci_data imx27_mxc_ehci_otg_data;
Uwe Kleine-König2eb42d52010-11-05 18:52:09 +010062#define imx27_add_mxc_ehci_otg(pdata) \
63 imx_add_mxc_ehci(&imx27_mxc_ehci_otg_data, pdata)
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080064extern const struct imx_mxc_ehci_data imx27_mxc_ehci_hs_data[];
Uwe Kleine-König2eb42d52010-11-05 18:52:09 +010065#define imx27_add_mxc_ehci_hs(id, pdata) \
66 imx_add_mxc_ehci(&imx27_mxc_ehci_hs_data[id - 1], pdata)
67
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080068extern const struct imx_mxc_mmc_data imx27_mxc_mmc_data[];
Uwe Kleine-König9d3d9452010-11-05 17:26:09 +010069#define imx27_add_mxc_mmc(id, pdata) \
70 imx_add_mxc_mmc(&imx27_mxc_mmc_data[id], pdata)
71
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080072extern const struct imx_mxc_nand_data imx27_mxc_nand_data;
Uwe Kleine-König0e7a29a2010-06-16 07:35:31 +020073#define imx27_add_mxc_nand(pdata) \
Uwe Kleine-König00b57bf2010-08-23 11:25:52 +020074 imx_add_mxc_nand(&imx27_mxc_nand_data, pdata)
Uwe Kleine-König7536cf92010-06-22 09:00:22 +020075
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080076extern const struct imx_mxc_w1_data imx27_mxc_w1_data;
Benoît Thébaudeaubec31a82012-07-04 16:35:54 +020077#define imx27_add_mxc_w1() \
Uwe Kleine-Königae71a562010-10-29 10:56:07 +020078 imx_add_mxc_w1(&imx27_mxc_w1_data)
79
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080080extern const struct imx_spi_imx_data imx27_cspi_data[];
Uwe Kleine-König35bab052010-09-09 21:02:02 +020081#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)
Fabio Estevamd5534ba2011-08-24 12:04:14 -030086
87extern 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)