From b9a2ada8ff2ace20b1518a18872319d8619fe1ab Mon Sep 17 00:00:00 2001 From: Shawn Guo Date: Thu, 9 Dec 2010 23:12:47 +0800 Subject: ARM: mxs: Dynamically allocate fec devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dynamically allocate fec devices for MX28, which gets dual fec interface. Signed-off-by: Shawn Guo Signed-off-by: Uwe Kleine-König --- arch/arm/mach-mxs/include/mach/devices-common.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'arch/arm/mach-mxs/include') diff --git a/arch/arm/mach-mxs/include/mach/devices-common.h b/arch/arm/mach-mxs/include/mach/devices-common.h index 07b44392cfd..3da48d4d327 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 +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); -- cgit v1.2.3-70-g09d2