1. 21 Mar, 2016 1 commit
  2. 17 Mar, 2016 2 commits
  3. 05 Feb, 2016 1 commit
  4. 24 Jan, 2016 1 commit
  5. 12 Jan, 2016 8 commits
  6. 01 Dec, 2015 5 commits
  7. 23 Oct, 2015 1 commit
  8. 26 Aug, 2015 1 commit
  9. 14 Aug, 2015 2 commits
  10. 05 Aug, 2015 1 commit
  11. 03 Aug, 2015 1 commit
  12. 21 Jul, 2015 2 commits
    • Simon Glass's avatar
      dm: pci: Add a function to get the BDF for a device · 4b515e4f
      Simon Glass authored
      It is useful to be able to find the full PCI address (bus, device and
      function) for a PCI device. Add a function to provide this.
      
      Adjust the existing code to use this.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      4b515e4f
    • Simon Glass's avatar
      dm: pci: Add support for PCI driver matching · aba92962
      Simon Glass authored
      At present all PCI devices must be present in the device tree in order to
      be used. Many or most PCI devices don't require any configuration other than
      that which is done automatically by U-Boot. It is inefficent to add a node
      with nothing but a compatible string in order to get a device working.
      
      Add a mechanism whereby PCI drivers can be declared along with the device
      parameters they support (vendor/device/class). When no suitable driver is
      found in the device tree the list of such devices is consulted to determine
      the correct driver. If this also fails, then a generic driver is used as
      before.
      
      The mechanism used is very similar to that provided by Linux and the header
      file defintions are copied from Linux 4.1.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
      aba92962
  13. 15 Jul, 2015 2 commits
  14. 17 Apr, 2015 3 commits
  15. 06 Feb, 2015 1 commit
  16. 24 Jan, 2015 1 commit
  17. 05 Jan, 2015 1 commit
  18. 25 Nov, 2014 1 commit
  19. 23 Nov, 2014 1 commit
    • Thierry Reding's avatar
      pci: Honour pci_skip_dev() · 4efe52bf
      Thierry Reding authored
      When enumerating devices, honour the pci_skip_dev() function. This can
      be used by PCI controller drivers to restrict which devices will be
      probed.
      
      This is required by the NVIDIA Tegra PCIe controller driver, which will
      fail with a data abort exception if an access is attempted to a device
      number larger than 0 outside of bus 0. pci_skip_dev() is therefore
      implemented to prevent any such accesses.
      Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      4efe52bf
  20. 09 Sep, 2014 1 commit
  21. 09 Nov, 2013 1 commit
  22. 16 Oct, 2013 1 commit
    • Zhao Qiang's avatar
      PCIe:change the method to get the address of a requested capability in configuration space. · 287df01e
      Zhao Qiang authored
      Previously, the address of a requested capability is define like that
      	"#define PCI_DCR	0x78"
      But, the addresses of capabilities is different with regard to PCIe revs.
      So this method is not flexible.
      
      Now a function to get the address of a requested capability is added and used.
      It can get the address dynamically by capability ID.
      The step of this function:
      	1. Read Status register in PCIe configuration space to confirm that
      	   Capabilities List is valid.
      	2. Find the address of Capabilities Pointer Register.
      	3. Find the address of requested capability from the first capability.
      Signed-off-by: default avatarZhao Qiang <B45475@freescale.com>
      287df01e
  23. 09 Aug, 2013 1 commit
    • Zang Roy-R61911's avatar
      powerpc/pcie: add PCIe version 3.x support · 7b4e5844
      Zang Roy-R61911 authored
      T4240 PCIe IP is version 3.0 and has some update comparing previous
      QorIQ products.
      
      1.  Move Freescale specific register define
      to
      arch/powerpc/include/asm/fsl_pci.h
      and update the register offset define for T4240.
      
      2. add the status/control register define
      use status/control register to judge the link status
      
      3. The original code uses 'Programming Interface' field to judge if PCIE is
      EP or RC mode, however, T4240 does not support this functionality.
      According to PCIE specification, 'Header Type' offset 0x0e is used to
      indicate header type, so for PCIE controller, the patch changes code to
      use 'Header Type' field to identify if the PCIE is RC or EP mode.
      
      This patch fixes  the PCIe card link up issue on T4240QDS.
      Signed-off-by: default avatarRoy Zang <tie-fei.zang@freescale.com>
      Signed-off-by: default avatarMinghuan Lian <Minghuan.Lian@freescale.com>
      Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
      7b4e5844