summaryrefslogtreecommitdiff
path: root/arch
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-26 16:57:57 -0500
commitbf0722e38e85c6de976710c333558bcd3ea9bf46 (patch)
treeed60b3c8daddf7be08f50da14eae5edab8e55a69 /arch
parentc45d82644df8e4c2a6bcae3ed0308d7b85ddbc35 (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')
-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