Release 4.14 arch/powerpc/platforms/86xx/pic.c
/*
* Copyright 2008 Freescale Semiconductor, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*/
#include <linux/stddef.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <asm/mpic.h>
#include <asm/i8259.h>
#ifdef CONFIG_PPC_I8259
static void mpc86xx_8259_cascade(struct irq_desc *desc)
{
struct irq_chip *chip = irq_desc_get_chip(desc);
unsigned int cascade_irq = i8259_irq();
if (cascade_irq)
generic_handle_irq(cascade_irq);
chip->irq_eoi(&desc->irq_data);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kumar Gala | 32 | 68.09% | 1 | 33.33% |
Lennert Buytenhek | 14 | 29.79% | 1 | 33.33% |
Thomas Gleixner | 1 | 2.13% | 1 | 33.33% |
Total | 47 | 100.00% | 3 | 100.00% |
#endif /* CONFIG_PPC_I8259 */
void __init mpc86xx_init_irq(void)
{
#ifdef CONFIG_PPC_I8259
struct device_node *np;
struct device_node *cascade_node = NULL;
int cascade_irq;
#endif
struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN |
MPIC_SINGLE_DEST_CPU,
0, 256, " MPIC ");
BUG_ON(mpic == NULL);
mpic_init(mpic);
#ifdef CONFIG_PPC_I8259
/* Initialize i8259 controller */
for_each_node_by_type(np, "interrupt-controller")
if (of_device_is_compatible(np, "chrp,iic")) {
cascade_node = np;
break;
}
if (cascade_node == NULL) {
printk(KERN_DEBUG "Could not find i8259 PIC\n");
return;
}
cascade_irq = irq_of_parse_and_map(cascade_node, 0);
if (!cascade_irq) {
printk(KERN_ERR "Failed to map cascade interrupt\n");
return;
}
i8259_init(cascade_node, 0);
of_node_put(cascade_node);
irq_set_chained_handler(cascade_irq, mpc86xx_8259_cascade);
#endif
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kumar Gala | 135 | 91.84% | 2 | 33.33% |
Kyle Moffett | 10 | 6.80% | 2 | 33.33% |
Thomas Gleixner | 1 | 0.68% | 1 | 16.67% |
Michael Ellerman | 1 | 0.68% | 1 | 16.67% |
Total | 147 | 100.00% | 6 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kumar Gala | 192 | 86.49% | 2 | 25.00% |
Lennert Buytenhek | 14 | 6.31% | 1 | 12.50% |
Kyle Moffett | 10 | 4.50% | 2 | 25.00% |
Rob Herring | 3 | 1.35% | 1 | 12.50% |
Thomas Gleixner | 2 | 0.90% | 1 | 12.50% |
Michael Ellerman | 1 | 0.45% | 1 | 12.50% |
Total | 222 | 100.00% | 8 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.