blob: 3b18304c5653e066994222813f4e3044713e12b1 [file] [log] [blame]
Shawn Guodc38ad42010-12-09 23:12:46 +08001/*
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 Guodbc42452011-01-04 14:20:52 +080014extern const struct amba_device mx28_duart_device __initconst;
Shawn Guodc38ad42010-12-09 23:12:46 +080015#define mx28_add_duart() \
Shawn Guodbc42452011-01-04 14:20:52 +080016 mxs_add_duart(&mx28_duart_device)
Shawn Guob9a2ada2010-12-09 23:12:47 +080017
Sascha Hauercf3567a2011-01-11 15:56:40 +010018extern 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 Guob9a2ada2010-12-09 23:12:47 +080026extern 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-Budde22cbba12011-02-02 13:50:30 +010029
30extern 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)