u-boot-brain/arch
Zhao Qiang 287df01e6a PCIe:change the method to get the address of a requested capability in configuration space.
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: Zhao Qiang <B45475@freescale.com>
2013-10-16 16:15:17 -07:00
..
arm Coding Style cleanup: drop some excessive empty lines 2013-10-14 16:06:54 -04:00
avr32 Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
blackfin Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
m68k Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
microblaze microblaze: Fix watchdog initialization 2013-10-16 09:24:38 -04:00
mips Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
nds32 nds32: introduce DMA allocation API 2013-08-09 01:51:11 +08:00
nios2 Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
openrisc Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
powerpc PCIe:change the method to get the address of a requested capability in configuration space. 2013-10-16 16:15:17 -07:00
sandbox Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
sh Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sparc Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
x86 Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00