summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-tegra/io.c2
-rw-r--r--arch/arm/mach-tegra/iomap.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/io.c b/arch/arm/mach-tegra/io.c
index ccf8271e9b27..4054e1458f7d 100644
--- a/arch/arm/mach-tegra/io.c
+++ b/arch/arm/mach-tegra/io.c
@@ -82,12 +82,14 @@ static struct map_desc tegra_io_desc[] __initdata = {
.length = IO_PPCS_SIZE,
.type = MT_DEVICE,
},
+#if defined(CONFIG_TEGRA_PCI)
{
.virtual = (unsigned long)IO_PCIE_VIRT,
.pfn = __phys_to_pfn(IO_PCIE_PHYS),
.length = IO_PCIE_SIZE,
.type = MT_DEVICE,
},
+#endif
#if defined(CONFIG_MTD_NOR_TEGRA) || defined(CONFIG_MTD_NOR_TEGRA_GMI)
{
.virtual = (unsigned long)IO_NOR_VIRT,
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