diff options
author | Shawn Guo | 2010-12-09 23:12:47 +0800 |
---|---|---|
committer | Uwe Kleine-König | 2010-12-20 17:30:24 +0100 |
commit | b9a2ada8ff2ace20b1518a18872319d8619fe1ab (patch) | |
tree | c48add1ef989823e1ebfe20230e7758862d32dd1 /arch/arm/mach-mxs/devices-mx28.h | |
parent | dc38ad4052a50b9e73fdcc970ecdd4f69ee9d97a (diff) |
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/devices-mx28.h')
-rw-r--r-- | arch/arm/mach-mxs/devices-mx28.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/devices-mx28.h b/arch/arm/mach-mxs/devices-mx28.h index 47c2f0408ec3..00b736c434ba 100644 --- a/arch/arm/mach-mxs/devices-mx28.h +++ b/arch/arm/mach-mxs/devices-mx28.h @@ -14,3 +14,7 @@ extern const struct mxs_duart_data mx28_duart_data __initconst; #define mx28_add_duart() \ mxs_add_duart(&mx28_duart_data) + +extern const struct mxs_fec_data mx28_fec_data[] __initconst; +#define mx28_add_fec(id, pdata) \ + mxs_add_fec(&mx28_fec_data[id], pdata) |