[POWERPC] mpic: add support for serial mode interrupts
authorMark A. Greer <mgreer@mvista.com>
Tue, 20 Jun 2006 21:15:36 +0000 (14:15 -0700)
committerPaul Mackerras <paulus@samba.org>
Wed, 21 Jun 2006 05:01:32 +0000 (15:01 +1000)
commit868ea0c9256b658b14603e1ad7361b81b92ccacd
tree6d080ba156f8098277329f26f1d4e3a73cae2093
parent0aa8d15b01881ccaab5f2fb31eef33ced97ccb5f
[POWERPC] mpic: add support for serial mode interrupts

On Tue, Jun 20, 2006 at 02:01:26PM +1000, Benjamin Herrenschmidt wrote:
> On Mon, 2006-06-19 at 13:08 -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.
> >
> > This patch adds the software support for that mode.
>
> You hard code the clock ratio... why not add a separate call to be
> called after mpic_init,
> something like mpic_set_serial_int(int mpic, int enable, int
> clock_ratio) ?

How's this?
--

MPC10x-style interrupt controllers have a serial mode that allows
several interrupts to be clocked in through one INT signal.

This patch adds the software support for that mode.

Signed-off-by: Mark A. Greer <mgreer@mvista.com>
--

 arch/powerpc/sysdev/mpic.c |   20 ++++++++++++++++++++
 include/asm-powerpc/mpic.h |   10 ++++++++++
 2 files changed, 30 insertions(+)
--
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/mpic.c
include/asm-powerpc/mpic.h