aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos/dev-fimc-lite.c
blob: 9187566672b9b3b6cd8956f8dc35a7b310ea8d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* linux/arch/arm/plat-s5p/dev-fimc-lite.c
 *
 * Copyright (c) 2011 Samsung Electronics
 *
 * Base S5P FIMC-Lite resource and device definitions
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <mach/map.h>
#include <media/exynos_flite.h>

static struct resource exynos_flite0_resource[] = {
	[0] = {
		.start	= EXYNOS_PA_FIMC_LITE0,
		.end	= EXYNOS_PA_FIMC_LITE0 + SZ_4K - 1,
		.flags	= IORESOURCE_MEM,
	},
	[1] = {
		.start	= IRQ_FIMC_LITE0,
		.end	= IRQ_FIMC_LITE0,
		.flags	= IORESOURCE_IRQ,
	},
};

struct platform_device exynos_device_flite0 = {
	.name		= "exynos-fimc-lite",
	.id		= 0,
	.num_resources	= ARRAY_SIZE(exynos_flite0_resource),
	.resource	= exynos_flite0_resource,
};

static struct resource exynos_flite1_resource[] = {
	[0] = {
		.start	= EXYNOS_PA_FIMC_LITE1,
		.end	= EXYNOS_PA_FIMC_LITE1 + SZ_4K - 1,
		.flags	= IORESOURCE_MEM,
	},
	[1] = {
		.start	= IRQ_FIMC_LITE1,
		.end	= IRQ_FIMC_LITE1,
		.flags	= IORESOURCE_IRQ,
	},
};

struct platform_device exynos_device_flite1 = {
	.name		= "exynos-fimc-lite",
	.id		= 1,
	.num_resources	= ARRAY_SIZE(exynos_flite1_resource),
	.resource	= exynos_flite1_resource,
};

#ifdef CONFIG_ARCH_EXYNOS5
static struct resource exynos_flite2_resource[] = {
	[0] = {
		.start	= EXYNOS_PA_FIMC_LITE2,
		.end	= EXYNOS_PA_FIMC_LITE2 + SZ_4K - 1,
		.flags	= IORESOURCE_MEM,
	},
	[1] = {
		.start	= IRQ_FIMC_LITE2,
		.end	= IRQ_FIMC_LITE2,
		.flags	= IORESOURCE_IRQ,
	},
};

struct platform_device exynos_device_flite2 = {
	.name		= "exynos-fimc-lite",
	.id		= 2,
	.num_resources	= ARRAY_SIZE(exynos_flite2_resource),
	.resource	= exynos_flite2_resource,
};
#endif

struct exynos_platform_flite exynos_flite0_default_data __initdata;
struct exynos_platform_flite exynos_flite1_default_data __initdata;
#ifdef CONFIG_ARCH_EXYNOS5
struct exynos_platform_flite exynos_flite2_default_data __initdata;
#endif