fsl_pci: use 'Header Type' field to judge PCIE mode
authorMinghuan Lian <Minghuan.Lian@freescale.com>
Tue, 21 Aug 2012 23:35:42 +0000 (23:35 +0000)
committerAndy Fleming <afleming@freescale.com>
Mon, 22 Oct 2012 08:03:16 +0000 (03:03 -0500)
commit505f3e6f2e0e90b78dec065e64ad57c5d8741b04
tree0d3254dd8c9731b8f6513baae76229c295377e58
parent99070db0dc0b0e881841a0091f06d53351244a34
fsl_pci: use 'Header Type' field to judge PCIE mode

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 EP or RC mode.

Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
drivers/pci/fsl_pci_init.c