Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: arch/arm/plat-s5p/devs.c

Issue 2010012: ARM: S5P: Add TV out device definition for Samsung S5P SoCs. (Closed) Base URL: swsolcc@12.23.106.100:kernel-samsung.git
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* linux/arch/arm/plat-s5p/devs.c 1 /* linux/arch/arm/plat-s5p/devs.c
2 * 2 *
3 * Copyright (c) 2010 Samsung Electronics Co., Ltd. 3 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com/ 4 * http://www.samsung.com/
5 * 5 *
6 * Base S5P platform device definitions 6 * Base S5P platform device definitions
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify 8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as 9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation. 10 * published by the Free Software Foundation.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 { 141 {
142 struct s3c_platform_mfc *set = &s3c_mfc_def_platdata; 142 struct s3c_platform_mfc *set = &s3c_mfc_def_platdata;
143 143
144 if (pd) { 144 if (pd) {
145 set->buf_phy_base[0] = pd->buf_phy_base[0]; 145 set->buf_phy_base[0] = pd->buf_phy_base[0];
146 set->buf_phy_base[1] = pd->buf_phy_base[1]; 146 set->buf_phy_base[1] = pd->buf_phy_base[1];
147 set->buf_phy_size[0] = pd->buf_phy_size[0]; 147 set->buf_phy_size[0] = pd->buf_phy_size[0];
148 set->buf_phy_size[1] = pd->buf_phy_size[1]; 148 set->buf_phy_size[1] = pd->buf_phy_size[1];
149 } 149 }
150 } 150 }
151
152 static struct resource s5p_tvout_resources[] = {
153 [0] = {
154 .start = S5P_PA_TVENC,
155 .end = S5P_PA_TVENC + S5P_SZ_TVENC - 1,
156 .flags = IORESOURCE_MEM,
157 },
158 [1] = {
159 .start = S5P_PA_VP,
160 .end = S5P_PA_VP + S5P_SZ_VP - 1,
161 .flags = IORESOURCE_MEM,
162 },
163 [2] = {
164 .start = S5P_PA_MIXER,
165 .end = S5P_PA_MIXER + S5P_SZ_MIXER - 1,
166 .flags = IORESOURCE_MEM,
167 },
168 [3] = {
169 .start = S5P_PA_HDMI,
170 .end = S5P_PA_HDMI + S5P_SZ_HDMI - 1,
171 .flags = IORESOURCE_MEM,
172 },
173 [4] = {
174 .start = S5P_I2C_HDMI_PHY,
175 .end = S5P_I2C_HDMI_PHY + S5P_I2C_HDMI_SZ_PHY - 1,
176 .flags = IORESOURCE_MEM,
177 },
178 [5] = {
179 .start = IRQ_MIXER,
180 .end = IRQ_MIXER,
181 .flags = IORESOURCE_IRQ,
182 },
183 [6] = {
184 .start = IRQ_HDMI,
185 .end = IRQ_HDMI,
186 .flags = IORESOURCE_IRQ,
187 },
188 [7] = {
189 .start = IRQ_TVENC,
190 .end = IRQ_TVENC,
191 .flags = IORESOURCE_IRQ,
192 },
193 [8] = {
194 .start = IRQ_EINT5,
195 .end = IRQ_EINT5,
196 .flags = IORESOURCE_IRQ,
197 }
198 };
199
200 static u64 tvfb_dma_mask = 0xffffffffUL;
201
202 struct platform_device s5p_device_tvout = {
203 .name = "s5p-tvout",
204 .id = -1,
205 .num_resources = ARRAY_SIZE(s5p_tvout_resources),
206 .resource = s5p_tvout_resources,
207 .dev = {
208 .dma_mask = &tvfb_dma_mask,
209 .coherent_dma_mask = 0xffffffffUL
210 }
211 };
212
213 static struct resource s5p_cec_resources[] = {
214 [0] = {
215 .start = S5P_PA_CEC,
216 .end = S5P_PA_CEC + S5P_SZ_CEC - 1,
217 .flags = IORESOURCE_MEM,
218 },
219 [1] = {
220 .start = IRQ_CEC,
221 .end = IRQ_CEC,
222 .flags = IORESOURCE_IRQ,
223 },
224 };
225
226 struct platform_device s5p_device_cec = {
227 .name = "s5p-cec",
228 .id = -1,
229 .num_resources = ARRAY_SIZE(s5p_cec_resources),
230 .resource = s5p_cec_resources,
231 };
232
233 struct platform_device s5p_device_hpd = {
234 .name = "s5p-hpd",
235 .id = -1,
236 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698