diff options
author | Rakesh Bodla <rbodla@nvidia.com> | 2012-02-06 16:21:03 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-03-20 16:22:54 -0700 |
commit | 526ef97771c4b0e839bf5c6206f6c9d971f5f9dc (patch) | |
tree | 6e35a8e21f07eedca961f6a3fd4a63429dde9e96 | |
parent | 5c777fb62d43755401f66771548154f94a570aa8 (diff) |
ARM: tegra: Add AHB EMEM to MC Flush Register IO
Add the AHB EMEM to MC Flush Register
area to the statically mapped io regions
Bug 729267
Change-Id: I86542cd3ffec587e7213cbc34129e8b5124aab9c
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/88283
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/include/mach/io.h | 6 | ||||
-rw-r--r-- | arch/arm/mach-tegra/io.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/io.h b/arch/arm/mach-tegra/include/mach/io.h index ffcfeb63f777..7c02f911ae36 100644 --- a/arch/arm/mach-tegra/include/mach/io.h +++ b/arch/arm/mach-tegra/include/mach/io.h @@ -74,6 +74,10 @@ #define IO_HOST1X_VIRT 0xFE700000 #define IO_HOST1X_SIZE SZ_8M +#define IO_PPCS_PHYS 0x7C000000 +#define IO_PPCS_VIRT 0xFE100000 +#define IO_PPCS_SIZE SZ_1M + #define IO_TO_VIRT_BETWEEN(p, st, sz) ((p) >= (st) && (p) < ((st) + (sz))) #define IO_TO_VIRT_XLATE(p, pst, vst) (((p) - (pst) + (vst))) @@ -92,6 +96,8 @@ 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) : \ + IO_TO_VIRT_BETWEEN((n), IO_PPCS_PHYS, IO_PPCS_SIZE) ? \ + IO_TO_VIRT_XLATE((n), IO_PPCS_PHYS, IO_PPCS_VIRT) : \ 0) #ifndef __ASSEMBLER__ diff --git a/arch/arm/mach-tegra/io.c b/arch/arm/mach-tegra/io.c index 7089123c6f0a..47279e1d5eb8 100644 --- a/arch/arm/mach-tegra/io.c +++ b/arch/arm/mach-tegra/io.c @@ -75,6 +75,12 @@ static struct map_desc tegra_io_desc[] __initdata = { .length = IO_SDMMC_SIZE, .type = MT_DEVICE, }, + { + .virtual = IO_PPCS_VIRT, + .pfn = __phys_to_pfn(IO_PPCS_PHYS), + .length = IO_PPCS_SIZE, + .type = MT_DEVICE, + } }; void __init tegra_map_common_io(void) |