2 * Copyright (C) 2009-2010 Pengutronix
3 * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
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.
9 #include <linux/kernel.h>
10 #include <linux/platform_device.h>
11 #include <linux/init.h>
12 #include <linux/amba/bus.h>
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
);
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
)
24 return mxs_add_platform_device_dmamask(
25 name
, id
, res
, num_resources
, data
, size_data
, 0);
28 int __init
mxs_add_amba_device(const struct amba_device
*dev
);
31 int __init
mxs_add_duart(const struct amba_device
*dev
);
34 #include <linux/fec.h>
37 resource_size_t iobase
;
38 resource_size_t iosize
;
41 struct platform_device
*__init
mxs_add_fec(
42 const struct mxs_fec_data
*data
,
43 const struct fec_platform_data
*pdata
);