blob: 766008451ccd44940004aedc84a51e93361dbf26 [file] [log] [blame]
Uwe Kleine-Könige2611ba2010-06-16 12:26: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/mx35.h>
10#include <mach/devices-common.h>
11
Marc Kleine-Budde61c68502010-07-22 11:45:34 +020012#define imx35_add_flexcan0(pdata) \
13 imx_add_flexcan(0, MX35_CAN1_BASE_ADDR, SZ_16K, MX35_INT_CAN1, pdata)
14#define imx35_add_flexcan1(pdata) \
15 imx_add_flexcan(1, MX35_CAN2_BASE_ADDR, SZ_16K, MX35_INT_CAN2, pdata)
16
Uwe Kleine-König64de5ec2010-09-21 12:13:34 +020017extern const struct imx_imx_i2c_data imx35_imx_i2c_data[] __initconst;
18#define imx35_add_imx_i2c(id, pdata) \
19 imx_add_imx_i2c(&imx35_imx_i2c_data[id], pdata)
20#define imx35_add_imx_i2c0(pdata) imx35_add_imx_i2c(0, pdata)
21#define imx35_add_imx_i2c1(pdata) imx35_add_imx_i2c(1, pdata)
22#define imx35_add_imx_i2c2(pdata) imx35_add_imx_i2c(2, pdata)
Uwe Kleine-König7cdc8fa2010-06-16 19:25:34 +020023
Uwe Kleine-König4697bb922010-08-25 17:37:45 +020024extern const struct imx_imx_ssi_data imx35_imx_ssi_data[] __initconst;
25#define imx35_add_imx_ssi(id, pdata) \
26 imx_add_imx_ssi(&imx35_imx_ssi_data[id], pdata)
27
Uwe Kleine-König5162de02010-08-10 22:57:24 +020028extern const struct imx_imx_uart_1irq_data imx35_imx_uart_data[] __initconst;
29#define imx35_add_imx_uart(id, pdata) \
30 imx_add_imx_uart_1irq(&imx35_imx_uart_data[id], pdata)
31#define imx35_add_imx_uart0(pdata) imx35_add_imx_uart(0, pdata)
32#define imx35_add_imx_uart1(pdata) imx35_add_imx_uart(1, pdata)
33#define imx35_add_imx_uart2(pdata) imx35_add_imx_uart(2, pdata)
Uwe Kleine-König6eafde52010-06-23 11:49:34 +020034
Uwe Kleine-König00b57bf2010-08-23 11:25:52 +020035extern const struct imx_mxc_nand_data imx35_mxc_nand_data __initconst;
Uwe Kleine-Könige2611ba2010-06-16 12:26:53 +020036#define imx35_add_mxc_nand(pdata) \
Uwe Kleine-König00b57bf2010-08-23 11:25:52 +020037 imx_add_mxc_nand(&imx35_mxc_nand_data, pdata)
Uwe Kleine-Königa4dc0132010-06-22 10:14:15 +020038
Uwe Kleine-König35bab052010-09-09 21:02:02 +020039extern const struct imx_spi_imx_data imx35_cspi_data[] __initconst;
40#define imx35_add_cspi(id, pdata) \
41 imx_add_spi_imx(&imx35_cspi_data[id], pdata)
42#define imx35_add_spi_imx0(pdata) imx35_add_cspi(0, pdata)
43#define imx35_add_spi_imx1(pdata) imx35_add_cspi(1, pdata)
Wolfram Sang774305d2010-10-11 12:55:22 +020044
45#define imx35_add_esdhc0(pdata) \
46 imx_add_esdhc(0, MX35_ESDHC1_BASE_ADDR, SZ_16K, MX35_INT_MMC_SDHC1, pdata)
47#define imx35_add_esdhc1(pdata) \
48 imx_add_esdhc(1, MX35_ESDHC2_BASE_ADDR, SZ_16K, MX35_INT_MMC_SDHC2, pdata)
49#define imx35_add_esdhc2(pdata) \
50 imx_add_esdhc(2, MX35_ESDHC3_BASE_ADDR, SZ_16K, MX35_INT_MMC_SDHC3, pdata)