diff options
Diffstat (limited to 'arch/mips/loongson32/common/platform.c')
-rw-r--r-- | arch/mips/loongson32/common/platform.c | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/arch/mips/loongson32/common/platform.c b/arch/mips/loongson32/common/platform.c index 100f23dfa438..ac584c5823d0 100644 --- a/arch/mips/loongson32/common/platform.c +++ b/arch/mips/loongson32/common/platform.c | |||
@@ -183,18 +183,20 @@ int ls1x_eth_mux_init(struct platform_device *pdev, void *priv) | |||
183 | } | 183 | } |
184 | 184 | ||
185 | static struct plat_stmmacenet_data ls1x_eth0_pdata = { | 185 | static struct plat_stmmacenet_data ls1x_eth0_pdata = { |
186 | .bus_id = 0, | 186 | .bus_id = 0, |
187 | .phy_addr = -1, | 187 | .phy_addr = -1, |
188 | #if defined(CONFIG_LOONGSON1_LS1B) | 188 | #if defined(CONFIG_LOONGSON1_LS1B) |
189 | .interface = PHY_INTERFACE_MODE_MII, | 189 | .interface = PHY_INTERFACE_MODE_MII, |
190 | #elif defined(CONFIG_LOONGSON1_LS1C) | 190 | #elif defined(CONFIG_LOONGSON1_LS1C) |
191 | .interface = PHY_INTERFACE_MODE_RMII, | 191 | .interface = PHY_INTERFACE_MODE_RMII, |
192 | #endif | 192 | #endif |
193 | .mdio_bus_data = &ls1x_mdio_bus_data, | 193 | .mdio_bus_data = &ls1x_mdio_bus_data, |
194 | .dma_cfg = &ls1x_eth_dma_cfg, | 194 | .dma_cfg = &ls1x_eth_dma_cfg, |
195 | .has_gmac = 1, | 195 | .has_gmac = 1, |
196 | .tx_coe = 1, | 196 | .tx_coe = 1, |
197 | .init = ls1x_eth_mux_init, | 197 | .rx_queues_to_use = 1, |
198 | .tx_queues_to_use = 1, | ||
199 | .init = ls1x_eth_mux_init, | ||
198 | }; | 200 | }; |
199 | 201 | ||
200 | static struct resource ls1x_eth0_resources[] = { | 202 | static struct resource ls1x_eth0_resources[] = { |
@@ -222,14 +224,16 @@ struct platform_device ls1x_eth0_pdev = { | |||
222 | 224 | ||
223 | #ifdef CONFIG_LOONGSON1_LS1B | 225 | #ifdef CONFIG_LOONGSON1_LS1B |
224 | static struct plat_stmmacenet_data ls1x_eth1_pdata = { | 226 | static struct plat_stmmacenet_data ls1x_eth1_pdata = { |
225 | .bus_id = 1, | 227 | .bus_id = 1, |
226 | .phy_addr = -1, | 228 | .phy_addr = -1, |
227 | .interface = PHY_INTERFACE_MODE_MII, | 229 | .interface = PHY_INTERFACE_MODE_MII, |
228 | .mdio_bus_data = &ls1x_mdio_bus_data, | 230 | .mdio_bus_data = &ls1x_mdio_bus_data, |
229 | .dma_cfg = &ls1x_eth_dma_cfg, | 231 | .dma_cfg = &ls1x_eth_dma_cfg, |
230 | .has_gmac = 1, | 232 | .has_gmac = 1, |
231 | .tx_coe = 1, | 233 | .tx_coe = 1, |
232 | .init = ls1x_eth_mux_init, | 234 | .rx_queues_to_use = 1, |
235 | .tx_queues_to_use = 1, | ||
236 | .init = ls1x_eth_mux_init, | ||
233 | }; | 237 | }; |
234 | 238 | ||
235 | static struct resource ls1x_eth1_resources[] = { | 239 | static struct resource ls1x_eth1_resources[] = { |