@@ -126,8 +126,6 @@ static int apple_isp_init_iommu(struct apple_isp *isp)
126126
127127 drm_mm_init (& isp -> iovad , isp -> fw .heap_top , vm_size - heap_base );
128128
129- apple_isp_iommu_sync_ttbr (isp );
130-
131129 return 0 ;
132130}
133131
@@ -140,7 +138,6 @@ static int apple_isp_probe(struct platform_device *pdev)
140138{
141139 struct device * dev = & pdev -> dev ;
142140 struct apple_isp * isp ;
143- struct resource * res ;
144141 int err ;
145142
146143 isp = devm_kzalloc (dev , sizeof (* isp ), GFP_KERNEL );
@@ -176,31 +173,6 @@ static int apple_isp_probe(struct platform_device *pdev)
176173 goto detach_genpd ;
177174 }
178175
179- res = platform_get_resource_byname (pdev , IORESOURCE_MEM , "dart0" );
180- if (!res ) {
181- err = - ENODEV ;
182- goto detach_genpd ;
183- }
184-
185- /* Simply ioremap since it's a shared register zone */
186- isp -> dart0 = devm_ioremap (dev , res -> start , resource_size (res ));
187- if (IS_ERR (isp -> dart0 )) {
188- err = PTR_ERR (isp -> dart0 );
189- goto detach_genpd ;
190- }
191-
192- isp -> dart1 = devm_platform_ioremap_resource_byname (pdev , "dart1" );
193- if (IS_ERR (isp -> dart1 )) {
194- err = PTR_ERR (isp -> dart1 );
195- goto detach_genpd ;
196- }
197-
198- isp -> dart2 = devm_platform_ioremap_resource_byname (pdev , "dart2" );
199- if (IS_ERR (isp -> dart2 )) {
200- err = PTR_ERR (isp -> dart2 );
201- goto detach_genpd ;
202- }
203-
204176 isp -> irq = platform_get_irq (pdev , 0 );
205177 if (isp -> irq < 0 ) {
206178 err = isp -> irq ;
@@ -270,12 +242,6 @@ static void apple_isp_remove(struct platform_device *pdev)
270242 return 0 ;
271243}
272244
273- /* T8020/T6000 registers */
274- #define DART_T8020_STREAM_COMMAND 0x20
275- #define DART_T8020_STREAM_SELECT 0x34
276- #define DART_T8020_TTBR 0x200
277- #define DART_T8020_STREAM_COMMAND_INVALIDATE BIT(20)
278-
279245static const struct apple_isp_hw apple_isp_hw_t8103 = {
280246 .pmu_base = 0x23b704000 ,
281247
@@ -296,11 +262,6 @@ static const struct apple_isp_hw apple_isp_hw_t8103 = {
296262 .bandwidth_base = 0x23bc3c000 ,
297263 .bandwidth_bit = 0x0 ,
298264 .bandwidth_size = 0x4 ,
299-
300- .stream_command = DART_T8020_STREAM_COMMAND ,
301- .stream_select = DART_T8020_STREAM_SELECT ,
302- .ttbr = DART_T8020_TTBR ,
303- .stream_command_invalidate = DART_T8020_STREAM_COMMAND_INVALIDATE ,
304265};
305266
306267static const struct apple_isp_hw apple_isp_hw_t6000 = {
@@ -323,11 +284,6 @@ static const struct apple_isp_hw apple_isp_hw_t6000 = {
323284 .bandwidth_base = 0x0 ,
324285 .bandwidth_bit = 0x0 ,
325286 .bandwidth_size = 0x8 ,
326-
327- .stream_command = DART_T8020_STREAM_COMMAND ,
328- .stream_select = DART_T8020_STREAM_SELECT ,
329- .ttbr = DART_T8020_TTBR ,
330- .stream_command_invalidate = DART_T8020_STREAM_COMMAND_INVALIDATE ,
331287};
332288
333289static const struct apple_isp_hw apple_isp_hw_t8110 = {
@@ -350,11 +306,6 @@ static const struct apple_isp_hw apple_isp_hw_t8110 = {
350306 .bandwidth_base = 0x0 ,
351307 .bandwidth_bit = 0x0 ,
352308 .bandwidth_size = 0x8 ,
353-
354- .stream_command = DART_T8020_STREAM_COMMAND , // TODO
355- .stream_select = DART_T8020_STREAM_SELECT ,
356- .ttbr = DART_T8020_TTBR ,
357- .stream_command_invalidate = DART_T8020_STREAM_COMMAND_INVALIDATE ,
358309};
359310
360311static const struct of_device_id apple_isp_of_match [] = {
@@ -366,19 +317,11 @@ MODULE_DEVICE_TABLE(of, apple_isp_of_match);
366317
367318static __maybe_unused int apple_isp_suspend (struct device * dev )
368319{
369- struct apple_isp * isp = dev_get_drvdata (dev );
370-
371- apple_isp_iommu_invalidate_tlb (isp );
372-
373320 return 0 ;
374321}
375322
376323static __maybe_unused int apple_isp_resume (struct device * dev )
377324{
378- struct apple_isp * isp = dev_get_drvdata (dev );
379-
380- apple_isp_iommu_sync_ttbr (isp );
381-
382325 return 0 ;
383326}
384327DEFINE_RUNTIME_DEV_PM_OPS (apple_isp_pm_ops , apple_isp_suspend , apple_isp_resume , NULL );
0 commit comments