| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/interrupt-controller/ |
| D | mti,gic.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/mti,gic.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MIPS Global Interrupt Controller 10 - Paul Burton <paulburton@kernel.org> 11 - Thomas Bogendoerfer <tsbogend@alpha.franken.de> 14 The MIPS GIC routes external interrupts to individual VPEs and IRQ pins. 15 It also supports local (per-processor) interrupts and software-generated 16 interrupts which can be used as IPIs. The GIC also includes a free-running [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/interrupt-controller/ |
| D | mips-gic.txt | 1 MIPS Global Interrupt Controller (GIC) 3 The MIPS GIC routes external interrupts to individual VPEs and IRQ pins. 4 It also supports local (per-processor) interrupts and software-generated 5 interrupts which can be used as IPIs. The GIC also includes a free-running 6 global timer, per-CPU count/compare timers, and a watchdog. 9 - compatible : Should be "mti,gic". 10 - interrupt-controller : Identifies the node as an interrupt controller 11 - #interrupt-cells : Specifies the number of cells needed to encode an 13 - The first cell is the type of interrupt, local or shared. 14 See <include/dt-bindings/interrupt-controller/mips-gic.h>. [all …]
|
| /kernel/linux/linux-5.10/drivers/clocksource/ |
| D | mips-gic-timer.c | 6 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. 9 #define pr_fmt(fmt) "mips-gic-timer: " fmt 22 #include <asm/mips-cps.h> 59 int cpu = cpumask_first(evt->cpumask); in gic_next_event() 71 res = ((int)(gic_read_count() - cnt) >= 0) ? -ETIME : 0; in gic_next_event() 80 cd->event_handler(cd); in gic_compare_interrupt() 94 cd->name = "MIPS GIC"; in gic_clockevent_cpu_init() 95 cd->features = CLOCK_EVT_FEAT_ONESHOT | in gic_clockevent_cpu_init() 98 cd->rating = 350; in gic_clockevent_cpu_init() 99 cd->irq = gic_timer_irq; in gic_clockevent_cpu_init() [all …]
|
| /kernel/linux/linux-4.19/drivers/clocksource/ |
| D | mips-gic-timer.c | 6 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. 9 #define pr_fmt(fmt) "mips-gic-timer: " fmt 21 #include <asm/mips-cps.h> 45 int cpu = cpumask_first(evt->cpumask); in gic_next_event() 57 res = ((int)(gic_read_count() - cnt) >= 0) ? -ETIME : 0; in gic_next_event() 66 cd->event_handler(cd); in gic_compare_interrupt() 80 cd->name = "MIPS GIC"; in gic_clockevent_cpu_init() 81 cd->features = CLOCK_EVT_FEAT_ONESHOT | in gic_clockevent_cpu_init() 84 cd->rating = 350; in gic_clockevent_cpu_init() 85 cd->irq = gic_timer_irq; in gic_clockevent_cpu_init() [all …]
|
| /kernel/linux/linux-5.10/arch/mips/mti-malta/ |
| D | malta-time.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Carsten Langgaard, carstenl@mips.com 4 * Copyright (C) 1999,2000 MIPS Technologies, Inc. All rights reserved. 6 * Setting up the clock on the MIPS boards. 28 #include <asm/mc146818-time.h> 30 #include <asm/mips-cps.h> 32 #include <asm/mips-boards/generic.h> 33 #include <asm/mips-boards/maltaint.h> 54 freq -= freq % (amount*2); in freqround() 59 * Estimate CPU and GIC frequencies. [all …]
|
| D | malta-dtshim.c | 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() [all …]
|
| /kernel/linux/linux-4.19/drivers/irqchip/ |
| D | irq-mips-gic.c | 6 * Copyright (C) 2008 Ralf Baechle (ralf@linux-mips.org) 7 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. 10 #define pr_fmt(fmt) "irq-mips-gic: " fmt 24 #include <asm/mips-cps.h> 28 #include <dt-bindings/interrupt-controller/mips-gic.h> 33 /* Add 2 to convert GIC CPU pin to core interrupt */ 36 /* Mapped interrupt to pin X, then GIC will generate the vector (X+1). */ 39 /* Convert between local/shared IRQ number and GIC HW IRQ number. */ 42 #define GIC_HWIRQ_TO_LOCAL(x) ((x) - GIC_LOCAL_HWIRQ_BASE) 45 #define GIC_HWIRQ_TO_SHARED(x) ((x) - GIC_SHARED_HWIRQ_BASE) [all …]
|
| D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 obj-$(CONFIG_IRQCHIP) += irqchip.o 4 obj-$(CONFIG_ALPINE_MSI) += irq-alpine-msi.o 5 obj-$(CONFIG_ATH79) += irq-ath79-cpu.o 6 obj-$(CONFIG_ATH79) += irq-ath79-misc.o 7 obj-$(CONFIG_ARCH_BCM2835) += irq-bcm2835.o 8 obj-$(CONFIG_ARCH_BCM2835) += irq-bcm2836.o 9 obj-$(CONFIG_ARCH_EXYNOS) += exynos-combiner.o 10 obj-$(CONFIG_FARADAY_FTINTC010) += irq-ftintc010.o 11 obj-$(CONFIG_ARCH_HIP04) += irq-hip04.o [all …]
|
| /kernel/linux/linux-5.10/drivers/irqchip/ |
| D | irq-mips-gic.c | 6 * Copyright (C) 2008 Ralf Baechle (ralf@linux-mips.org) 7 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. 10 #define pr_fmt(fmt) "irq-mips-gic: " fmt 24 #include <asm/mips-cps.h> 28 #include <dt-bindings/interrupt-controller/mips-gic.h> 33 /* Add 2 to convert GIC CPU pin to core interrupt */ 36 /* Mapped interrupt to pin X, then GIC will generate the vector (X+1). */ 39 /* Convert between local/shared IRQ number and GIC HW IRQ number. */ 42 #define GIC_HWIRQ_TO_LOCAL(x) ((x) - GIC_LOCAL_HWIRQ_BASE) 45 #define GIC_HWIRQ_TO_SHARED(x) ((x) - GIC_SHARED_HWIRQ_BASE) [all …]
|
| D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 obj-$(CONFIG_IRQCHIP) += irqchip.o 4 obj-$(CONFIG_AL_FIC) += irq-al-fic.o 5 obj-$(CONFIG_ALPINE_MSI) += irq-alpine-msi.o 6 obj-$(CONFIG_ATH79) += irq-ath79-cpu.o 7 obj-$(CONFIG_ATH79) += irq-ath79-misc.o 8 obj-$(CONFIG_ARCH_BCM2835) += irq-bcm2835.o 9 obj-$(CONFIG_ARCH_BCM2835) += irq-bcm2836.o 10 obj-$(CONFIG_ARCH_ACTIONS) += irq-owl-sirq.o 11 obj-$(CONFIG_DAVINCI_AINTC) += irq-davinci-aintc.o [all …]
|
| /kernel/linux/linux-4.19/arch/mips/mti-malta/ |
| D | malta-time.c | 2 * Carsten Langgaard, carstenl@mips.com 3 * Copyright (C) 1999,2000 MIPS Technologies, Inc. All rights reserved. 16 * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. 18 * Setting up the clock on the MIPS boards. 40 #include <asm/mc146818-time.h> 42 #include <asm/mips-cps.h> 44 #include <asm/mips-boards/generic.h> 45 #include <asm/mips-boards/maltaint.h> 66 freq -= freq % (amount*2); in freqround() 71 * Estimate CPU and GIC frequencies. [all …]
|
| D | malta-dtshim.c | 3 * Author: Paul Burton <paul.burton@mips.com> 19 #include <asm/mips-boards/generic.h> 20 #include <asm/mips-boards/malta.h> 21 #include <asm/mips-cps.h> 95 size -= size_preio; in gen_fdt_mem_array() 103 * obscures 256MB from 0x10000000-0x1fffffff. in gen_fdt_mem_array() 109 size -= SZ_256M; in gen_fdt_mem_array() 119 * obscures 256MB from 0x10000000-0x1fffffff in the low alias in gen_fdt_mem_array() 173 * SOC-it swaps, or perhaps doesn't swap, when DMA'ing in append_memory() 176 physical_memsize -= PAGE_SIZE; in append_memory() [all …]
|
| /kernel/linux/linux-5.10/arch/mips/boot/dts/img/ |
| D | boston.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/clock/boston-clock.h> 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/interrupt-controller/mips-gic.h> 10 #address-cells = <1>; 11 #size-cells = <1>; 15 stdout-path = "uart0:115200"; 23 #address-cells = <1>; [all …]
|
| /kernel/linux/linux-4.19/arch/mips/boot/dts/img/ |
| D | boston.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/clock/boston-clock.h> 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/interrupt-controller/mips-gic.h> 10 #address-cells = <1>; 11 #size-cells = <1>; 15 stdout-path = "uart0:115200"; 23 #address-cells = <1>; [all …]
|
| /kernel/linux/linux-5.10/arch/mips/include/asm/ |
| D | mips-gic.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * Author: Paul Burton <paul.burton@mips.com> 8 # error Please include asm/mips-cps.h rather than asm/mips-gic.h 16 /* The base address of the GIC registers */ 19 /* Offsets from the GIC base address to various control blocks */ 29 /* For read-only shared registers */ 31 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_SHARED_OFS + off, name) 33 /* For read-write shared registers */ 35 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_SHARED_OFS + off, name) 37 /* For read-only local registers */ [all …]
|
| /kernel/linux/linux-4.19/arch/mips/include/asm/ |
| D | mips-gic.h | 3 * Author: Paul Burton <paul.burton@mips.com> 12 # error Please include asm/mips-cps.h rather than asm/mips-gic.h 20 /* The base address of the GIC registers */ 23 /* Offsets from the GIC base address to various control blocks */ 33 /* For read-only shared registers */ 35 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_SHARED_OFS + off, name) 37 /* For read-write shared registers */ 39 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_SHARED_OFS + off, name) 41 /* For read-only local registers */ 43 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_LOCAL_OFS + off, vl_##name) \ [all …]
|
| /kernel/linux/linux-4.19/drivers/staging/mt7621-dts/ |
| D | mt7621.dtsi | 1 #include <dt-bindings/interrupt-controller/mips-gic.h> 4 #address-cells = <1>; 5 #size-cells = <1>; 6 compatible = "mediatek,mt7621-soc"; 10 compatible = "mips,mips1004Kc"; 14 compatible = "mips,mips1004Kc"; 19 #address-cells = <0>; 20 #interrupt-cells = <1>; 21 interrupt-controller; 22 compatible = "mti,cpu-interrupt-controller"; [all …]
|
| /kernel/linux/linux-4.19/arch/mips/boot/dts/mti/ |
| D | sead3.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 8 #include <dt-bindings/interrupt-controller/mips-gic.h> 11 #address-cells = <1>; 12 #size-cells = <1>; 13 compatible = "mti,sead-3"; 14 model = "MIPS SEAD-3"; 17 stdout-path = "serial1:115200"; 36 cpu_intc: interrupt-controller { 37 compatible = "mti,cpu-interrupt-controller"; [all …]
|
| D | malta.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/interrupt-controller/irq.h> 5 #include <dt-bindings/interrupt-controller/mips-gic.h> 12 #address-cells = <1>; 13 #size-cells = <1>; 16 cpu_intc: interrupt-controller { 17 compatible = "mti,cpu-interrupt-controller"; 19 interrupt-controller; 20 #interrupt-cells = <1>; [all …]
|
| /kernel/linux/linux-5.10/arch/mips/boot/dts/mti/ |
| D | sead3.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 8 #include <dt-bindings/interrupt-controller/mips-gic.h> 11 #address-cells = <1>; 12 #size-cells = <1>; 13 compatible = "mti,sead-3"; 14 model = "MIPS SEAD-3"; 17 stdout-path = "serial1:115200"; 36 cpu_intc: interrupt-controller { 37 compatible = "mti,cpu-interrupt-controller"; [all …]
|
| D | malta.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/interrupt-controller/irq.h> 5 #include <dt-bindings/interrupt-controller/mips-gic.h> 12 #address-cells = <1>; 13 #size-cells = <1>; 16 cpu_intc: interrupt-controller { 17 compatible = "mti,cpu-interrupt-controller"; 19 interrupt-controller; 20 #interrupt-cells = <1>; [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/mt7621-dts/ |
| D | mt7621.dtsi | 1 #include <dt-bindings/interrupt-controller/mips-gic.h> 2 #include <dt-bindings/gpio/gpio.h> 5 #address-cells = <1>; 6 #size-cells = <1>; 7 compatible = "mediatek,mt7621-soc"; 11 compatible = "mips,mips1004Kc"; 15 compatible = "mips,mips1004Kc"; 20 #address-cells = <0>; 21 #interrupt-cells = <1>; 22 interrupt-controller; [all …]
|
| /kernel/linux/linux-4.19/arch/mips/include/asm/mips-boards/ |
| D | maltaint.h | 6 * Copyright (C) 2000,2012 MIPS Technologies, Inc. All rights reserved. 7 * Carsten Langgaard <carstenl@mips.com> 8 * Steven J. Hill <sjhill@mips.com> 23 #define MIPSCPU_INT_GIC MIPSCPU_INT_MB0 /* GIC chained interrupt */ 33 * Interrupts 96..127 are used for Soc-it Classic interrupts 37 /* SOC-it Classic interrupt offsets */ 42 * Interrupts 96..127 are used for Soc-it EIC interrupts 46 /* SOC-it EIC interrupt offsets */
|
| /kernel/linux/linux-5.10/arch/mips/include/asm/mips-boards/ |
| D | maltaint.h | 6 * Copyright (C) 2000,2012 MIPS Technologies, Inc. All rights reserved. 7 * Carsten Langgaard <carstenl@mips.com> 8 * Steven J. Hill <sjhill@mips.com> 23 #define MIPSCPU_INT_GIC MIPSCPU_INT_MB0 /* GIC chained interrupt */ 33 * Interrupts 96..127 are used for Soc-it Classic interrupts 37 /* SOC-it Classic interrupt offsets */ 42 * Interrupts 96..127 are used for Soc-it EIC interrupts 46 /* SOC-it EIC interrupt offsets */
|
| D | malta.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Carsten Langgaard, carstenl@mips.com 4 * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved. 6 * Defines of the Malta board specific address-MAP, registers, etc. 13 #include <asm/mips-boards/msc01_pci.h> 16 /* Mips interrupt controller found in SOCit variations */ 49 * GIC Specific definitions 71 * Malta RTC-device indirect register access.
|