diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-07-16 08:55:18 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-10-12 13:04:39 -0400 |
commit | f96885b479b904afd8c33f44623f2a9ff916033c (patch) | |
tree | 82f7b2410dd62547944ff0e543505ed176264a9c | |
parent | 049e6dde7e57f0054fdc49102e7ef4830c698b46 (diff) |
ARM: OMAP2+: Remove legacy OMAP3 ISP instantiation
The OMAP3 ISP is now fully supported in DT, remove its instantiation
from C code.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 53 | ||||
-rw-r--r-- | arch/arm/mach-omap2/devices.h | 19 |
2 files changed, 0 insertions, 72 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index a69bd67e9028..9374da313e8e 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -33,7 +33,6 @@ | |||
33 | #include "common.h" | 33 | #include "common.h" |
34 | #include "mux.h" | 34 | #include "mux.h" |
35 | #include "control.h" | 35 | #include "control.h" |
36 | #include "devices.h" | ||
37 | #include "display.h" | 36 | #include "display.h" |
38 | 37 | ||
39 | #define L3_MODULES_MAX_LEN 12 | 38 | #define L3_MODULES_MAX_LEN 12 |
@@ -67,58 +66,6 @@ static int __init omap3_l3_init(void) | |||
67 | } | 66 | } |
68 | omap_postcore_initcall(omap3_l3_init); | 67 | omap_postcore_initcall(omap3_l3_init); |
69 | 68 | ||
70 | #if defined(CONFIG_IOMMU_API) | ||
71 | |||
72 | #include <linux/platform_data/iommu-omap.h> | ||
73 | |||
74 | static struct resource omap3isp_resources[] = { | ||
75 | { | ||
76 | .start = OMAP3430_ISP_BASE, | ||
77 | .end = OMAP3430_ISP_BASE + 0x12fc, | ||
78 | .flags = IORESOURCE_MEM, | ||
79 | }, | ||
80 | { | ||
81 | .start = OMAP3430_ISP_BASE2, | ||
82 | .end = OMAP3430_ISP_BASE2 + 0x0600, | ||
83 | .flags = IORESOURCE_MEM, | ||
84 | }, | ||
85 | { | ||
86 | .start = 24 + OMAP_INTC_START, | ||
87 | .flags = IORESOURCE_IRQ, | ||
88 | } | ||
89 | }; | ||
90 | |||
91 | static struct platform_device omap3isp_device = { | ||
92 | .name = "omap3isp", | ||
93 | .id = -1, | ||
94 | .num_resources = ARRAY_SIZE(omap3isp_resources), | ||
95 | .resource = omap3isp_resources, | ||
96 | }; | ||
97 | |||
98 | static struct omap_iommu_arch_data omap3_isp_iommu = { | ||
99 | .name = "mmu_isp", | ||
100 | }; | ||
101 | |||
102 | int omap3_init_camera(struct isp_platform_data *pdata) | ||
103 | { | ||
104 | if (of_have_populated_dt()) | ||
105 | omap3_isp_iommu.name = "480bd400.mmu"; | ||
106 | |||
107 | omap3isp_device.dev.platform_data = pdata; | ||
108 | omap3isp_device.dev.archdata.iommu = &omap3_isp_iommu; | ||
109 | |||
110 | return platform_device_register(&omap3isp_device); | ||
111 | } | ||
112 | |||
113 | #else /* !CONFIG_IOMMU_API */ | ||
114 | |||
115 | int omap3_init_camera(struct isp_platform_data *pdata) | ||
116 | { | ||
117 | return 0; | ||
118 | } | ||
119 | |||
120 | #endif | ||
121 | |||
122 | #if defined(CONFIG_OMAP2PLUS_MBOX) || defined(CONFIG_OMAP2PLUS_MBOX_MODULE) | 69 | #if defined(CONFIG_OMAP2PLUS_MBOX) || defined(CONFIG_OMAP2PLUS_MBOX_MODULE) |
123 | static inline void __init omap_init_mbox(void) | 70 | static inline void __init omap_init_mbox(void) |
124 | { | 71 | { |
diff --git a/arch/arm/mach-omap2/devices.h b/arch/arm/mach-omap2/devices.h deleted file mode 100644 index f61eb6e5d136..000000000000 --- a/arch/arm/mach-omap2/devices.h +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-omap2/devices.h | ||
3 | * | ||
4 | * OMAP2 platform device setup/initialization | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | */ | ||
11 | |||
12 | #ifndef __ARCH_ARM_MACH_OMAP_DEVICES_H | ||
13 | #define __ARCH_ARM_MACH_OMAP_DEVICES_H | ||
14 | |||
15 | struct isp_platform_data; | ||
16 | |||
17 | int omap3_init_camera(struct isp_platform_data *pdata); | ||
18 | |||
19 | #endif | ||