[ixp4xx] enable switch support on Compex boards
[openwrt.git] / target / linux / ixp4xx / patches-2.6.24 / 250-compex_switch_support.patch
1 Index: linux-2.6.24.2/arch/arm/mach-ixp4xx/compex-setup.c
2 ===================================================================
3 --- linux-2.6.24.2.orig/arch/arm/mach-ixp4xx/compex-setup.c
4 +++ linux-2.6.24.2/arch/arm/mach-ixp4xx/compex-setup.c
5 @@ -93,7 +93,8 @@ static struct platform_device compex_uar
6  /* Built-in 10/100 Ethernet MAC interfaces */
7  static struct eth_plat_info compex_plat_eth[] = {
8         {
9 -               .phy            = -1,
10 +               .phy            = IXP4XX_ETH_PHY_MAX_ADDR,
11 +               .phy_mask       = 0xf0000, /* port 0-4 of the Marvell switch */
12                 .rxq            = 3,
13                 .txreadyq       = 20,
14         }, {