Commit 6bedfb76 authored by Santosh Shilimkar's avatar Santosh Shilimkar

ARM: OMAP4: Add mapping for ABE

This patch adds static mapping for Audio Back End
Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
parent 7ebca90b
...@@ -202,6 +202,12 @@ static struct map_desc omap44xx_io_desc[] __initdata = { ...@@ -202,6 +202,12 @@ static struct map_desc omap44xx_io_desc[] __initdata = {
.length = L4_PER_44XX_SIZE, .length = L4_PER_44XX_SIZE,
.type = MT_DEVICE, .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, .virtual = L4_EMU_44XX_VIRT,
.pfn = __phys_to_pfn(L4_EMU_44XX_PHYS), .pfn = __phys_to_pfn(L4_EMU_44XX_PHYS),
......
...@@ -180,6 +180,10 @@ ...@@ -180,6 +180,10 @@
#define L4_PER_44XX_VIRT 0xd8000000 #define L4_PER_44XX_VIRT 0xd8000000
#define L4_PER_44XX_SIZE SZ_4M #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_PHYS L4_EMU_44XX_BASE
#define L4_EMU_44XX_VIRT 0xe4000000 #define L4_EMU_44XX_VIRT 0xe4000000
#define L4_EMU_44XX_SIZE SZ_64M #define L4_EMU_44XX_SIZE SZ_64M
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#define L4_PER_44XX_BASE 0x48000000 #define L4_PER_44XX_BASE 0x48000000
#define L4_EMU_44XX_BASE 0x54000000 #define L4_EMU_44XX_BASE 0x54000000
#define L3_44XX_BASE 0x44000000 #define L3_44XX_BASE 0x44000000
#define L3_ABE_44XX_BASE 0x49000000
#define OMAP4430_32KSYNCT_BASE 0x4a304000 #define OMAP4430_32KSYNCT_BASE 0x4a304000
#define OMAP4430_CM_BASE 0x4a004000 #define OMAP4430_CM_BASE 0x4a004000
#define OMAP4430_PRM_BASE 0x48306000 #define OMAP4430_PRM_BASE 0x48306000
......
...@@ -116,6 +116,8 @@ void __iomem *omap_ioremap(unsigned long p, size_t size, unsigned int type) ...@@ -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); return XLATE(p, OMAP44XX_GPMC_PHYS, OMAP44XX_GPMC_VIRT);
if (BETWEEN(p, L4_PER_44XX_PHYS, L4_PER_44XX_SIZE)) if (BETWEEN(p, L4_PER_44XX_PHYS, L4_PER_44XX_SIZE))
return XLATE(p, L4_PER_44XX_PHYS, L4_PER_44XX_VIRT); 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)) if (BETWEEN(p, L4_EMU_44XX_PHYS, L4_EMU_44XX_SIZE))
return XLATE(p, L4_EMU_44XX_PHYS, L4_EMU_44XX_VIRT); return XLATE(p, L4_EMU_44XX_PHYS, L4_EMU_44XX_VIRT);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment