Uwe Kleine-König | b0c4845 | 2010-06-16 12:34:56 +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/mx25.h> |
| 10 | #include <mach/devices-common.h> |
| 11 | |
Marc Kleine-Budde | 61c6850 | 2010-07-22 11:45:34 +0200 | [diff] [blame] | 12 | #define imx25_add_flexcan0(pdata) \ |
| 13 | imx_add_flexcan(0, MX25_CAN1_BASE_ADDR, SZ_16K, MX25_INT_CAN1, pdata) |
| 14 | #define imx25_add_flexcan1(pdata) \ |
| 15 | imx_add_flexcan(1, MX25_CAN2_BASE_ADDR, SZ_16K, MX25_INT_CAN2, pdata) |
| 16 | |
Uwe Kleine-König | a8ff045 | 2010-06-16 14:55:07 +0200 | [diff] [blame] | 17 | #define imx25_add_imx_i2c0(pdata) \ |
| 18 | imx_add_imx_i2c(0, MX25_I2C1_BASE_ADDR, SZ_16K, MX25_INT_I2C1, pdata) |
| 19 | #define imx25_add_imx_i2c1(pdata) \ |
| 20 | imx_add_imx_i2c(1, MX25_I2C2_BASE_ADDR, SZ_16K, MX25_INT_I2C2, pdata) |
| 21 | #define imx25_add_imx_i2c2(pdata) \ |
| 22 | imx_add_imx_i2c(2, MX25_I2C3_BASE_ADDR, SZ_16K, MX25_INT_I2C3, pdata) |
| 23 | |
Uwe Kleine-König | 7cc3c84 | 2010-06-24 15:20:44 +0200 | [diff] [blame] | 24 | #define imx25_add_imx_uart0(pdata) \ |
| 25 | imx_add_imx_uart_1irq(0, MX25_UART1_BASE_ADDR, SZ_16K, MX25_INT_UART1, pdata) |
| 26 | #define imx25_add_imx_uart1(pdata) \ |
| 27 | imx_add_imx_uart_1irq(1, MX25_UART2_BASE_ADDR, SZ_16K, MX25_INT_UART2, pdata) |
| 28 | #define imx25_add_imx_uart2(pdata) \ |
| 29 | imx_add_imx_uart_1irq(2, MX25_UART3_BASE_ADDR, SZ_16K, MX25_INT_UART3, pdata) |
| 30 | #define imx25_add_imx_uart3(pdata) \ |
| 31 | imx_add_imx_uart_1irq(3, MX25_UART4_BASE_ADDR, SZ_16K, MX25_INT_UART4, pdata) |
| 32 | #define imx25_add_imx_uart4(pdata) \ |
| 33 | imx_add_imx_uart_1irq(4, MX25_UART5_BASE_ADDR, SZ_16K, MX25_INT_UART5, pdata) |
| 34 | |
Uwe Kleine-König | b0c4845 | 2010-06-16 12:34:56 +0200 | [diff] [blame] | 35 | #define imx25_add_mxc_nand(pdata) \ |
| 36 | imx_add_mxc_nand_v21(MX25_NFC_BASE_ADDR, MX25_INT_NANDFC, pdata) |
Uwe Kleine-König | 63ddc5b | 2010-06-21 17:34:58 +0200 | [diff] [blame] | 37 | |
Uwe Kleine-König | 35bab05 | 2010-09-09 21:02:02 +0200 | [diff] [blame^] | 38 | extern const struct imx_spi_imx_data imx25_spi_imx_data[] __initconst; |
| 39 | #define imx25_add_spi_imx(id, pdata) \ |
| 40 | imx_add_spi_imx(&imx25_spi_imx_data[id], pdata) |
| 41 | #define imx25_add_spi_imx0(pdata) imx25_add_spi_imx(0, pdata) |
| 42 | #define imx25_add_spi_imx1(pdata) imx25_add_spi_imx(1, pdata) |
| 43 | #define imx25_add_spi_imx2(pdata) imx25_add_spi_imx(2, pdata) |