diff options
author | Varun Sethi <Varun.Sethi@freescale.com> | 2013-05-10 15:10:25 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-05-10 19:53:34 (GMT) |
commit | 1eb2605f889897e868242f4e24122581bce94506 (patch) | |
tree | 1d9e1df23cef1ab1b06dfc53aaf20c609017615b /arch | |
parent | 4b7d7c8771b7ff37836a4ad04b8c3c92374619c8 (diff) | |
download | linux-fsl-qoriq-1eb2605f889897e868242f4e24122581bce94506.tar.xz |
Put the qemu_e500_pci check under CONFIG_PPC_QEMU_E500 check.
Check for qemu_e500_pci flag only if QEMU E500 platform has been enabled.
Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com>
Change-Id: I7eacf87bccbd9442c76c851eb185f9b352b00905
Reviewed-on: http://git.am.freescale.net:8181/2439
Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/sysdev/fsl_pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c index f2da1a1..978672f 100644 --- a/arch/powerpc/sysdev/fsl_pci.c +++ b/arch/powerpc/sysdev/fsl_pci.c @@ -325,7 +325,11 @@ static void setup_pci_atmu(struct pci_controller *hose) mem_log = __ilog2_u64(sz); /* PCIe can overmap inbound & outbound since RX & TX are separated */ +#ifdef CONFIG_PPC_QEMU_E500 if (early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP) || qemu_e500_pci) { +#else + if (early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP)) { +#endif /* Size window to exact size if power-of-two or one size up */ if ((1ull << mem_log) != mem) { if ((1ull << mem_log) > mem) |