Lines Matching +full:mips +full:- +full:gic

1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Author: Paul Burton <paul.burton@mips.com>
15 #include <asm/mips-boards/generic.h>
16 #include <asm/mips-boards/malta.h>
17 #include <asm/mips-cps.h>
91 size -= size_preio; in gen_fdt_mem_array()
99 * obscures 256MB from 0x10000000-0x1fffffff. in gen_fdt_mem_array()
105 size -= SZ_256M; in gen_fdt_mem_array()
115 * obscures 256MB from 0x10000000-0x1fffffff in the low alias in gen_fdt_mem_array()
169 * SOC-it swaps, or perhaps doesn't swap, when DMA'ing in append_memory()
172 physical_memsize -= PAGE_SIZE; in append_memory()
221 err = fdt_setprop(fdt, mem_off, "linux,usable-memory", mem_array, in append_memory()
224 panic("Unable to set linux,usable-memory property: %d", err); in append_memory()
233 /* if we have a CM which reports a GIC is present, leave the DT alone */ in remove_gic()
240 * On systems using the RocIT system controller a GIC may be in remove_gic()
247 /* enable the GIC at the system controller level */ in remove_gic()
254 gic_off = fdt_node_offset_by_compatible(fdt, -1, "mti,gic"); in remove_gic()
256 pr_warn("malta-dtshim: unable to find DT GIC node: %d\n", in remove_gic()
263 pr_warn("malta-dtshim: unable to nop GIC node\n"); in remove_gic()
265 i8259_off = fdt_node_offset_by_compatible(fdt, -1, "intel,i8259"); in remove_gic()
267 pr_warn("malta-dtshim: unable to find DT i8259 node: %d\n", in remove_gic()
272 cpu_off = fdt_node_offset_by_compatible(fdt, -1, in remove_gic()
273 "mti,cpu-interrupt-controller"); in remove_gic()
275 pr_warn("malta-dtshim: unable to find CPU intc node: %d\n", in remove_gic()
282 pr_warn("malta-dtshim: unable to get CPU intc phandle\n"); in remove_gic()
286 err = fdt_setprop_u32(fdt, i8259_off, "interrupt-parent", cpu_phandle); in remove_gic()
288 pr_warn("malta-dtshim: unable to set i8259 interrupt-parent: %d\n", in remove_gic()
295 pr_warn("malta-dtshim: unable to set i8259 interrupts: %d\n", in remove_gic()