ar71xx: add missing ethernet driver fix backport (fixes #10089)
[openwrt-10.03/.git] / target / linux / ar71xx / files / arch / mips / ar71xx / devices.c
index 455b2cd03464559e34ac525cbb46a8c525c925f1..1e50dcb19e788c52dd8d7fdeb6207d015131c5ae 100644 (file)
@@ -493,6 +493,8 @@ void __init ar71xx_add_device_eth(unsigned int id)
                pdata->set_pll =  id ? ar724x_set_pll_ge1
                                     : ar724x_set_pll_ge0;
                pdata->is_ar724x = 1;
                pdata->set_pll =  id ? ar724x_set_pll_ge1
                                     : ar724x_set_pll_ge0;
                pdata->is_ar724x = 1;
+               if (ar71xx_soc == AR71XX_SOC_AR7240)
+                       pdata->is_ar7240 = 1;
 
                if (!pdata->fifo_cfg1)
                        pdata->fifo_cfg1 = 0x0010ffff;
 
                if (!pdata->fifo_cfg1)
                        pdata->fifo_cfg1 = 0x0010ffff;