diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2011-02-02 12:50:30 (GMT) |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-02-03 14:11:19 (GMT) |
commit | 22cbba1b82de458028f4aa270e88492b622c1ea8 (patch) | |
tree | 278dae4fd5b159d4721381b954070e0d0125713b /arch/arm/mach-mxs/include/mach/devices-common.h | |
parent | 6ea038a7771be6652784fd06ad01f44028e3a43c (diff) | |
download | linux-22cbba1b82de458028f4aa270e88492b622c1ea8.tar.xz |
ARM: mxs: dynamically register flexcan devices for mx28
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxs/include/mach/devices-common.h')
-rw-r--r-- | arch/arm/mach-mxs/include/mach/devices-common.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/include/mach/devices-common.h b/arch/arm/mach-mxs/include/mach/devices-common.h index bed4002..e7aefb4 100644 --- a/arch/arm/mach-mxs/include/mach/devices-common.h +++ b/arch/arm/mach-mxs/include/mach/devices-common.h @@ -51,3 +51,15 @@ struct mxs_fec_data { struct platform_device *__init mxs_add_fec( const struct mxs_fec_data *data, const struct fec_platform_data *pdata); + +/* flexcan */ +#include <linux/can/platform/flexcan.h> +struct mxs_flexcan_data { + int id; + resource_size_t iobase; + resource_size_t iosize; + resource_size_t irq; +}; +struct platform_device *__init mxs_add_flexcan( + const struct mxs_flexcan_data *data, + const struct flexcan_platform_data *pdata); |