diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2012-03-10 05:45:42 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-03-10 10:26:58 -0500 |
commit | 3dbe6d4cacc76100f3166cd824d3ce7a8cef7cef (patch) | |
tree | fe4247d4a9e1e2cf0ae01213592ddb444c4d6e86 /arch/arm/plat-samsung/devs.c | |
parent | 2bde0b08cae739056d1c136839b67eec0ac0c3a4 (diff) |
ARM: EXYNOS: add support JPEG
This patch adds platform_device, clock, map for JPEG
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@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 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c index 996567ee94cd..cd0b9da9bbc4 100644 --- a/arch/arm/plat-samsung/devs.c +++ b/arch/arm/plat-samsung/devs.c | |||
@@ -296,6 +296,24 @@ struct platform_device s5p_device_g2d = { | |||
296 | }; | 296 | }; |
297 | #endif /* CONFIG_S5P_DEV_G2D */ | 297 | #endif /* CONFIG_S5P_DEV_G2D */ |
298 | 298 | ||
299 | #ifdef CONFIG_S5P_DEV_JPEG | ||
300 | static struct resource s5p_jpeg_resource[] = { | ||
301 | [0] = DEFINE_RES_MEM(S5P_PA_JPEG, SZ_4K), | ||
302 | [1] = DEFINE_RES_IRQ(IRQ_JPEG), | ||
303 | }; | ||
304 | |||
305 | struct platform_device s5p_device_jpeg = { | ||
306 | .name = "s5p-jpeg", | ||
307 | .id = 0, | ||
308 | .num_resources = ARRAY_SIZE(s5p_jpeg_resource), | ||
309 | .resource = s5p_jpeg_resource, | ||
310 | .dev = { | ||
311 | .dma_mask = &samsung_device_dma_mask, | ||
312 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
313 | }, | ||
314 | }; | ||
315 | #endif /* CONFIG_S5P_DEV_JPEG */ | ||
316 | |||
299 | /* FIMD0 */ | 317 | /* FIMD0 */ |
300 | 318 | ||
301 | #ifdef CONFIG_S5P_DEV_FIMD0 | 319 | #ifdef CONFIG_S5P_DEV_FIMD0 |