Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs
[pandora-kernel.git] / arch / arm / mach-mxs / include / mach / devices-common.h
1 /*
2  * Copyright (C) 2009-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 <linux/kernel.h>
10 #include <linux/platform_device.h>
11 #include <linux/init.h>
12
13 struct platform_device *mxs_add_platform_device_dmamask(
14                 const char *name, int id,
15                 const struct resource *res, unsigned int num_resources,
16                 const void *data, size_t size_data, u64 dmamask);
17
18 static inline struct platform_device *mxs_add_platform_device(
19                 const char *name, int id,
20                 const struct resource *res, unsigned int num_resources,
21                 const void *data, size_t size_data)
22 {
23         return mxs_add_platform_device_dmamask(
24                         name, id, res, num_resources, data, size_data, 0);
25 }
26
27 /* duart */
28 struct mxs_duart_data {
29         resource_size_t iobase;
30         resource_size_t iosize;
31         resource_size_t irq;
32 };
33 struct platform_device *__init mxs_add_duart(
34                 const struct mxs_duart_data *data);
35
36 /* fec */
37 #include <linux/fec.h>
38 struct mxs_fec_data {
39         int id;
40         resource_size_t iobase;
41         resource_size_t iosize;
42         resource_size_t irq;
43 };
44 struct platform_device *__init mxs_add_fec(
45                 const struct mxs_fec_data *data,
46                 const struct fec_platform_data *pdata);