From: Magnus D. <mag...@gm...> - 2007-07-26 14:20:32
|
Hi David, Thanks for your patches! On 7/26/07, David McCullough <Dav...@se...> wrote: > > Fix up the IPR/IRQ defines and do a few small cleanups > > Signed-off-by: David McCullough <dav...@se...> > > --- > commit 729cc761ccd442364de93b5af0e8f40d649d1878 > tree a022252f2182a5aa6a19101859af0b5a8b135aa0 > parent 5b55e21c48d5ab697c007781d7b7718293e59e0d > author David McCullough <dav...@se...> Thu, 26 Jul 2007 14:11:17 +1000 > committer David McCullough <davidm@beast.(none)> Thu, 26 Jul 2007 14:11:17 +1000 > > include/asm-sh/snapgear.h | 31 +++++++++++++++++++++++++++++++ > 1 files changed, 31 insertions(+), 0 deletions(-) > > diff --git a/include/asm-sh/snapgear.h b/include/asm-sh/snapgear.h > index 3554e3a..a9df1a6 100644 > --- a/include/asm-sh/snapgear.h > +++ b/include/asm-sh/snapgear.h > @@ -18,22 +18,46 @@ > * depending on the priority for the interrupt. In fact the priority > * is the interrupt :-) > */ > +#define INTC_IPRA 0xffd00004 > +#define INTC_IPRB 0xffd00008 > +#define INTC_IPRC 0xffd0000c > +#define INTC_IPRD 0xffd00010 Uhm, these registers are processor specific. The board-specific code should not need to poke around with them. There are several boards that do this unfortunately - I suspect the code is there for historical reasons. These days the vectors should be installed and handled by the cpu specific code. It should be possible for you to just use ipr_irq_enable_irlm() in your board specific code and then request irqs. It looks like no board-specific irq handling is needed - you only use IRQ pins for external devices, right? No funky FPGA:s with interrupt masks and things I hope. =) So if you have time - try ripping it all out and check if it still works. And I'd be happy to help you to move towards using the intc code instead of ipr if board specific code is needed after all. Thanks! / magnus |