summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/dma-db8500.c
diff options
context:
space:
mode:
authorNarayanan G <narayanan.gopalakrishnan@stericsson.com>2011-09-15 18:58:35 +0530
committerRabin Vincent <rabin.vincent@stericsson.com>2011-09-22 15:41:23 +0530
commitff06a7b800df8a7dd93981b8971c572dcd897f49 (patch)
treeca17817c010aa9728b53cf605dde46ed93f53724 /arch/arm/mach-ux500/dma-db8500.c
parent2c2d45d3b5b47e3fbe055ea4793e5917a1cbfa6a (diff)
dma40: Add support to use lcla area from esram
This patch provides an option of having the lcla in ESRAM instead of allocating it. The bool value (use_esram_lcla) in the stedma40_platform_data if set to true, then the lcla address would be taken from platform resources. This patch does not enable the feature, as the other dependencies related to keeping the esram34 regulator on, changes in mcde for releasing 8k from esram bank4 and the changes needed in cmdma have to be merged. ST-Ericsson ID: 362066 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: I590751f732021c5f2f4da9b7d51ae5dc10087be7 Signed-off-by: Narayanan G <narayanan.gopalakrishnan@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31123 Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500/dma-db8500.c')
-rw-r--r--arch/arm/mach-ux500/dma-db8500.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/dma-db8500.c b/arch/arm/mach-ux500/dma-db8500.c
index 12bc9a3406c..d7dcc9147ed 100644
--- a/arch/arm/mach-ux500/dma-db8500.c
+++ b/arch/arm/mach-ux500/dma-db8500.c
@@ -36,6 +36,12 @@ static struct resource dma40_resources[] = {
.start = IRQ_DB8500_DMA,
.end = IRQ_DB8500_DMA,
.flags = IORESOURCE_IRQ
+ },
+ [3] = {
+ .start = U8500_DMA_LCLA_BASE,
+ .end = U8500_DMA_LCLA_BASE + SZ_8K - 1,
+ .flags = IORESOURCE_MEM,
+ .name = "lcla_esram",
}
};
@@ -223,6 +229,7 @@ static struct stedma40_platform_data dma40_plat_data = {
.memcpy_conf_log = &dma40_memcpy_conf_log,
/* Audio is using physical channel 2 from MMDSP */
.disabled_channels = {2, -1},
+ .use_esram_lcla = false,
};
#ifdef CONFIG_UX500_CONTEXT