From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 20 Jun 2006 09:37:24 -0700 From: "Mark A. Greer" To: Benjamin Herrenschmidt Subject: Re: [PATCH] mpic: add support for serial mode interrupts Message-ID: <20060620163724.GB14711@mag.az.mvista.com> References: <20060619200811.GA15524@mag.az.mvista.com> <1150776086.23600.329.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1150776086.23600.329.camel@localhost.localdomain> Cc: linuxppc-dev , Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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... Basically, I just brought what was already in ppc over to powerpc. I didn't really think about it much. > 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) ? Yeah, that's a better way to do it. I'll make a new patch. Mark