.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2010-2011, 2013 Freescale Semiconductor, Inc. |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * |
---|
6 | 7 | * Description: |
---|
7 | 8 | * 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. |
---|
13 | 9 | */ |
---|
14 | 10 | |
---|
15 | 11 | #include <linux/kernel.h> |
---|
.. | .. |
---|
23 | 19 | #include <asm/udbg.h> |
---|
24 | 20 | #include <asm/mpic.h> |
---|
25 | 21 | #include <soc/fsl/qe/qe.h> |
---|
26 | | -#include <soc/fsl/qe/qe_ic.h> |
---|
27 | 22 | |
---|
28 | 23 | #include <sysdev/fsl_soc.h> |
---|
29 | 24 | #include <sysdev/fsl_pci.h> |
---|
.. | .. |
---|
35 | 30 | { |
---|
36 | 31 | struct mpic *mpic; |
---|
37 | 32 | |
---|
38 | | -#ifdef CONFIG_QUICC_ENGINE |
---|
39 | | - struct device_node *np; |
---|
40 | | -#endif |
---|
41 | | - |
---|
42 | 33 | mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN | |
---|
43 | 34 | MPIC_SINGLE_DEST_CPU, |
---|
44 | 35 | 0, 256, " OpenPIC "); |
---|
45 | 36 | |
---|
46 | 37 | BUG_ON(mpic == NULL); |
---|
47 | 38 | 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 |
---|
58 | 39 | } |
---|
59 | 40 | |
---|
60 | 41 | /* ************************************************************************ |
---|
.. | .. |
---|
64 | 45 | */ |
---|
65 | 46 | static void __init twr_p1025_setup_arch(void) |
---|
66 | 47 | { |
---|
67 | | -#ifdef CONFIG_QUICC_ENGINE |
---|
68 | | - struct device_node *np; |
---|
69 | | -#endif |
---|
70 | | - |
---|
71 | 48 | if (ppc_md.progress) |
---|
72 | 49 | ppc_md.progress("twr_p1025_setup_arch()", 0); |
---|
73 | 50 | |
---|
.. | .. |
---|
76 | 53 | fsl_pci_assign_primary(); |
---|
77 | 54 | |
---|
78 | 55 | #ifdef CONFIG_QUICC_ENGINE |
---|
79 | | - mpc85xx_qe_init(); |
---|
80 | 56 | mpc85xx_qe_par_io_init(); |
---|
81 | 57 | |
---|
82 | 58 | #if IS_ENABLED(CONFIG_UCC_GETH) || IS_ENABLED(CONFIG_SERIAL_QE) |
---|
83 | 59 | if (machine_is(twr_p1025)) { |
---|
84 | 60 | struct ccsr_guts __iomem *guts; |
---|
| 61 | + struct device_node *np; |
---|
85 | 62 | |
---|
86 | 63 | np = of_find_compatible_node(NULL, NULL, "fsl,p1021-guts"); |
---|
87 | 64 | if (np) { |
---|