summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/iomap.h
diff options
context:
space:
mode:
authorKrishna Reddy <vdumpa@nvidia.com>2013-02-22 13:23:37 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:00:35 -0700
commit2280dfed70df1df5c1ec462d7ffb8acfb0fe86a5 (patch)
treea8506bf2ac02fec04195b10a73537b2ade4a7d76 /arch/arm/mach-tegra/iomap.h
parenta22b880179dc68789f9ce708cf1f23357f6ecf43 (diff)
arm: tegra: iomap: enable pcie aperture in the iotable if pcie is enabled
It was enabled unconditionally and wasting vmalloc space when pcie is not enabled. Bug 1233224 Change-Id: I82206b58d8b10d5d48e5cef5745a57315230cc40 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/203395 (cherry picked from commit f6c28eb7586b1923b50b03ef2e5b2cd30ac7f974) Reviewed-on: http://git-master/r/204318 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman <alexw@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/iomap.h')
-rw-r--r--arch/arm/mach-tegra/iomap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/iomap.h b/arch/arm/mach-tegra/iomap.h
index b9516d56fb89..8f70530d9d9d 100644
--- a/arch/arm/mach-tegra/iomap.h
+++ b/arch/arm/mach-tegra/iomap.h
@@ -815,7 +815,11 @@
#else
#define IO_PCIE_PHYS 0x00000000
#endif
+#if defined(CONFIG_TEGRA_PCI)
#define IO_PCIE_SIZE (SZ_16M * 3)
+#else
+#define IO_PCIE_SIZE 0
+#endif
#if defined(CONFIG_MTD_NOR_TEGRA) || defined(CONFIG_MTD_NOR_TEGRA_GMI)
#ifdef CONFIG_ARCH_TEGRA_2x_SOC