aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/marvell
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-01-09 17:38:51 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-09 17:38:51 -0500
commit5ede3ceb7b2c2843e153a1803edbdc8c56655950 (patch)
tree4cfa82b619f7d39b671e4a2a213f4d040b09c486 /drivers/net/ethernet/marvell
parent6d889d03ab1417645e76e129834f76204bae37c0 (diff)
parent3e2762c8f1141ae8dc708034ea41d6827818c328 (diff)
Merge tag 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
New feature development This adds support for new features, and contains stuff from most platforms. A number of these patches could have fit into other branches, too, but were small enough not to cause too much confusion here. * tag 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (28 commits) mfd/db8500-prcmu: remove support for early silicon revisions ARM: ux500: fix the smp_twd clock calculation ARM: ux500: remove support for early silicon revisions ARM: ux500: update register files ARM: ux500: register DB5500 PMU dynamically ARM: ux500: update ASIC detection for U5500 ARM: ux500: support DB8520 ARM: picoxcell: implement watchdog restart ARM: OMAP3+: hwmod data: Add the default clockactivity for I2C ARM: OMAP3: hwmod data: disable multiblock reads on MMC1/2 on OMAP34xx/35xx <= ES2.1 ARM: OMAP: USB: EHCI and OHCI hwmod structures for OMAP4 ARM: OMAP: USB: EHCI and OHCI hwmod structures for OMAP3 ARM: OMAP: hwmod data: Add support for AM35xx UART4/ttyO3 ARM: Orion: Remove address map info from all platform data structures ARM: Orion: Get address map from plat-orion instead of via platform_data ARM: Orion: mbus_dram_info consolidation ARM: Orion: Consolidate the address map setup ARM: Kirkwood: Add configuration for MPP12 as GPIO ARM: Kirkwood: Recognize A1 revision of 6282 chip ARM: ux500: update the MOP500 GPIO assignments ...
Diffstat (limited to 'drivers/net/ethernet/marvell')
-rw-r--r--drivers/net/ethernet/marvell/mv643xx_eth.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c
index e87847e32ddb..80aab4e5d695 100644
--- a/drivers/net/ethernet/marvell/mv643xx_eth.c
+++ b/drivers/net/ethernet/marvell/mv643xx_eth.c
@@ -2511,7 +2511,7 @@ static void mv643xx_eth_netpoll(struct net_device *dev)
2511/* platform glue ************************************************************/ 2511/* platform glue ************************************************************/
2512static void 2512static void
2513mv643xx_eth_conf_mbus_windows(struct mv643xx_eth_shared_private *msp, 2513mv643xx_eth_conf_mbus_windows(struct mv643xx_eth_shared_private *msp,
2514 struct mbus_dram_target_info *dram) 2514 const struct mbus_dram_target_info *dram)
2515{ 2515{
2516 void __iomem *base = msp->base; 2516 void __iomem *base = msp->base;
2517 u32 win_enable; 2517 u32 win_enable;
@@ -2529,7 +2529,7 @@ mv643xx_eth_conf_mbus_windows(struct mv643xx_eth_shared_private *msp,
2529 win_protect = 0; 2529 win_protect = 0;
2530 2530
2531 for (i = 0; i < dram->num_cs; i++) { 2531 for (i = 0; i < dram->num_cs; i++) {
2532 struct mbus_dram_window *cs = dram->cs + i; 2532 const struct mbus_dram_window *cs = dram->cs + i;
2533 2533
2534 writel((cs->base & 0xffff0000) | 2534 writel((cs->base & 0xffff0000) |
2535 (cs->mbus_attr << 8) | 2535 (cs->mbus_attr << 8) |
@@ -2579,6 +2579,7 @@ static int mv643xx_eth_shared_probe(struct platform_device *pdev)
2579 static int mv643xx_eth_version_printed; 2579 static int mv643xx_eth_version_printed;
2580 struct mv643xx_eth_shared_platform_data *pd = pdev->dev.platform_data; 2580 struct mv643xx_eth_shared_platform_data *pd = pdev->dev.platform_data;
2581 struct mv643xx_eth_shared_private *msp; 2581 struct mv643xx_eth_shared_private *msp;
2582 const struct mbus_dram_target_info *dram;
2582 struct resource *res; 2583 struct resource *res;
2583 int ret; 2584 int ret;
2584 2585
@@ -2643,8 +2644,9 @@ static int mv643xx_eth_shared_probe(struct platform_device *pdev)
2643 /* 2644 /*
2644 * (Re-)program MBUS remapping windows if we are asked to. 2645 * (Re-)program MBUS remapping windows if we are asked to.
2645 */ 2646 */
2646 if (pd != NULL && pd->dram != NULL) 2647 dram = mv_mbus_dram_info();
2647 mv643xx_eth_conf_mbus_windows(msp, pd->dram); 2648 if (dram)
2649 mv643xx_eth_conf_mbus_windows(msp, dram);
2648 2650
2649 /* 2651 /*
2650 * Detect hardware parameters. 2652 * Detect hardware parameters.