diff options
author | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2009-07-23 12:35:42 +0530 |
---|---|---|
committer | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2009-08-10 11:23:39 +0530 |
commit | 575baa798d2ab79a525fb1d0a72f0098ead04e8d (patch) | |
tree | 852cd832c0f4eb69a166541f184eddca4ab8f80a | |
parent | 653a1d06eb885bc1d9bfc40ead4469787f745553 (diff) |
ARM: OMAP4: Add mapping for ABE
This patch adds static mapping for Audio Back End
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
-rw-r--r-- | arch/arm/mach-omap2/io.c | 6 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/mach/io.h | 4 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/mach/omap44xx.h | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/io.c | 2 |
4 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 3a86b0f66031..aedcee5a1680 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c @@ -203,6 +203,12 @@ static struct map_desc omap44xx_io_desc[] __initdata = { .type = MT_DEVICE, }, { + .virtual = L3_ABE_44XX_VIRT, + .pfn = __phys_to_pfn(L3_ABE_44XX_PHYS), + .length = L3_ABE_44XX_SIZE, + .type = MT_DEVICE, + }, + { .virtual = L4_EMU_44XX_VIRT, .pfn = __phys_to_pfn(L4_EMU_44XX_PHYS), .length = L4_EMU_44XX_SIZE, diff --git a/arch/arm/plat-omap/include/mach/io.h b/arch/arm/plat-omap/include/mach/io.h index 73f483d56ca6..0cb1bad26e27 100644 --- a/arch/arm/plat-omap/include/mach/io.h +++ b/arch/arm/plat-omap/include/mach/io.h @@ -180,6 +180,10 @@ #define L4_PER_44XX_VIRT 0xd8000000 #define L4_PER_44XX_SIZE SZ_4M +#define L3_ABE_44XX_PHYS L3_ABE_44XX_BASE +#define L3_ABE_44XX_VIRT 0xd9000000 +#define L3_ABE_44XX_SIZE SZ_1M + #define L4_EMU_44XX_PHYS L4_EMU_44XX_BASE #define L4_EMU_44XX_VIRT 0xe4000000 #define L4_EMU_44XX_SIZE SZ_64M diff --git a/arch/arm/plat-omap/include/mach/omap44xx.h b/arch/arm/plat-omap/include/mach/omap44xx.h index 855ce0efba69..3b4e598df33e 100644 --- a/arch/arm/plat-omap/include/mach/omap44xx.h +++ b/arch/arm/plat-omap/include/mach/omap44xx.h @@ -22,6 +22,8 @@ #define L4_PER_44XX_BASE 0x48000000 #define L4_EMU_44XX_BASE 0x54000000 #define L3_44XX_BASE 0x44000000 +#define L3_ABE_44XX_BASE 0x49000000 + #define OMAP4430_32KSYNCT_BASE 0x4a304000 #define OMAP4430_CM_BASE 0x4a004000 #define OMAP4430_PRM_BASE 0x48306000 diff --git a/arch/arm/plat-omap/io.c b/arch/arm/plat-omap/io.c index 9b42d72d96cf..8c6a5bec4aef 100644 --- a/arch/arm/plat-omap/io.c +++ b/arch/arm/plat-omap/io.c @@ -116,6 +116,8 @@ void __iomem *omap_ioremap(unsigned long p, size_t size, unsigned int type) return XLATE(p, OMAP44XX_GPMC_PHYS, OMAP44XX_GPMC_VIRT); if (BETWEEN(p, L4_PER_44XX_PHYS, L4_PER_44XX_SIZE)) return XLATE(p, L4_PER_44XX_PHYS, L4_PER_44XX_VIRT); + if (BETWEEN(p, L3_ABE_44XX_PHYS, L3_ABE_44XX_SIZE)) + return XLATE(p, L3_ABE_44XX_PHYS, L3_ABE_44XX_VIRT); if (BETWEEN(p, L4_EMU_44XX_PHYS, L4_EMU_44XX_SIZE)) return XLATE(p, L4_EMU_44XX_PHYS, L4_EMU_44XX_VIRT); } |