.. | .. |
---|
2353 | 2353 | */ |
---|
2354 | 2354 | static void stmmac_check_ether_addr(struct stmmac_priv *priv) |
---|
2355 | 2355 | { |
---|
2356 | | - if (!is_valid_ether_addr(priv->dev->dev_addr)) { |
---|
| 2356 | +// if (!is_valid_ether_addr(priv->dev->dev_addr)) { |
---|
| 2357 | + if(1) { |
---|
2357 | 2358 | stmmac_get_umac_addr(priv, priv->hw, priv->dev->dev_addr, 0); |
---|
2358 | 2359 | if (likely(priv->plat->get_eth_addr)) |
---|
2359 | 2360 | priv->plat->get_eth_addr(priv->plat->bsp_priv, |
---|
.. | .. |
---|
5089 | 5090 | /*switch to extension page31*/ |
---|
5090 | 5091 | phy_write(phydev, 31, 0xd04); |
---|
5091 | 5092 | |
---|
5092 | | - //phy_write(phydev, 0x10, 0x6d60); /*led1-green led2-yellow */ |
---|
5093 | | - phy_write(phydev, 0x10, 0xc160); /*led1-green led2-yellow */ |
---|
5094 | | - phy_write(phydev, 0x11, 0x8); |
---|
| 5093 | + phy_write(phydev, 0x10, 0x6d20); /*led1-green led2-yellow */ |
---|
| 5094 | + //phy_write(phydev, 0x10, 0xc160); /*led1-green led2-yellow */ |
---|
| 5095 | + //phy_write(phydev, 0x11, 0x8); |
---|
| 5096 | + val = phy_read(phydev, 0x10); |
---|
| 5097 | + printk("%s in 0x10 val=0x%04x\n", __func__, val); |
---|
5095 | 5098 | |
---|
5096 | 5099 | /*switch back to page0*/ |
---|
5097 | 5100 | phy_write(phydev,31,0x0); |
---|