hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/arch/powerpc/platforms/85xx/corenet_generic.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Corenet based SoC DS Setup
34 *
45 * Maintained by Kumar Gala (see MAINTAINERS for contact information)
56 *
67 * Copyright 2009-2011 Freescale Semiconductor Inc.
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License as published by the
10
- * Free Software Foundation; either version 2 of the License, or (at your
11
- * option) any later version.
128 */
139
1410 #include <linux/kernel.h>
....@@ -16,18 +12,18 @@
1612 #include <linux/kdev_t.h>
1713 #include <linux/delay.h>
1814 #include <linux/interrupt.h>
15
+#include <linux/pgtable.h>
1916
2017 #include <asm/time.h>
2118 #include <asm/machdep.h>
2219 #include <asm/pci-bridge.h>
23
-#include <asm/pgtable.h>
2420 #include <asm/ppc-pci.h>
2521 #include <mm/mmu_decl.h>
2622 #include <asm/prom.h>
2723 #include <asm/udbg.h>
2824 #include <asm/mpic.h>
2925 #include <asm/ehv_pic.h>
30
-#include <soc/fsl/qe/qe_ic.h>
26
+#include <asm/swiotlb.h>
3127
3228 #include <linux/of_platform.h>
3329 #include <sysdev/fsl_soc.h>
....@@ -41,8 +37,6 @@
4137 unsigned int flags = MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU |
4238 MPIC_NO_RESET;
4339
44
- struct device_node *np;
45
-
4640 if (ppc_md.get_irq == mpic_get_coreint_irq)
4741 flags |= MPIC_ENABLE_COREINT;
4842
....@@ -50,13 +44,6 @@
5044 BUG_ON(mpic == NULL);
5145
5246 mpic_init(mpic);
53
-
54
- np = of_find_compatible_node(NULL, NULL, "fsl,qe-ic");
55
- if (np) {
56
- qe_ic_init(np, 0, qe_ic_cascade_low_mpic,
57
- qe_ic_cascade_high_mpic);
58
- of_node_put(np);
59
- }
6047 }
6148
6249 /*
....@@ -68,19 +55,7 @@
6855
6956 swiotlb_detect_4g();
7057
71
-#if defined(CONFIG_FSL_PCI) && defined(CONFIG_ZONE_DMA32)
72
- /*
73
- * Inbound windows don't cover the full lower 4 GiB
74
- * due to conflicts with PCICSRBAR and outbound windows,
75
- * so limit the DMA32 zone to 2 GiB, to allow consistent
76
- * allocations to succeed.
77
- */
78
- limit_zone_pfn(ZONE_DMA32, 1UL << (31 - PAGE_SHIFT));
79
-#endif
80
-
8158 pr_info("%s board\n", ppc_md.name);
82
-
83
- mpc85xx_qe_init();
8459 }
8560
8661 static const struct of_device_id of_device_ids[] = {
....@@ -233,7 +208,3 @@
233208 };
234209
235210 machine_arch_initcall(corenet_generic, corenet_gen_publish_devices);
236
-
237
-#ifdef CONFIG_SWIOTLB
238
-machine_arch_initcall(corenet_generic, swiotlb_setup_bus_notifier);
239
-#endif