Merge branch 'master' of git://git.denx.de/u-boot-net
authorTom Rini <trini@konsulko.com>
Thu, 9 Feb 2017 16:56:35 +0000 (11:56 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 9 Feb 2017 16:56:35 +0000 (11:56 -0500)
1  2 
common/fdt_support.c
drivers/net/designware.c
drivers/net/fec_mxc.c
drivers/net/macb.c
drivers/net/phy/ti.c
tools/Makefile

Simple merge
Simple merge
Simple merge
index 452fc3e3b97ccde238774011bcec30f42ace90b5,67d820fefa591c260d34b956cdac994c27ed9c4e..1c4bef97b6d18ef2549d88236f3322df1505a2c3
@@@ -995,12 -1030,10 +1030,11 @@@ static int macb_eth_probe(struct udevic
  {
        struct eth_pdata *pdata = dev_get_platdata(dev);
        struct macb_device *macb = dev_get_priv(dev);
- #ifdef CONFIG_DM_ETH
        const char *phy_mode;
+       int ret;
  
 -      phy_mode = fdt_getprop(gd->fdt_blob, dev->of_offset, "phy-mode", NULL);
 +      phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode",
 +                             NULL);
        if (phy_mode)
                macb->phy_interface = phy_get_interface_by_name(phy_mode);
        if (macb->phy_interface == -1) {
index d1ce4060ff8613f51687eeb9afe433770d9e2bcf,2fd566cfa6660652edcaa9a3cbb59596c9e73e73..1d870806a3540453c972e0d59baf64742fe77a11
@@@ -166,14 -174,23 +174,23 @@@ static int dp83867_of_init(struct phy_d
  {
        struct dp83867_private *dp83867 = phydev->priv;
        struct udevice *dev = phydev->dev;
+       int node = dev->of_offset;
+       const void *fdt = gd->fdt_blob;
+       if (fdtdec_get_bool(fdt, node, "ti,max-output-impedance"))
+               dp83867->io_impedance = DP83867_IO_MUX_CFG_IO_IMPEDANCE_MAX;
+       else if (fdtdec_get_bool(fdt, node, "ti,min-output-impedance"))
+               dp83867->io_impedance = DP83867_IO_MUX_CFG_IO_IMPEDANCE_MIN;
+       else
+               dp83867->io_impedance = -EINVAL;
  
 -      dp83867->rx_id_delay = fdtdec_get_uint(gd->fdt_blob, dev->of_offset,
 +      dp83867->rx_id_delay = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev),
                                 "ti,rx-internal-delay", -1);
  
 -      dp83867->tx_id_delay = fdtdec_get_uint(gd->fdt_blob, dev->of_offset,
 +      dp83867->tx_id_delay = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev),
                                 "ti,tx-internal-delay", -1);
  
 -      dp83867->fifo_depth = fdtdec_get_uint(gd->fdt_blob, dev->of_offset,
 +      dp83867->fifo_depth = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev),
                                 "ti,fifo-depth", -1);
  
        return 0;
diff --cc tools/Makefile
Simple merge