Uwe Kleine-König | e2611ba | 2010-06-16 12:26: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 | */ |
| 9 | #include <mach/mx35.h> |
| 10 | #include <mach/devices-common.h> |
| 11 | |
Marc Kleine-Budde | 61c6850 | 2010-07-22 11:45:34 +0200 | [diff] [blame] | 12 | #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önig | 7cdc8fa | 2010-06-16 19:25:34 +0200 | [diff] [blame] | 17 | #define imx35_add_imx_i2c0(pdata) \ |
| 18 | imx_add_imx_i2c(0, MX35_I2C1_BASE_ADDR, SZ_4K, MX35_INT_I2C1, pdata) |
| 19 | #define imx35_add_imx_i2c1(pdata) \ |
| 20 | imx_add_imx_i2c(1, MX35_I2C2_BASE_ADDR, SZ_4K, MX35_INT_I2C2, pdata) |
| 21 | #define imx35_add_imx_i2c2(pdata) \ |
| 22 | imx_add_imx_i2c(2, MX35_I2C3_BASE_ADDR, SZ_4K, MX35_INT_I2C3, pdata) |
| 23 | |
Uwe Kleine-König | 6eafde5 | 2010-06-23 11:49:34 +0200 | [diff] [blame] | 24 | #define imx35_add_imx_uart0(pdata) \ |
| 25 | imx_add_imx_uart_1irq(0, MX35_UART1_BASE_ADDR, SZ_16K, MX35_INT_UART1, pdata) |
| 26 | #define imx35_add_imx_uart1(pdata) \ |
| 27 | imx_add_imx_uart_1irq(1, MX35_UART2_BASE_ADDR, SZ_16K, MX35_INT_UART2, pdata) |
| 28 | #define imx35_add_imx_uart2(pdata) \ |
| 29 | imx_add_imx_uart_1irq(2, MX35_UART3_BASE_ADDR, SZ_16K, MX35_INT_UART3, pdata) |
| 30 | |
Uwe Kleine-König | e2611ba | 2010-06-16 12:26:53 +0200 | [diff] [blame] | 31 | #define imx35_add_mxc_nand(pdata) \ |
| 32 | imx_add_mxc_nand_v21(MX35_NFC_BASE_ADDR, MX35_INT_NANDFC, pdata) |
Uwe Kleine-König | a4dc013 | 2010-06-22 10:14:15 +0200 | [diff] [blame] | 33 | |
| 34 | #define imx35_add_spi_imx0(pdata) \ |
| 35 | imx_add_spi_imx(0, MX35_CSPI1_BASE_ADDR, SZ_4K, MX35_INT_CSPI1, pdata) |
| 36 | #define imx35_add_spi_imx1(pdata) \ |
| 37 | imx_add_spi_imx(1, MX35_CSPI2_BASE_ADDR, SZ_4K, MX35_INT_CSPI2, pdata) |