diff options
author | Colin Cross <ccross@android.com> | 2011-01-21 17:04:07 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-01-21 17:05:16 -0800 |
commit | 5d8b46b6df95028c48fcbadc36fed2929fabb20e (patch) | |
tree | ec58441f7000e5707721802eb848132a7f5dacfb /arch/arm/mach-tegra/include | |
parent | 66eaaf9564a90ee753f3f9866e3b517bfc7f1dbf (diff) |
ARM: tegra: Statically map all device io memory
Change-Id: I0c750b766dcdd166ddff6317b93556f9f5cce899
Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'arch/arm/mach-tegra/include')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/entry-macro.S | 2 | ||||
-rw-r--r-- | arch/arm/mach-tegra/include/mach/io.h | 22 |
2 files changed, 21 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/include/mach/entry-macro.S b/arch/arm/mach-tegra/include/mach/entry-macro.S index 2ba9e5c9d2f6..17a42dac3b01 100644 --- a/arch/arm/mach-tegra/include/mach/entry-macro.S +++ b/arch/arm/mach-tegra/include/mach/entry-macro.S @@ -20,7 +20,7 @@ #include <asm/hardware/gic.h> /* Uses the GIC interrupt controller built into the cpu */ -#define ICTRL_BASE (IO_CPU_VIRT + 0x100) +#define ICTRL_BASE (IO_CPU_VIRT + 0x40100) .macro disable_fiq .endm diff --git a/arch/arm/mach-tegra/include/mach/io.h b/arch/arm/mach-tegra/include/mach/io.h index 16f16189b5eb..9a7f8b93ea10 100644 --- a/arch/arm/mach-tegra/include/mach/io.h +++ b/arch/arm/mach-tegra/include/mach/io.h @@ -37,9 +37,9 @@ #define IO_IRAM_VIRT 0xFE400000 #define IO_IRAM_SIZE SZ_256K -#define IO_CPU_PHYS 0x50040000 +#define IO_CPU_PHYS 0x50000000 #define IO_CPU_VIRT 0xFE000000 -#define IO_CPU_SIZE SZ_16K +#define IO_CPU_SIZE SZ_1M #define IO_PPSB_PHYS 0x60000000 #define IO_PPSB_VIRT 0xFE200000 @@ -49,6 +49,18 @@ #define IO_APB_VIRT 0xFE300000 #define IO_APB_SIZE SZ_1M +#define IO_USB_PHYS 0xC5000000 +#define IO_USB_VIRT 0xFE500000 +#define IO_USB_SIZE SZ_1M + +#define IO_SDMMC_PHYS 0xC8000000 +#define IO_SDMMC_VIRT 0xFE600000 +#define IO_SDMMC_SIZE SZ_1M + +#define IO_HOST1X_PHYS 0x54000000 +#define IO_HOST1X_VIRT 0xFE700000 +#define IO_HOST1X_SIZE SZ_4M + #define IO_TO_VIRT_BETWEEN(p, st, sz) ((p) >= (st) && (p) < ((st) + (sz))) #define IO_TO_VIRT_XLATE(p, pst, vst) (((p) - (pst) + (vst))) @@ -61,6 +73,12 @@ IO_TO_VIRT_XLATE((n), IO_CPU_PHYS, IO_CPU_VIRT) : \ IO_TO_VIRT_BETWEEN((n), IO_IRAM_PHYS, IO_IRAM_SIZE) ? \ IO_TO_VIRT_XLATE((n), IO_IRAM_PHYS, IO_IRAM_VIRT) : \ + IO_TO_VIRT_BETWEEN((n), IO_HOST1X_PHYS, IO_HOST1X_SIZE) ? \ + IO_TO_VIRT_XLATE((n), IO_HOST1X_PHYS, IO_HOST1X_VIRT) : \ + IO_TO_VIRT_BETWEEN((n), IO_USB_PHYS, IO_USB_SIZE) ? \ + IO_TO_VIRT_XLATE((n), IO_USB_PHYS, IO_USB_VIRT) : \ + IO_TO_VIRT_BETWEEN((n), IO_SDMMC_PHYS, IO_SDMMC_SIZE) ? \ + IO_TO_VIRT_XLATE((n), IO_SDMMC_PHYS, IO_SDMMC_VIRT) : \ 0) #ifndef __ASSEMBLER__ |