1. 27 1月, 2021 3 次提交
    • S
      net: e1000: Add missing address translations · 14807449
      Stefan Roese 提交于
      Add some missing address translations from virtual address in local DRAM
      to physical address, which is needed for the DMA transactions to work
      correctly.
      
      This issue was detected while testing the e1000 driver on the MIPS
      Octeon III platform, which needs address translation.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Aaron Williams <awilliams@marvell.com>
      Cc: Chandrakala Chavva <cchavva@marvell.com>
      14807449
    • S
      net: e1000: Use virt_to_phys() instead of pci_virt_to_mem() · 919c8ede
      Stefan Roese 提交于
      Using (dm_)pci_virt_to_mem() is incorrect to translate the virtual
      address in local DRAM to a physical address. The correct macro here
      is virt_to_phys() so switch to using this macro.
      
      As virt_to_bus() is now not used any more, this patch also removes
      both definitions (DM and non-DM).
      
      This issue was detected while testing the e1000 driver on the MIPS
      Octeon III platform, which needs address translation.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Aaron Williams <awilliams@marvell.com>
      Cc: Chandrakala Chavva <cchavva@marvell.com>
      919c8ede
    • S
      net: e1000: Remove unused bus_to_phys() macro · 55f01035
      Stefan Roese 提交于
      bus_to_phys() is defined but not referenced at all. This patch removes
      it completely.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Aaron Williams <awilliams@marvell.com>
      Cc: Chandrakala Chavva <cchavva@marvell.com>
      55f01035
  2. 26 1月, 2021 1 次提交
    • A
      net: sun8i-emac: Allow all RGMII PHY modes · 219a5d5a
      Andre Przywara 提交于
      So far all GBit users of the sun8i-emac driver were using the "rgmii"
      PHY mode, even though this turns out to be wrong. It just worked because
      the PHY driver doesn't do the proper setup (yet).
      In fact for most boards the "rgmii-id" or "rgmii-txid" PHY modes are the
      correct ones.
      
      To allow the DTs to describe the phy-mode correctly, and to stay
      compatible with Linux, at least allow those other RGMII modes in the
      driver.
      
      This avoids breakage if mainline DTs will be synced with U-Boot.
      Signed-off-by: NAndre Przywara <andre.przywara@arm.com>
      Acked-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      219a5d5a
  3. 25 1月, 2021 1 次提交
    • W
      net: add ethernet driver for MediaTek MT7620 SoC · 17ade70b
      Weijie Gao 提交于
      This patch adds  ethernet driver for MediaTek MT7620 SoC.
      
      The MT7620 SoC has a built-in ethernet (Frame Engine) and a built-in
      7-port switch and two xMII interfaces (can be MII/RMII/RGMII).
      
      The port 0-3 of the switch connects to intergrited FE PHYs. Port 4 can be
      configured to connect to either the intergrited FE PHY, or the xMII.
      Port 5 always connects to the xMII. Port 6 is the CPU port.
      
      This driver supports MT7530 giga switch connects to port 5.
      Reviewed-by: NStefan Roese <sr@denx.de>
      Signed-off-by: NWeijie Gao <weijie.gao@mediatek.com>
      17ade70b
  4. 22 1月, 2021 5 次提交
  5. 19 1月, 2021 6 次提交
  6. 18 1月, 2021 2 次提交
  7. 16 1月, 2021 1 次提交
  8. 15 1月, 2021 1 次提交
  9. 06 1月, 2021 2 次提交
  10. 19 12月, 2020 3 次提交
  11. 14 12月, 2020 4 次提交
  12. 13 12月, 2020 3 次提交
  13. 10 12月, 2020 3 次提交
    • B
      net: pfe_eth: read PFE ESBC header flash with spi_flash_read API · 164941c2
      Biwen Li 提交于
      Read PFE ESBC header flash with spi_flash_read API
      - logs as follows,
        Net:   SF: Detected s25fs512s with page size 256 Bytes, erase size 256
        KiB, total 64 MiB
        "Synchronous Abort" handler, esr 0x96000210
        elr: 000000008206db44 lr : 0000000082004ea0 (reloc)
        elr: 00000000b7ba6b44 lr : 00000000b7b3dea0
        x0 : 00000000b79407e8 x1 : 0000000040640000
        x2 : 0000000000000050 x3 : 0000000000000000
        x4 : 000000000000000a x5 : 0000000000000050
        x6 : 0000000000000366 x7 : 00000000b7942308
        x8 : 00000000b76407c0 x9 : 0000000000000008
        x10: 0000000000000044 x11: 00000000b7634d1c
        x12: 000000000000004f x13: 0000000000000044
        x14: 00000000b7634d98 x15: 00000000b76407c0
        x16: 0000000000000000 x17: 0000000000000000
        x18: 00000000b7636dd8 x19: 0000000000000000
        x20: 00000000b79407d0 x21: 00000000b79407e8
        x22: 0000000040640000 x23: 00000000b7634e58
        x24: 0000000000000000 x25: 0000000003800000
        x26: 00000000b7bdd000 x27: 0000000000000000
        x28: 0000000000000000 x29: 00000000b7634d10
      
        Code: d2800003 eb03005f 54000101 d65f03c0 (f8636826)
        Resetting CPU ...
      Signed-off-by: NBiwen Li <biwen.li@nxp.com>
      Reviewed-by: NPriyanka Jain <priyanka.jain@nxp.com>
      164941c2
    • M
      armv8: lx2162a: Add Soc changes to support LX2162A · 3a187cff
      Meenakshi Aggarwal 提交于
      LX2162 is LX2160 based SoC, it has same die as of LX2160
      with different packaging.
      
      LX2162A support 64-bit 2.9GT/s DDR4 memory, i2c, micro-click module,
      microSD card, eMMC support, serial console, qspi nor flash, qsgmii,
      sgmii, 25g, 40g, 50g network interface, one usb 3.0 and serdes
      interface to support three PCIe gen3 interface.
      Signed-off-by: NMeenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
      [Fixed whitespace errors]
      Signed-off-by: NPriyanka Jain <priyanka.jain@nxp.com>
      3a187cff
    • M
      drivers/net/phy: Add CORTINA_NO_FW_UPLOAD to Kconfig · 2a29a9a1
      Meenakshi Aggarwal 提交于
      Move CORTINA_NO_FW_UPLOAD to Kconfig file so that it can
      be controlled via defconfig files.
      Signed-off-by: NMeenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
      Reviewed-by: NPriyanka Jain <priyanka.jain@nxp.com>
      2a29a9a1
  14. 10 11月, 2020 1 次提交
    • M
      net: ks8851: Implement EEPROM MAC address readout · 68cbc63d
      Marek Vasut 提交于
      In case there is an EEPROM attached to the KS8851 MAC and the EEPROM
      contains a valid MAC address, the MAC address is loaded into the NIC
      registers on power on. Read the MAC address out of the NIC registers
      and provide it to U-Boot.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Eugen Hristev <eugen.hristev@microchip.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      68cbc63d
  15. 23 10月, 2020 1 次提交
  16. 22 10月, 2020 3 次提交
    • R
      net: Add IPQ40xx MDIO driver · 975151d0
      Robert Marko 提交于
      This adds the driver for the IPQ40xx built-in MDIO.
      This will be needed to support future PHY driver.
      Signed-off-by: NRobert Marko <robert.marko@sartura.hr>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      975151d0
    • A
      net: sun8i-emac: Lower MDIO frequency · 4f0278da
      Andre Przywara 提交于
      When sending a command via the MDIO bus, the Designware MAC expects some
      bits in the CMD register to describe the clock divider value between
      the main clock and the MDIO clock.
      So far we were omitting these bits, resulting in setting "00", which
      means "/ 16", so ending up with an MDIO frequency of either 18.75 or
      12.5 MHz.
      All the internal PHYs in the H3/H5/H6 SoCs as well as the Gbit Realtek
      PHYs seem to be fine with that - although it looks like to be severly
      overclocked (the MDIO spec limits the frequency to 2.5 MHz).
      However the external 100Mbit PHY on the Pine64 (non-plus) board is
      not happy with that, Ethernet was actually never working there, as the
      PHY didn't probe.
      
      As we set the EMAC clock (via AHB2) to 300 MHz in ATF (on the 64-bit
      SoCs), and use 200 MHz on the H3, we need the highest divider of 128
      to let the MDIO clock end up below the required 2.5 MHz.
      
      This enables Ethernet on the Pine64(non-plus).
      Signed-off-by: NAndre Przywara <andre.przywara@arm.com>
      Acked-by: NMaxime Ripard <mripard@kernel.org>
      Tested-by: Amit Singh Tomar <amittomer25@gmail.com> # Pine64+
      Reviewed-by: NJagan Teki <jagan@amarulasolutions.com>
      4f0278da
    • A
      net: sun8i-emac: Make internal PHY handling more robust · 88ae8fba
      Andre Przywara 提交于
      The current implementation of sun8i_get_ephy_nodes() makes quite some
      assumptions, in general relying on DT path names is a bad idea.
      I think the idea of the code was to determine if we are using the
      internal PHY, for which there are simpler and more robust methods:
      
      Rewrite (and rename) the existing function to simply lookup the DT node
      that "phy-handle" points to, using the device's DT node.
      Then check whether the parent of that PHY node is using an "H3 internal
      MDIO" compatible string. If we ever get another internal MDIO bus
      implementation, we will probably need code adjustments anyway, so this
      is good enough for now.
      Signed-off-by: NAndre Przywara <andre.przywara@arm.com>
      [jagan: rebase on master]
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      Acked-by: NMaxime Ripard <mripard@kernel.org>
      Tested-by: Amit Singh Tomar <amittomer25@gmail.com> # Pine64+
      Reviewed-by: NJagan Teki <jagan@amarulasolutions.com>
      88ae8fba