diff options
Diffstat (limited to 'arch/arm/plat-s5p/dev-fimc1.c')
-rw-r--r-- | arch/arm/plat-s5p/dev-fimc1.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/plat-s5p/dev-fimc1.c b/arch/arm/plat-s5p/dev-fimc1.c new file mode 100644 index 000000000000..41bd6986d0ad --- /dev/null +++ b/arch/arm/plat-s5p/dev-fimc1.c | |||
@@ -0,0 +1,36 @@ | |||
1 | /* linux/arch/arm/plat-s5p/dev-fimc1.c | ||
2 | * | ||
3 | * Copyright (c) 2010 Samsung Electronics | ||
4 | * | ||
5 | * Base S5P FIMC1 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/platform_device.h> | ||
14 | #include <linux/interrupt.h> | ||
15 | #include <linux/ioport.h> | ||
16 | #include <mach/map.h> | ||
17 | |||
18 | static struct resource s5p_fimc1_resource[] = { | ||
19 | [0] = { | ||
20 | .start = S5P_PA_FIMC1, | ||
21 | .end = S5P_PA_FIMC1 + SZ_1M - 1, | ||
22 | .flags = IORESOURCE_MEM, | ||
23 | }, | ||
24 | [1] = { | ||
25 | .start = IRQ_FIMC1, | ||
26 | .end = IRQ_FIMC1, | ||
27 | .flags = IORESOURCE_IRQ, | ||
28 | }, | ||
29 | }; | ||
30 | |||
31 | struct platform_device s5p_device_fimc1 = { | ||
32 | .name = "s5p-fimc", | ||
33 | .id = 1, | ||
34 | .num_resources = ARRAY_SIZE(s5p_fimc1_resource), | ||
35 | .resource = s5p_fimc1_resource, | ||
36 | }; | ||