Shawn Guo | dc38ad4 | 2010-12-09 23:12:46 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2010 Pengutronix |
| 3 | * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de> |
| 4 | * |
| 5 | * Copyright 2010 Freescale Semiconductor, Inc. All Rights Reserved. |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify it under |
| 8 | * the terms of the GNU General Public License version 2 as published by the |
| 9 | * Free Software Foundation. |
| 10 | */ |
| 11 | #include <mach/mx28.h> |
| 12 | #include <mach/devices-common.h> |
| 13 | |
Shawn Guo | dbc4245 | 2011-01-04 14:20:52 +0800 | [diff] [blame] | 14 | extern const struct amba_device mx28_duart_device __initconst; |
Shawn Guo | dc38ad4 | 2010-12-09 23:12:46 +0800 | [diff] [blame] | 15 | #define mx28_add_duart() \ |
Shawn Guo | dbc4245 | 2011-01-04 14:20:52 +0800 | [diff] [blame] | 16 | mxs_add_duart(&mx28_duart_device) |
Shawn Guo | b9a2ada | 2010-12-09 23:12:47 +0800 | [diff] [blame] | 17 | |
Sascha Hauer | cf3567a | 2011-01-11 15:56:40 +0100 | [diff] [blame] | 18 | extern const struct mxs_auart_data mx28_auart_data[] __initconst; |
| 19 | #define mx28_add_auart(id) mxs_add_auart(&mx28_auart_data[id]) |
| 20 | #define mx28_add_auart0() mx28_add_auart(0) |
| 21 | #define mx28_add_auart1() mx28_add_auart(1) |
| 22 | #define mx28_add_auart2() mx28_add_auart(2) |
| 23 | #define mx28_add_auart3() mx28_add_auart(3) |
| 24 | #define mx28_add_auart4() mx28_add_auart(4) |
| 25 | |
Shawn Guo | b9a2ada | 2010-12-09 23:12:47 +0800 | [diff] [blame] | 26 | extern const struct mxs_fec_data mx28_fec_data[] __initconst; |
| 27 | #define mx28_add_fec(id, pdata) \ |
| 28 | mxs_add_fec(&mx28_fec_data[id], pdata) |
Marc Kleine-Budde | 22cbba1 | 2011-02-02 13:50:30 +0100 | [diff] [blame^] | 29 | |
| 30 | extern const struct mxs_flexcan_data mx28_flexcan_data[] __initconst; |
| 31 | #define mx28_add_flexcan(id, pdata) \ |
| 32 | mxs_add_flexcan(&mx28_flexcan_data[id], pdata) |
| 33 | #define mx28_add_flexcan0(pdata) mx28_add_flexcan(0, pdata) |
| 34 | #define mx28_add_flexcan1(pdata) mx28_add_flexcan(1, pdata) |