[PATCH] mpic: add support for serial mode interrupts
Olof Johansson
olof at lixom.net
Tue Jun 20 06:11:21 EST 2006
Hi,
On Mon, Jun 19, 2006 at 01:08:11PM -0700, Mark A. Greer wrote:
> MPC10x-style interrupt controllers have a serial mode that allows
> several interrupts to be clocked in through one INT signal.
[...]
> + /* For serial interrupts & set clock ratio */
> + if (flags & MPIC_SERIAL_MODE)
> + mpic_write(mpic->gregs, MPIC_GREG_GLOBAL_CONF_1,
> + mpic_read(mpic->gregs, MPIC_GREG_GLOBAL_CONF_1)
> + | (1<<27) | (0x7<<28));
Can you define some constants so others can see just what the bits mean
without digging up documentation, instead of just doing magic numbers?
MPIC_GREG_GLOBAL_CONF_0 already does so; you can copy the style from
there.
Thanks,
-Olof
More information about the Linuxppc-dev
mailing list