summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx51
diff options
context:
space:
mode:
authorRob Herring <r.herring@freescale.com>2009-10-21 15:22:45 -0500
committerDavid Ungar <david.ungar@timesys.com>2010-04-19 17:02:59 -0400
commitb655e1ad778f9b2f3b1bd1153856a0e3b7d4af11 (patch)
treeed60b3c8daddf7be08f50da14eae5edab8e55a69 /arch/arm/mach-mx51
parentc1b0ed7bc982ce43636564c0f620c207cf54aa3b (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>
Diffstat (limited to 'arch/arm/mach-mx51')
-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 5689fa7fb6c6..29f603c88e22 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