diff options
author | Shawn Guo <shawn.guo@freescale.com> | 2011-01-11 07:09:24 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-11 07:59:39 -0500 |
commit | 48f76ed1cc034c682666c43815fd0ef27c2a7215 (patch) | |
tree | 9c2f2855d69f73083eb5e25ab3ec9231cfdc6d64 /arch | |
parent | b2878fa41be8b57fc58f8b53eb0d0183511ef548 (diff) |
ARM: mx28: add the second fec device registration
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mxs/mach-mx28evk.c | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/arch/arm/mach-mxs/mach-mx28evk.c b/arch/arm/mach-mxs/mach-mx28evk.c index d162e95910f3..8e2c5975001e 100644 --- a/arch/arm/mach-mxs/mach-mx28evk.c +++ b/arch/arm/mach-mxs/mach-mx28evk.c | |||
@@ -57,6 +57,19 @@ static const iomux_cfg_t mx28evk_pads[] __initconst = { | |||
57 | (MXS_PAD_8MA | MXS_PAD_3V3 | MXS_PAD_PULLUP), | 57 | (MXS_PAD_8MA | MXS_PAD_3V3 | MXS_PAD_PULLUP), |
58 | MX28_PAD_ENET_CLK__CLKCTRL_ENET | | 58 | MX28_PAD_ENET_CLK__CLKCTRL_ENET | |
59 | (MXS_PAD_8MA | MXS_PAD_3V3 | MXS_PAD_PULLUP), | 59 | (MXS_PAD_8MA | MXS_PAD_3V3 | MXS_PAD_PULLUP), |
60 | /* fec1 */ | ||
61 | MX28_PAD_ENET0_CRS__ENET1_RX_EN | | ||
62 | (MXS_PAD_8MA | MXS_PAD_3V3 | MXS_PAD_PULLUP), | ||
63 | MX28_PAD_ENET0_RXD2__ENET1_RXD0 | | ||
64 | (MXS_PAD_8MA | MXS_PAD_3V3 | MXS_PAD_PULLUP), | ||
65 | MX28_PAD_ENET0_RXD3__ENET1_RXD1 | | ||
66 | (MXS_PAD_8MA | MXS_PAD_3V3 | MXS_PAD_PULLUP), | ||
67 | MX28_PAD_ENET0_COL__ENET1_TX_EN | | ||
68 | (MXS_PAD_8MA | MXS_PAD_3V3 | MXS_PAD_PULLUP), | ||
69 | MX28_PAD_ENET0_TXD2__ENET1_TXD0 | | ||
70 | (MXS_PAD_8MA | MXS_PAD_3V3 | MXS_PAD_PULLUP), | ||
71 | MX28_PAD_ENET0_TXD3__ENET1_TXD1 | | ||
72 | (MXS_PAD_8MA | MXS_PAD_3V3 | MXS_PAD_PULLUP), | ||
60 | /* phy power line */ | 73 | /* phy power line */ |
61 | MX28_PAD_SSP1_DATA3__GPIO_2_15 | | 74 | MX28_PAD_SSP1_DATA3__GPIO_2_15 | |
62 | (MXS_PAD_4MA | MXS_PAD_3V3 | MXS_PAD_NOPULL), | 75 | (MXS_PAD_4MA | MXS_PAD_3V3 | MXS_PAD_NOPULL), |
@@ -106,8 +119,14 @@ static void __init mx28evk_fec_reset(void) | |||
106 | gpio_set_value(MX28EVK_FEC_PHY_RESET, 1); | 119 | gpio_set_value(MX28EVK_FEC_PHY_RESET, 1); |
107 | } | 120 | } |
108 | 121 | ||
109 | static const struct fec_platform_data mx28_fec_pdata __initconst = { | 122 | static struct fec_platform_data mx28_fec_pdata[] = { |
110 | .phy = PHY_INTERFACE_MODE_RMII, | 123 | { |
124 | /* fec0 */ | ||
125 | .phy = PHY_INTERFACE_MODE_RMII, | ||
126 | }, { | ||
127 | /* fec1 */ | ||
128 | .phy = PHY_INTERFACE_MODE_RMII, | ||
129 | }, | ||
111 | }; | 130 | }; |
112 | 131 | ||
113 | static void __init mx28evk_init(void) | 132 | static void __init mx28evk_init(void) |
@@ -117,7 +136,8 @@ static void __init mx28evk_init(void) | |||
117 | mx28_add_duart(); | 136 | mx28_add_duart(); |
118 | 137 | ||
119 | mx28evk_fec_reset(); | 138 | mx28evk_fec_reset(); |
120 | mx28_add_fec(0, &mx28_fec_pdata); | 139 | mx28_add_fec(0, &mx28_fec_pdata[0]); |
140 | mx28_add_fec(1, &mx28_fec_pdata[1]); | ||
121 | } | 141 | } |
122 | 142 | ||
123 | static void __init mx28evk_timer_init(void) | 143 | static void __init mx28evk_timer_init(void) |