[RFC PATCH 16/19] powerpc: wii: hollywood interrupt controller support
Segher Boessenkool
segher at kernel.crashing.org
Fri Nov 27 10:03:03 EST 2009
>> +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
More information about the Linuxppc-dev
mailing list