diff options
author | Kamil Debski <k.debski@samsung.com> | 2011-12-27 03:16:44 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-02-10 18:02:41 -0500 |
commit | 561ab530bf81c86df1c88d6c8b75718ef1d3b8a6 (patch) | |
tree | 115b00ce208bf14cf05d3d941d77da37496204fb /arch/arm/plat-samsung/devs.c | |
parent | ed8d8aa1e674b5b03fceae56a81cccbcf60ec95e (diff) |
ARM: SAMSUNG: add G2D to plat-s5p and mach-exynos
G2D is a 2D graphics accelerator engine present in the s5p family
of Samsung SoCs. It is capable of bitblt and raster operations on
images having dimensions of up to 8000x8000.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung/devs.c')
-rw-r--r-- | arch/arm/plat-samsung/devs.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c index 32a6e394db24..145580a4a62c 100644 --- a/arch/arm/plat-samsung/devs.c +++ b/arch/arm/plat-samsung/devs.c | |||
@@ -267,6 +267,34 @@ struct platform_device s5p_device_fimc3 = { | |||
267 | }; | 267 | }; |
268 | #endif /* CONFIG_S5P_DEV_FIMC3 */ | 268 | #endif /* CONFIG_S5P_DEV_FIMC3 */ |
269 | 269 | ||
270 | /* G2D */ | ||
271 | |||
272 | #ifdef CONFIG_S5P_DEV_G2D | ||
273 | static struct resource s5p_g2d_resource[] = { | ||
274 | [0] = { | ||
275 | .start = S5P_PA_G2D, | ||
276 | .end = S5P_PA_G2D + SZ_4K - 1, | ||
277 | .flags = IORESOURCE_MEM, | ||
278 | }, | ||
279 | [1] = { | ||
280 | .start = IRQ_2D, | ||
281 | .end = IRQ_2D, | ||
282 | .flags = IORESOURCE_IRQ, | ||
283 | }, | ||
284 | }; | ||
285 | |||
286 | struct platform_device s5p_device_g2d = { | ||
287 | .name = "s5p-g2d", | ||
288 | .id = 0, | ||
289 | .num_resources = ARRAY_SIZE(s5p_g2d_resource), | ||
290 | .resource = s5p_g2d_resource, | ||
291 | .dev = { | ||
292 | .dma_mask = &samsung_device_dma_mask, | ||
293 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
294 | }, | ||
295 | }; | ||
296 | #endif /* CONFIG_S5P_DEV_G2D */ | ||
297 | |||
270 | /* FIMD0 */ | 298 | /* FIMD0 */ |
271 | 299 | ||
272 | #ifdef CONFIG_S5P_DEV_FIMD0 | 300 | #ifdef CONFIG_S5P_DEV_FIMD0 |