diff options
author | Shawn Guo <shawn.guo@freescale.com> | 2010-12-09 15:12:47 (GMT) |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-12-20 16:30:24 (GMT) |
commit | b9a2ada8ff2ace20b1518a18872319d8619fe1ab (patch) | |
tree | c48add1ef989823e1ebfe20230e7758862d32dd1 /arch/arm/mach-mxs/include | |
parent | dc38ad4052a50b9e73fdcc970ecdd4f69ee9d97a (diff) | |
download | linux-fsl-qoriq-b9a2ada8ff2ace20b1518a18872319d8619fe1ab.tar.xz |
ARM: mxs: Dynamically allocate fec devices
Dynamically allocate fec devices for MX28, which gets dual
fec interface.
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxs/include')
-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 07b4439..3da48d4 100644 --- a/arch/arm/mach-mxs/include/mach/devices-common.h +++ b/arch/arm/mach-mxs/include/mach/devices-common.h @@ -32,3 +32,15 @@ struct mxs_duart_data { }; struct platform_device *__init mxs_add_duart( const struct mxs_duart_data *data); + +/* fec */ +#include <linux/fec.h> +struct mxs_fec_data { + int id; + resource_size_t iobase; + resource_size_t iosize; + resource_size_t irq; +}; +struct platform_device *__init mxs_add_fec( + const struct mxs_fec_data *data, + const struct fec_platform_data *pdata); |