summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <r.herring@freescale.com>2009-10-21 15:22:45 -0500
committerRob Herring <r.herring@freescale.com>2009-10-21 15:24:25 -0500
commitf14360442d004224bc751a2006935833cb8299fe (patch)
treed6d38d5fb3093d7503e4ca1f54b8b72c1b2280ff
parent6d5a36ac42b91d0b2158c6d77c33d0ed29cd3e7b (diff)
ENGR00117540 z160: add memory region for scratch buffers
The z160 needs 88KB memory for temp buffers. Signed-off-by: Rob Herring <r.herring@freescale.com>
-rw-r--r--arch/arm/mach-mx51/devices.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-mx51/devices.c b/arch/arm/mach-mx51/devices.c
index 495d1043a93f..183ef7a3b99c 100644
--- a/arch/arm/mach-mx51/devices.c
+++ b/arch/arm/mach-mx51/devices.c
@@ -1177,6 +1177,9 @@ static struct resource mxc_gpu2d_resources[] = {
{
.flags = IORESOURCE_MEM,
},
+ {
+ .flags = IORESOURCE_MEM,
+ },
};
#if defined(CONFIG_UIO_PDRV_GENIRQ) || defined(CONFIG_UIO_PDRV_GENIRQ_MODULE)
@@ -1242,6 +1245,9 @@ static inline void mxc_init_gpu2d(void)
dma_alloc_coherent(&mxc_gpu2d_device.dev, SZ_8K, &mxc_gpu2d_resources[1].start, GFP_DMA);
mxc_gpu2d_resources[1].end = mxc_gpu2d_resources[1].start + SZ_8K - 1;
+ dma_alloc_coherent(&mxc_gpu2d_device.dev, 88 * SZ_1K, &mxc_gpu2d_resources[2].start, GFP_DMA);
+ mxc_gpu2d_resources[2].end = mxc_gpu2d_resources[2].start + (88 * SZ_1K) - 1;
+
platform_device_register(&mxc_gpu2d_device);
}
#else