2008-05-19 13:58:03 +03:00
|
|
|
Index: linux-2.6.25.4/arch/arm/mach-ixp4xx/avila-setup.c
|
2008-04-30 13:59:03 +03:00
|
|
|
===================================================================
|
2008-05-19 13:58:03 +03:00
|
|
|
--- linux-2.6.25.4.orig/arch/arm/mach-ixp4xx/avila-setup.c
|
|
|
|
+++ linux-2.6.25.4/arch/arm/mach-ixp4xx/avila-setup.c
|
2008-05-02 13:17:03 +03:00
|
|
|
@@ -247,6 +247,7 @@ static void __init avila_gw2345_setup(vo
|
2008-04-30 13:59:03 +03:00
|
|
|
|
|
|
|
static void __init avila_gw2347_setup(void)
|
|
|
|
{
|
|
|
|
+ avila_npeb_data.quirks |= IXP4XX_ETH_QUIRK_GW23X7;
|
|
|
|
platform_device_register(&avila_npeb_device);
|
|
|
|
|
|
|
|
avila_leds[0].gpio = AVILA_GW23X7_LED_USER_GPIO;
|
2008-05-02 13:17:03 +03:00
|
|
|
@@ -281,6 +282,7 @@ static void __init avila_gw2355_setup(vo
|
2008-04-30 13:59:03 +03:00
|
|
|
|
|
|
|
static void __init avila_gw2357_setup(void)
|
|
|
|
{
|
|
|
|
+ avila_npeb_data.quirks |= IXP4XX_ETH_QUIRK_GW23X7;
|
|
|
|
platform_device_register(&avila_npeb_device);
|
|
|
|
|
|
|
|
avila_leds[0].gpio = AVILA_GW23X7_LED_USER_GPIO;
|
2008-05-19 13:58:03 +03:00
|
|
|
Index: linux-2.6.25.4/drivers/net/arm/ixp4xx_eth.c
|
2008-04-30 13:59:03 +03:00
|
|
|
===================================================================
|
2008-05-19 13:58:03 +03:00
|
|
|
--- linux-2.6.25.4.orig/drivers/net/arm/ixp4xx_eth.c
|
|
|
|
+++ linux-2.6.25.4/drivers/net/arm/ixp4xx_eth.c
|
2008-05-02 13:17:03 +03:00
|
|
|
@@ -348,6 +348,14 @@ static void phy_reset(struct net_device
|
2008-04-30 13:59:03 +03:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ if (port->plat->quirks & IXP4XX_ETH_QUIRK_GW23X7) {
|
|
|
|
+ mdio_write(dev, 1, 0x19,
|
|
|
|
+ (mdio_read(dev, 1, 0x19) & 0xfffe) | 0x8000);
|
|
|
|
+
|
|
|
|
+ printk(KERN_DEBUG "%s: phy_id of the DP83848 changed to 0\n",
|
|
|
|
+ dev->name);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
/* restart auto negotiation */
|
|
|
|
bmcr = mdio_read(dev, phy_id, MII_BMCR);
|
|
|
|
bmcr |= (BMCR_ANENABLE | BMCR_ANRESTART);
|
2008-05-19 13:58:03 +03:00
|
|
|
Index: linux-2.6.25.4/include/asm-arm/arch-ixp4xx/platform.h
|
2008-04-30 13:59:03 +03:00
|
|
|
===================================================================
|
2008-05-19 13:58:03 +03:00
|
|
|
--- linux-2.6.25.4.orig/include/asm-arm/arch-ixp4xx/platform.h
|
|
|
|
+++ linux-2.6.25.4/include/asm-arm/arch-ixp4xx/platform.h
|
2008-05-02 13:17:03 +03:00
|
|
|
@@ -104,6 +104,8 @@ struct eth_plat_info {
|
2008-04-30 13:59:03 +03:00
|
|
|
u8 txreadyq;
|
|
|
|
u8 hwaddr[6];
|
|
|
|
u32 phy_mask;
|
|
|
|
+ u32 quirks;
|
|
|
|
+#define IXP4XX_ETH_QUIRK_GW23X7 0x00000001
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Information about built-in HSS (synchronous serial) interfaces */
|