]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-net
authorTom Rini <trini@konsulko.com>
Fri, 15 Apr 2022 12:09:52 +0000 (08:09 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 15 Apr 2022 12:10:32 +0000 (08:10 -0400)
- DM9000 DM support
- tftp server bug fix
- mdio ofnode support functions
- Various phy fixes and improvements.

[trini: Fixup merge conflicts in drivers/net/phy/ethernet_id.c
drivers/net/phy/phy.c include/phy.h]

18 files changed:
1  2 
configs/M5253DEMO_defconfig
configs/at91sam9261ek_dataflash_cs0_defconfig
configs/at91sam9261ek_dataflash_cs3_defconfig
configs/at91sam9261ek_nandflash_defconfig
configs/ci20_mmc_defconfig
configs/colibri_pxa270_defconfig
drivers/net/dwc_eth_qos.c
drivers/net/phy/Kconfig
drivers/net/phy/Makefile
drivers/net/phy/ethernet_id.c
drivers/net/phy/phy.c
drivers/net/sun8i_emac.c
drivers/net/sunxi_emac.c
drivers/net/zynq_gem.c
include/configs/colibri_pxa270.h
include/dm/ofnode.h
include/phy.h
scripts/config_whitelist.txt

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 1a78a751ede32249ae0ef932e6976e403f351452,38a8dca347b9298251e18962340bcf8a35f967fc..8864f99bb32fa73dc7b74b18087de239934b9f57
@@@ -11,8 -11,7 +11,8 @@@
  #include <linux/delay.h>
  #include <asm/gpio.h>
  
 -struct phy_device *phy_connect_phy_id(struct mii_dev *bus, struct udevice *dev)
 +struct phy_device *phy_connect_phy_id(struct mii_dev *bus, struct udevice *dev,
-                                     int phyaddr, phy_interface_t interface)
++                                    int phyaddr)
  {
        struct phy_device *phydev;
        struct ofnode_phandle_args phandle_args;
@@@ -68,7 -60,7 +68,7 @@@
        }
  
        id =  vendor << 16 | device;
-       phydev = phy_device_create(bus, phyaddr, id, false, interface);
 -      phydev = phy_device_create(bus, 0, id, false);
++      phydev = phy_device_create(bus, phyaddr, id, false);
        if (phydev)
                phydev->node = node;
  
index 36722620f0cead2456fe245a35f9e5156dffc3b2,e0b37a9542edb2c3d663f1eddba6fd9a0d2e98c6..1121b99abff54a46b8286381cfde5d7a24a6d4a6
@@@ -1052,7 -1029,7 +1032,7 @@@ struct phy_device *phy_connect(struct m
  
  #ifdef CONFIG_PHY_ETHERNET_ID
        if (!phydev)
-               phydev = phy_connect_phy_id(bus, dev, addr, interface);
 -              phydev = phy_connect_phy_id(bus, dev);
++              phydev = phy_connect_phy_id(bus, dev, addr);
  #endif
  
  #ifdef CONFIG_PHY_XILINX_GMII2RGMII
@@@ -1101,35 -1078,3 +1081,23 @@@ int phy_shutdown(struct phy_device *phy
  
        return 0;
  }
- int phy_get_interface_by_name(const char *str)
- {
-       int i;
-       for (i = 0; i < PHY_INTERFACE_MODE_COUNT; i++) {
-               if (!strcmp(str, phy_interface_strings[i]))
-                       return i;
-       }
-       return -1;
- }
 +
 +/**
 + * phy_modify - Convenience function for modifying a given PHY register
 + * @phydev: the phy_device struct
 + * @devad: The MMD to read from
 + * @regnum: register number to write
 + * @mask: bit mask of bits to clear
 + * @set: new value of bits set in mask to write to @regnum
 + */
 +int phy_modify(struct phy_device *phydev, int devad, int regnum, u16 mask,
 +             u16 set)
 +{
 +      int ret;
 +
 +      ret = phy_read(phydev, devad, regnum);
 +      if (ret < 0)
 +              return ret;
 +
 +      return phy_write(phydev, devad, regnum, (ret & ~mask) | set);
 +}
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc include/phy.h
index 528839a33de4da3061059cc5f136b241e91123dd,37b2a0281e3772add18dd09ffd6d07867f43753c..b32959571069913938969aa517724598bea627fb
@@@ -477,9 -463,7 +463,8 @@@ struct phy_device *phy_device_create(st
   * @return:           pointer to phy_device if a PHY is found,
   *                    or NULL otherwise
   */
 -struct phy_device *phy_connect_phy_id(struct mii_dev *bus, struct udevice *dev);
 +struct phy_device *phy_connect_phy_id(struct mii_dev *bus, struct udevice *dev,
-                                     int phyaddr, phy_interface_t interface);
++                                    int phyaddr);
  
  static inline ofnode phy_get_ofnode(struct phy_device *phydev)
  {
index ef7dbbfe982722b242c295dd91b4b54b5fa943d9,e4c5f743c94a5683f7542e1f4d3995cb16983f5f..df70ae2264da141f79f5735699bc99fa0e27a4a7
@@@ -24,8 -49,12 +24,7 @@@ CONFIG_DM9000_BYTE_SWAPPE
  CONFIG_DM9000_DEBUG
  CONFIG_DM9000_NO_SROM
  CONFIG_DM9000_USE_16BIT
 -CONFIG_DMA_COHERENT
 -CONFIG_DMA_COHERENT_SIZE
 -CONFIG_DP_DDR_CTRL
  CONFIG_DP_DDR_DIMM_SLOTS_PER_CTLR
 -CONFIG_DP_DDR_NUM_CTRLS
--CONFIG_DRIVER_DM9000
  CONFIG_DSP_CLUSTER_START
  CONFIG_DWC_AHSATA_BASE_ADDR
  CONFIG_DWC_AHSATA_PORT_ID