Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[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 #include <linux/amba/bus.h>
13
14 struct platform_device *mxs_add_platform_device_dmamask(
15                 const char *name, int id,
16                 const struct resource *res, unsigned int num_resources,
17                 const void *data, size_t size_data, u64 dmamask);
18
19 static inline struct platform_device *mxs_add_platform_device(
20                 const char *name, int id,
21                 const struct resource *res, unsigned int num_resources,
22                 const void *data, size_t size_data)
23 {
24         return mxs_add_platform_device_dmamask(
25                         name, id, res, num_resources, data, size_data, 0);
26 }
27
28 int __init mxs_add_amba_device(const struct amba_device *dev);
29
30 /* duart */
31 int __init mxs_add_duart(const struct amba_device *dev);
32
33 /* fec */
34 #include <linux/fec.h>
35 struct mxs_fec_data {
36         int id;
37         resource_size_t iobase;
38         resource_size_t iosize;
39         resource_size_t irq;
40 };
41 struct platform_device *__init mxs_add_fec(
42                 const struct mxs_fec_data *data,
43                 const struct fec_platform_data *pdata);