Lines Matching +full:mips +full:- +full:gic
1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Author: Paul Burton <paul.burton@mips.com>
17 #include <asm/yamon-dt.h>
56 /* leave the GIC node intact if a GIC is present */ in remove_gic()
61 gic_off = fdt_node_offset_by_compatible(fdt, -1, "mti,gic"); in remove_gic()
63 pr_err("unable to find DT GIC node: %d\n", gic_off); in remove_gic()
69 pr_err("unable to nop GIC node\n"); in remove_gic()
73 cpu_off = fdt_node_offset_by_compatible(fdt, -1, in remove_gic()
74 "mti,cpu-interrupt-controller"); in remove_gic()
83 return -EINVAL; in remove_gic()
86 uart_off = fdt_node_offset_by_compatible(fdt, -1, "ns16550a"); in remove_gic()
88 err = fdt_setprop_u32(fdt, uart_off, "interrupt-parent", in remove_gic()
91 pr_warn("unable to set UART interrupt-parent: %d\n", in remove_gic()
107 if (uart_off != -FDT_ERR_NOTFOUND) { in remove_gic()
112 eth_off = fdt_node_offset_by_compatible(fdt, -1, "smsc,lan9115"); in remove_gic()
118 err = fdt_setprop_u32(fdt, eth_off, "interrupt-parent", cpu_phandle); in remove_gic()
120 pr_err("unable to set ethernet interrupt-parent: %d\n", err); in remove_gic()
130 ehci_off = fdt_node_offset_by_compatible(fdt, -1, "generic-ehci"); in remove_gic()
136 err = fdt_setprop_u32(fdt, ehci_off, "interrupt-parent", cpu_phandle); in remove_gic()
138 pr_err("unable to set EHCI interrupt-parent: %d\n", err); in remove_gic()
154 { remove_gic, "remove GIC when not present" },
169 BUG_ON(fdt_node_check_compatible(fdt, 0, "mti,sead-3")); in sead3_fixup_fdt()