forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/powerpc/platforms/85xx/twr_p102x.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright 2010-2011, 2013 Freescale Semiconductor, Inc.
34 *
....@@ -5,11 +6,6 @@
56 *
67 * Description:
78 * TWR-P102x Board Setup
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms of the GNU General Public License as published by the
11
- * Free Software Foundation; either version 2 of the License, or (at your
12
- * option) any later version.
139 */
1410
1511 #include <linux/kernel.h>
....@@ -23,7 +19,6 @@
2319 #include <asm/udbg.h>
2420 #include <asm/mpic.h>
2521 #include <soc/fsl/qe/qe.h>
26
-#include <soc/fsl/qe/qe_ic.h>
2722
2823 #include <sysdev/fsl_soc.h>
2924 #include <sysdev/fsl_pci.h>
....@@ -35,26 +30,12 @@
3530 {
3631 struct mpic *mpic;
3732
38
-#ifdef CONFIG_QUICC_ENGINE
39
- struct device_node *np;
40
-#endif
41
-
4233 mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN |
4334 MPIC_SINGLE_DEST_CPU,
4435 0, 256, " OpenPIC ");
4536
4637 BUG_ON(mpic == NULL);
4738 mpic_init(mpic);
48
-
49
-#ifdef CONFIG_QUICC_ENGINE
50
- np = of_find_compatible_node(NULL, NULL, "fsl,qe-ic");
51
- if (np) {
52
- qe_ic_init(np, 0, qe_ic_cascade_low_mpic,
53
- qe_ic_cascade_high_mpic);
54
- of_node_put(np);
55
- } else
56
- pr_err("Could not find qe-ic node\n");
57
-#endif
5839 }
5940
6041 /* ************************************************************************
....@@ -64,10 +45,6 @@
6445 */
6546 static void __init twr_p1025_setup_arch(void)
6647 {
67
-#ifdef CONFIG_QUICC_ENGINE
68
- struct device_node *np;
69
-#endif
70
-
7148 if (ppc_md.progress)
7249 ppc_md.progress("twr_p1025_setup_arch()", 0);
7350
....@@ -76,12 +53,12 @@
7653 fsl_pci_assign_primary();
7754
7855 #ifdef CONFIG_QUICC_ENGINE
79
- mpc85xx_qe_init();
8056 mpc85xx_qe_par_io_init();
8157
8258 #if IS_ENABLED(CONFIG_UCC_GETH) || IS_ENABLED(CONFIG_SERIAL_QE)
8359 if (machine_is(twr_p1025)) {
8460 struct ccsr_guts __iomem *guts;
61
+ struct device_node *np;
8562
8663 np = of_find_compatible_node(NULL, NULL, "fsl,p1021-guts");
8764 if (np) {