aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/devices-iommu.c
diff options
context:
space:
mode:
authorStepan Moskovchenko <stepanm@codeaurora.org>2011-02-24 21:00:42 -0500
committerDavid Brown <davidb@codeaurora.org>2011-03-08 17:40:59 -0500
commita43d8c101eb71bf4527dd7f36a34a5a502894f38 (patch)
treea00145fb4f24eca3e90edacbd9f29335c53b9c3e /arch/arm/mach-msm/devices-iommu.c
parent2e8c8ba98376459e73d03a285f5d3406b630ea2d (diff)
msm: iommu: Remove dependency on IDR
Remove the depencency on the IOMMU IDR register, as it may not be accessible depending on the security configuraton. This involves moving the NCB field of IDR into the platform data. Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/devices-iommu.c')
-rw-r--r--arch/arm/mach-msm/devices-iommu.c26
1 files changed, 19 insertions, 7 deletions
diff --git a/arch/arm/mach-msm/devices-iommu.c b/arch/arm/mach-msm/devices-iommu.c
index af97afe0bfa..24030d0da6e 100644
--- a/arch/arm/mach-msm/devices-iommu.c
+++ b/arch/arm/mach-msm/devices-iommu.c
@@ -280,50 +280,62 @@ static struct platform_device msm_root_iommu_dev = {
280 280
281static struct msm_iommu_dev jpegd_iommu = { 281static struct msm_iommu_dev jpegd_iommu = {
282 .name = "jpegd", 282 .name = "jpegd",
283 .ncb = 2,
283}; 284};
284 285
285static struct msm_iommu_dev vpe_iommu = { 286static struct msm_iommu_dev vpe_iommu = {
286 .name = "vpe" 287 .name = "vpe",
288 .ncb = 2,
287}; 289};
288 290
289static struct msm_iommu_dev mdp0_iommu = { 291static struct msm_iommu_dev mdp0_iommu = {
290 .name = "mdp0" 292 .name = "mdp0",
293 .ncb = 2,
291}; 294};
292 295
293static struct msm_iommu_dev mdp1_iommu = { 296static struct msm_iommu_dev mdp1_iommu = {
294 .name = "mdp1" 297 .name = "mdp1",
298 .ncb = 2,
295}; 299};
296 300
297static struct msm_iommu_dev rot_iommu = { 301static struct msm_iommu_dev rot_iommu = {
298 .name = "rot" 302 .name = "rot",
303 .ncb = 2,
299}; 304};
300 305
301static struct msm_iommu_dev ijpeg_iommu = { 306static struct msm_iommu_dev ijpeg_iommu = {
302 .name = "ijpeg" 307 .name = "ijpeg",
308 .ncb = 2,
303}; 309};
304 310
305static struct msm_iommu_dev vfe_iommu = { 311static struct msm_iommu_dev vfe_iommu = {
306 .name = "vfe", 312 .name = "vfe",
313 .ncb = 2,
307}; 314};
308 315
309static struct msm_iommu_dev vcodec_a_iommu = { 316static struct msm_iommu_dev vcodec_a_iommu = {
310 .name = "vcodec_a" 317 .name = "vcodec_a",
318 .ncb = 2,
311}; 319};
312 320
313static struct msm_iommu_dev vcodec_b_iommu = { 321static struct msm_iommu_dev vcodec_b_iommu = {
314 .name = "vcodec_b" 322 .name = "vcodec_b",
323 .ncb = 2,
315}; 324};
316 325
317static struct msm_iommu_dev gfx3d_iommu = { 326static struct msm_iommu_dev gfx3d_iommu = {
318 .name = "gfx3d", 327 .name = "gfx3d",
328 .ncb = 3,
319}; 329};
320 330
321static struct msm_iommu_dev gfx2d0_iommu = { 331static struct msm_iommu_dev gfx2d0_iommu = {
322 .name = "gfx2d0", 332 .name = "gfx2d0",
333 .ncb = 2,
323}; 334};
324 335
325static struct msm_iommu_dev gfx2d1_iommu = { 336static struct msm_iommu_dev gfx2d1_iommu = {
326 .name = "gfx2d1", 337 .name = "gfx2d1",
338 .ncb = 2,
327}; 339};
328 340
329static struct platform_device msm_device_iommu_jpegd = { 341static struct platform_device msm_device_iommu_jpegd = {