[au1000] make au1OOO_eth probes all PHY addresses for MTX-1
[openwrt/svn-archive/archive.git] / target / linux / au1000 / patches-2.6.37 / 005-au1000_phy_addr.patch
1 --- a/arch/mips/alchemy/mtx-1/platform.c
2 +++ b/arch/mips/alchemy/mtx-1/platform.c
3 @@ -28,6 +28,8 @@
4 #include <linux/mtd/physmap.h>
5 #include <mtd/mtd-abi.h>
6
7 +#include <asm/mach-au1x00/au1xxx_eth.h>
8 +
9 static struct gpio_keys_button mtx1_gpio_button[] = {
10 {
11 .gpio = 207,
12 @@ -140,10 +142,17 @@ static struct __initdata platform_device
13 &mtx1_mtd,
14 };
15
16 +static struct au1000_eth_platform_data mtx1_au1000_eth0_pdata = {
17 + .phy_search_highest_addr = 1,
18 + .phy1_search_mac0 = 1,
19 +};
20 +
21 static int __init mtx1_register_devices(void)
22 {
23 int rc;
24
25 + au1xxx_override_eth_cfg(0, &mtx1_au1000_eth0_pdata);
26 +
27 rc = gpio_request(mtx1_gpio_button[0].gpio,
28 mtx1_gpio_button[0].desc);
29 if (rc < 0) {