Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Malta: Implement get_c0_fdc_int()

Implement the weak get_c0_fdc_int() function for Malta. The Fast Debug
Channel (FDC) interrupt is obtained mainly depending on whether a GIC is
present. Vectored external interrupt mode isn't yet supported.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/9143/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

James Hogan and committed by
Ralf Baechle
602e8a34 6429e2b6

+16
+16
arch/mips/mti-malta/malta-time.c
··· 115 115 ts->tv_nsec = 0; 116 116 } 117 117 118 + int get_c0_fdc_int(void) 119 + { 120 + int mips_cpu_fdc_irq; 121 + 122 + if (cpu_has_veic) 123 + mips_cpu_fdc_irq = -1; 124 + else if (gic_present) 125 + mips_cpu_fdc_irq = gic_get_c0_fdc_int(); 126 + else if (cp0_fdc_irq >= 0) 127 + mips_cpu_fdc_irq = MIPS_CPU_IRQ_BASE + cp0_fdc_irq; 128 + else 129 + mips_cpu_fdc_irq = -1; 130 + 131 + return mips_cpu_fdc_irq; 132 + } 133 + 118 134 int get_c0_perfcount_int(void) 119 135 { 120 136 if (cpu_has_veic) {