diff options
author | Jonas Aaberg <jonas.aberg@stericsson.com> | 2010-06-20 17:26:14 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2010-06-22 21:01:55 -0400 |
commit | 5aa12e8c9c57741606e52f43e62ab1b9dc8e9dcc (patch) | |
tree | 6bb2c6b9c68915e9ce8e4a56a9a0d8446b47215c /arch/arm | |
parent | 508849ade23c1167bfbdf557259398adfe7044b9 (diff) |
DMAENGINE: ste_dma40: arch updates for LCLA and LCPA
This follows on the patch to allocate LCLA dynamically: the
on-chip memory is needed for other things so now that that
we're using it dynamically we can remove the LCLA resource
altogether and free up some ESRAM memory.
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-ux500/devices-db8500.c | 19 | ||||
-rw-r--r-- | arch/arm/mach-ux500/include/mach/db8500-regs.h | 5 |
2 files changed, 9 insertions, 15 deletions
diff --git a/arch/arm/mach-ux500/devices-db8500.c b/arch/arm/mach-ux500/devices-db8500.c index 822903421943..638964e614e9 100644 --- a/arch/arm/mach-ux500/devices-db8500.c +++ b/arch/arm/mach-ux500/devices-db8500.c | |||
@@ -113,26 +113,21 @@ struct platform_device u8500_i2c4_device = { | |||
113 | static struct resource dma40_resources[] = { | 113 | static struct resource dma40_resources[] = { |
114 | [0] = { | 114 | [0] = { |
115 | .start = U8500_DMA_BASE, | 115 | .start = U8500_DMA_BASE, |
116 | .end = U8500_DMA_BASE + SZ_4K - 1, | 116 | .end = U8500_DMA_BASE + SZ_4K - 1, |
117 | .flags = IORESOURCE_MEM, | 117 | .flags = IORESOURCE_MEM, |
118 | .name = "base", | 118 | .name = "base", |
119 | }, | 119 | }, |
120 | [1] = { | 120 | [1] = { |
121 | .start = U8500_DMA_LCPA_BASE, | 121 | .start = U8500_DMA_LCPA_BASE, |
122 | .end = U8500_DMA_LCPA_BASE + SZ_4K - 1, | 122 | .end = U8500_DMA_LCPA_BASE + 2 * SZ_1K - 1, |
123 | .flags = IORESOURCE_MEM, | 123 | .flags = IORESOURCE_MEM, |
124 | .name = "lcpa", | 124 | .name = "lcpa", |
125 | }, | 125 | }, |
126 | [2] = { | 126 | [2] = { |
127 | .start = U8500_DMA_LCLA_BASE, | ||
128 | .end = U8500_DMA_LCLA_BASE + 16 * 1024 - 1, | ||
129 | .flags = IORESOURCE_MEM, | ||
130 | .name = "lcla", | ||
131 | }, | ||
132 | [3] = { | ||
133 | .start = IRQ_DMA, | 127 | .start = IRQ_DMA, |
134 | .end = IRQ_DMA, | 128 | .end = IRQ_DMA, |
135 | .flags = IORESOURCE_IRQ} | 129 | .flags = IORESOURCE_IRQ, |
130 | } | ||
136 | }; | 131 | }; |
137 | 132 | ||
138 | /* Default configuration for physcial memcpy */ | 133 | /* Default configuration for physcial memcpy */ |
diff --git a/arch/arm/mach-ux500/include/mach/db8500-regs.h b/arch/arm/mach-ux500/include/mach/db8500-regs.h index 85fc6a80b386..897fa35078ef 100644 --- a/arch/arm/mach-ux500/include/mach/db8500-regs.h +++ b/arch/arm/mach-ux500/include/mach/db8500-regs.h | |||
@@ -15,9 +15,8 @@ | |||
15 | #define U8500_ESRAM_BANK2 (U8500_ESRAM_BANK1 + U8500_ESRAM_BANK_SIZE) | 15 | #define U8500_ESRAM_BANK2 (U8500_ESRAM_BANK1 + U8500_ESRAM_BANK_SIZE) |
16 | #define U8500_ESRAM_BANK3 (U8500_ESRAM_BANK2 + U8500_ESRAM_BANK_SIZE) | 16 | #define U8500_ESRAM_BANK3 (U8500_ESRAM_BANK2 + U8500_ESRAM_BANK_SIZE) |
17 | #define U8500_ESRAM_BANK4 (U8500_ESRAM_BANK3 + U8500_ESRAM_BANK_SIZE) | 17 | #define U8500_ESRAM_BANK4 (U8500_ESRAM_BANK3 + U8500_ESRAM_BANK_SIZE) |
18 | /* Use bank 4 for DMA LCLA and LCPA */ | 18 | /* Use bank 4 for DMA LCPA */ |
19 | #define U8500_DMA_LCLA_BASE U8500_ESRAM_BANK4 | 19 | #define U8500_DMA_LCPA_BASE U8500_ESRAM_BANK4 |
20 | #define U8500_DMA_LCPA_BASE (U8500_ESRAM_BANK4 + 0x4000) | ||
21 | 20 | ||
22 | #define U8500_PER3_BASE 0x80000000 | 21 | #define U8500_PER3_BASE 0x80000000 |
23 | #define U8500_STM_BASE 0x80100000 | 22 | #define U8500_STM_BASE 0x80100000 |