blob: af488bc0e2256df020b37c770f534bcc0cde01e1 [file] [log] [blame]
Uwe Kleine-König44505c02010-09-30 16:44:53 +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 */
9#include <mach/mx51.h>
10#include <mach/devices-common.h>
11
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080012extern const struct imx_fec_data imx51_fec_data;
Uwe Kleine-König6bd96f32010-10-06 12:00:18 +020013#define imx51_add_fec(pdata) \
14 imx_add_fec(&imx51_fec_data, pdata)
15
Uwe Kleine-König6cafe482011-07-30 23:57:25 +020016extern 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
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080020extern const struct imx_imx_i2c_data imx51_imx_i2c_data[];
Uwe Kleine-König44505c02010-09-30 16:44:53 +020021#define imx51_add_imx_i2c(id, pdata) \
22 imx_add_imx_i2c(&imx51_imx_i2c_data[id], pdata)
Uwe Kleine-Königf2688852011-08-01 09:07:54 +020023#define imx51_add_hsi2c(pdata) \
24 imx51_add_imx_i2c(2, pdata)
Uwe Kleine-König9f0c11e2010-09-10 16:57:07 +020025
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080026extern const struct imx_imx_ssi_data imx51_imx_ssi_data[];
Sascha Hauerb8618662010-08-20 16:43:54 +020027#define imx51_add_imx_ssi(id, pdata) \
28 imx_add_imx_ssi(&imx51_imx_ssi_data[id], pdata)
29
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080030extern const struct imx_imx_uart_1irq_data imx51_imx_uart_data[];
Uwe Kleine-König04b73b152010-08-11 22:23:06 +020031#define imx51_add_imx_uart(id, pdata) \
32 imx_add_imx_uart_1irq(&imx51_imx_uart_data[id], pdata)
33
Uwe Kleine-König7d92e8e2011-07-30 23:41:49 +020034extern 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)
37extern 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
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080041extern const struct imx_mxc_nand_data imx51_mxc_nand_data;
Sascha Hauer63a7c6d2010-08-03 11:59:46 +020042#define imx51_add_mxc_nand(pdata) \
43 imx_add_mxc_nand(&imx51_mxc_nand_data, pdata)
44
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080045extern const struct imx_sdhci_esdhc_imx_data imx51_sdhci_esdhc_imx_data[];
Uwe Kleine-König124bf942010-11-19 21:03:33 +010046#define imx51_add_sdhci_esdhc_imx(id, pdata) \
47 imx_add_sdhci_esdhc_imx(&imx51_sdhci_esdhc_imx_data[id], pdata)
48
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080049extern const struct imx_spi_imx_data imx51_cspi_data;
Uwe Kleine-König9f0c11e2010-09-10 16:57:07 +020050#define imx51_add_cspi(pdata) \
51 imx_add_spi_imx(&imx51_cspi_data, pdata)
52
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080053extern const struct imx_spi_imx_data imx51_ecspi_data[];
Uwe Kleine-König9f0c11e2010-09-10 16:57:07 +020054#define imx51_add_ecspi(id, pdata) \
55 imx_add_spi_imx(&imx51_ecspi_data[id], pdata)
Fabio Estevamb99545c2010-11-26 12:25:59 -020056
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080057extern const struct imx_imx2_wdt_data imx51_imx2_wdt_data[];
Fabio Estevam8c2efec2010-12-06 16:38:32 -020058#define imx51_add_imx2_wdt(id, pdata) \
59 imx_add_imx2_wdt(&imx51_imx2_wdt_data[id])
Fabio Estevam076762a2010-12-01 11:11:46 -020060
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080061extern const struct imx_mxc_pwm_data imx51_mxc_pwm_data[];
Arnaud Patard (Rtp)01c07612011-01-13 12:26:39 +010062#define imx51_add_mxc_pwm(id) \
63 imx_add_mxc_pwm(&imx51_mxc_pwm_data[id])
Fabio Estevama5fcfef2010-12-01 11:11:47 -020064
Richard Zhaoaf12e3a2011-03-31 18:16:23 +080065extern const struct imx_imx_keypad_data imx51_imx_keypad_data;
Fabio Estevama5fcfef2010-12-01 11:11:47 -020066#define imx51_add_imx_keypad(pdata) \
67 imx_add_imx_keypad(&imx51_imx_keypad_data, pdata)
Arnaud Patard (Rtp)a45adf12011-07-26 16:54:25 +020068
69extern 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)