[PATCH] mpic: add support for serial mode interrupts
Mark A. Greer
mgreer at mvista.com
Tue Jun 20 06:19:59 EST 2006
On Mon, Jun 19, 2006 at 03:11:21PM -0500, Olof Johansson wrote:
> 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?
Yeah, I can probably do that... :)
Mark
More information about the Linuxppc-dev
mailing list