u-boot/drivers/pci
Vladimir Oltean f83567e0c0 pci-host-ecam-generic: access config space independent of system-wide bus id
The pci-host-ecam-generic code assumes that the ECAM is the first PCI
bus in the system to be probed. Therefore, the system-wide bus number
allocated by U-Boot in sequence for it is going to be zero, which
corresponds to the memory-mapped config spaces found within it.

Reuse the logic from other PCI bus drivers, and assume that U-Boot will
allocate bus numbers in sequence for all buses within the current ECAM.
So the base number of the bus needs to be subtracted when indexing the
correct config space.

Fixes: 3675cb044e ("PCI: Add driver for a 'pci-host-ecam-generic' host controller")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Alex Marginean <alexandru.marginean@nxp.com>
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
2020-03-30 08:11:56 +05:30
..
fsl_pci_init.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
Kconfig pci: layerscape: Manage PCIe EP compatible string via Kconfig 2020-01-02 14:36:57 +05:30
Makefile pci: layerscape: Common device tree fixup for NXP SoCs 2020-01-24 14:28:26 +05:30
pci_auto_common.c pci: Add more debug detail when resources are exhausted 2019-10-08 13:57:42 +08:00
pci_auto_old.c mpc83xx: Make distinct caddy2 config 2019-05-20 13:50:34 +02:00
pci_auto.c pci: Show a message if PCI autoconfig fails 2019-10-08 13:57:42 +08:00
pci_common.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
pci_compat.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_ftpci100.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_gt64120.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_indirect.c pci: Don't use pci_indirect when DM is active 2018-05-08 18:50:23 -04:00
pci_internal.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_mpc85xx.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pci_msc01.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_mvebu.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
pci_rom.c common: Move ll_boot_init() to init.h 2020-01-17 13:27:28 -05:00
pci_sandbox.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pci_sh4.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_sh7751.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pci_sh7780.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_tegra.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pci_x86.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pci-aardvark.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
pci-emul-uclass.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pci-rcar-gen2.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pci-rcar-gen3.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pci-uclass.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
pci.c common: Move pci_init_board() out of common.h 2019-12-02 18:25:25 -05:00
pcie_dw_mvebu.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pcie_dw_ti.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
pcie_ecam_generic.c pci-host-ecam-generic: access config space independent of system-wide bus id 2020-03-30 08:11:56 +05:30
pcie_fsl_fixup.c dm: pci: add Freescale PowerPC PCIe driver 2019-06-20 10:44:45 +05:30
pcie_fsl.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
pcie_fsl.h dm: pcie_fsl: Fix the calculation of controller index 2019-08-28 13:47:44 +05:30
pcie_imx.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
pcie_intel_fpga.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
pcie_layerscape_fixup_common.c pci: layerscape: device tree fixup based on SoC and 2020-01-24 14:28:26 +05:30
pcie_layerscape_fixup_common.h pci: layerscape: device tree fixup based on SoC and 2020-01-24 14:28:26 +05:30
pcie_layerscape_fixup.c pci: layerscape: device tree fixup based on SoC and 2020-01-24 14:28:26 +05:30
pcie_layerscape_gen4_fixup.c pci: layerscape: Move streamId allocation to common device tree fixup 2020-01-24 14:28:26 +05:30
pcie_layerscape_gen4.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pcie_layerscape_gen4.h pci: Add PCIe Gen4 controller driver for NXP Layerscape SoCs 2019-05-22 12:24:24 +05:30
pcie_layerscape.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pcie_layerscape.h pci: layerscape: Add stream_id_cur field to ls_pcie structure 2019-12-26 16:00:21 +05:30
pcie_mediatek.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
pcie_phytium.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pcie_xilinx.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00