upload tizen1.0 source
[kernel/linux-2.6.36.git] / arch / arm / plat-s5p / dev-fimc3.c
1 /* linux/arch/arm/plat-s5p/dev-fimc3.c
2  *
3  * Copyright (c) 2010 Samsung Electronics
4  *
5  * Base S5P FIMC3 resource and device definitions
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  */
11
12 #include <linux/kernel.h>
13 #include <linux/dma-mapping.h>
14 #include <linux/platform_device.h>
15 #include <linux/interrupt.h>
16 #include <linux/ioport.h>
17 #include <mach/map.h>
18 #include <media/s5p_fimc.h>
19
20 static struct resource s5p_fimc3_resource[] = {
21         [0] = {
22                 .start  = S5P_PA_FIMC3,
23                 .end    = S5P_PA_FIMC3 + SZ_4K - 1,
24                 .flags  = IORESOURCE_MEM,
25         },
26         [1] = {
27                 .start  = IRQ_FIMC3,
28                 .end    = IRQ_FIMC3,
29                 .flags  = IORESOURCE_IRQ,
30         },
31 };
32
33 static u64 s5p_fimc3_dma_mask = DMA_BIT_MASK(32);
34
35 struct platform_device s5p_device_fimc3 = {
36         .name           = "s5p-fimc",
37         .id             = 3,
38         .num_resources  = ARRAY_SIZE(s5p_fimc3_resource),
39         .resource       = s5p_fimc3_resource,
40         .dev            = {
41                 .dma_mask               = &s5p_fimc3_dma_mask,
42                 .coherent_dma_mask      = DMA_BIT_MASK(32),
43         },
44 };
45
46 struct s5p_platform_fimc s3c_fimc3_default_data __initdata;