Re: [RFC PATCH 16/19] powerpc: wii: hollywood interrupt controller support
From: Segher Boessenkool <hidden>
Date: 2009-11-26 22:56:08
From: Segher Boessenkool <hidden>
Date: 2009-11-26 22:56:08
quoted
+static void hlwd_pic_mask_and_ack(unsigned int virq) +{ + int irq = virq_to_hw(virq); + void __iomem *io_base = get_irq_chip_data(virq); + + clear_bit(irq, io_base + HW_BROADWAY_IMR); + set_bit(irq, io_base + HW_BROADWAY_ICR); +}Same comment as with flipper. BTW. It looks really similar, can't you use the same driver ?
No, they aren't actually similar; the old PIC acks when the status reg is read, the new PIC acks when you write a 1. Also, the new PIC has more registers, it is an interrupt controller for the ARM as well. Not that we use it, but still. Segher