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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
/* linux/arch/arm/mach-exynos/dev-gsc.c
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* Base G-Scaler 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/dma-mapping.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <media/exynos_gscaler.h>
#include <plat/devs.h>
#include <mach/map.h>
static u64 exynos5_gsc_dma_mask = DMA_BIT_MASK(32);
static struct resource exynos5_gsc0_resource[] = {
[0] = {
.start = EXYNOS5_PA_GSC0,
.end = EXYNOS5_PA_GSC0 + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = IRQ_GSC0,
.end = IRQ_GSC0,
.flags = IORESOURCE_IRQ,
},
};
struct platform_device exynos5_device_gsc0 = {
.name = "exynos-gsc",
.id = 0,
.num_resources = ARRAY_SIZE(exynos5_gsc0_resource),
.resource = exynos5_gsc0_resource,
.dev = {
.dma_mask = &exynos5_gsc_dma_mask,
.coherent_dma_mask = DMA_BIT_MASK(32),
},
};
static struct resource exynos5_gsc1_resource[] = {
[0] = {
.start = EXYNOS5_PA_GSC1,
.end = EXYNOS5_PA_GSC1 + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = IRQ_GSC1,
.end = IRQ_GSC1,
.flags = IORESOURCE_IRQ,
},
};
struct platform_device exynos5_device_gsc1 = {
.name = "exynos-gsc",
.id = 1,
.num_resources = ARRAY_SIZE(exynos5_gsc1_resource),
.resource = exynos5_gsc1_resource,
.dev = {
.dma_mask = &exynos5_gsc_dma_mask,
.coherent_dma_mask = DMA_BIT_MASK(32),
},
};
static struct resource exynos5_gsc2_resource[] = {
[0] = {
.start = EXYNOS5_PA_GSC2,
.end = EXYNOS5_PA_GSC2 + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = IRQ_GSC2,
.end = IRQ_GSC2,
.flags = IORESOURCE_IRQ,
},
};
struct platform_device exynos5_device_gsc2 = {
.name = "exynos-gsc",
.id = 2,
.num_resources = ARRAY_SIZE(exynos5_gsc2_resource),
.resource = exynos5_gsc2_resource,
.dev = {
.dma_mask = &exynos5_gsc_dma_mask,
.coherent_dma_mask = DMA_BIT_MASK(32),
},
};
static struct resource exynos5_gsc3_resource[] = {
[0] = {
.start = EXYNOS5_PA_GSC3,
.end = EXYNOS5_PA_GSC3 + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = IRQ_GSC3,
.end = IRQ_GSC3,
.flags = IORESOURCE_IRQ,
},
};
struct platform_device exynos5_device_gsc3 = {
.name = "exynos-gsc",
.id = 3,
.num_resources = ARRAY_SIZE(exynos5_gsc3_resource),
.resource = exynos5_gsc3_resource,
.dev = {
.dma_mask = &exynos5_gsc_dma_mask,
.coherent_dma_mask = DMA_BIT_MASK(32),
},
};
struct exynos_platform_gscaler exynos_gsc0_default_data __initdata;
struct exynos_platform_gscaler exynos_gsc1_default_data __initdata;
struct exynos_platform_gscaler exynos_gsc2_default_data __initdata;
struct exynos_platform_gscaler exynos_gsc3_default_data __initdata;
|