diff options
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/io.h')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/io.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/io.h b/arch/arm/mach-tegra/include/mach/io.h index 2b091bf83f39..c6847fb78bab 100644 --- a/arch/arm/mach-tegra/include/mach/io.h +++ b/arch/arm/mach-tegra/include/mach/io.h @@ -82,6 +82,14 @@ #define IO_PPCS_VIRT 0xFE100000 #define IO_PPCS_SIZE SZ_1M +#ifdef CONFIG_ARCH_TEGRA_2x_SOC +#define IO_PCIE_PHYS 0x80000000 +#else +#define IO_PCIE_PHYS 0x00000000 +#endif +#define IO_PCIE_VIRT 0xFB000000 +#define IO_PCIE_SIZE (SZ_16M * 3) + #define IO_TO_VIRT_BETWEEN(p, st, sz) ((p) >= (st) && (p) < ((st) + (sz))) #define IO_TO_VIRT_XLATE(p, pst, vst) (((p) - (pst) + (vst))) @@ -102,6 +110,8 @@ IO_TO_VIRT_XLATE((n), IO_SDMMC_PHYS, IO_SDMMC_VIRT) : \ IO_TO_VIRT_BETWEEN((n), IO_PPCS_PHYS, IO_PPCS_SIZE) ? \ IO_TO_VIRT_XLATE((n), IO_PPCS_PHYS, IO_PPCS_VIRT) : \ + IO_TO_VIRT_BETWEEN((n), IO_PCIE_PHYS, IO_PCIE_SIZE) ? \ + IO_TO_VIRT_XLATE((n), IO_PCIE_PHYS, IO_PCIE_VIRT) : \ 0) #ifndef __ASSEMBLER__ |