forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/powerpc/platforms/85xx/mpc85xx_rdb.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * MPC85xx RDB Board Setup
34 *
45 * Copyright 2009,2012-2013 Freescale Semiconductor Inc.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License as published by the
8
- * Free Software Foundation; either version 2 of the License, or (at your
9
- * option) any later version.
106 */
117
128 #include <linux/stddef.h>
....@@ -27,7 +23,6 @@
2723 #include <asm/udbg.h>
2824 #include <asm/mpic.h>
2925 #include <soc/fsl/qe/qe.h>
30
-#include <soc/fsl/qe/qe_ic.h>
3126
3227 #include <sysdev/fsl_soc.h>
3328 #include <sysdev/fsl_pci.h>
....@@ -48,10 +43,6 @@
4843 {
4944 struct mpic *mpic;
5045
51
-#ifdef CONFIG_QUICC_ENGINE
52
- struct device_node *np;
53
-#endif
54
-
5546 if (of_machine_is_compatible("fsl,MPC85XXRDB-CAMP")) {
5647 mpic = mpic_alloc(NULL, 0, MPIC_NO_RESET |
5748 MPIC_BIG_ENDIAN |
....@@ -66,18 +57,6 @@
6657
6758 BUG_ON(mpic == NULL);
6859 mpic_init(mpic);
69
-
70
-#ifdef CONFIG_QUICC_ENGINE
71
- np = of_find_compatible_node(NULL, NULL, "fsl,qe-ic");
72
- if (np) {
73
- qe_ic_init(np, 0, qe_ic_cascade_low_mpic,
74
- qe_ic_cascade_high_mpic);
75
- of_node_put(np);
76
-
77
- } else
78
- pr_err("%s: Could not find qe-ic node\n", __func__);
79
-#endif
80
-
8160 }
8261
8362 /*
....@@ -93,7 +72,6 @@
9372 fsl_pci_assign_primary();
9473
9574 #ifdef CONFIG_QUICC_ENGINE
96
- mpc85xx_qe_init();
9775 mpc85xx_qe_par_io_init();
9876 #if defined(CONFIG_UCC_GETH) || defined(CONFIG_SERIAL_QE)
9977 if (machine_is(p1025_rdb)) {