From: Kristoffer E. <kri...@gm...> - 2007-08-21 14:38:05
|
I changed the old HD64461_IRQ into what I believe is the new one (IRQ 30) and lots alot of errors and it detects the CF card properly now. Not understand what IRQ IRQ0,..1..2..3... got though?.. On Thu, 16 Aug 2007 12:05:50 +0900 "Magnus Damm" <mag...@gm...> wrote: > On 8/16/07, Kristoffer Ericson <kri...@gm...> wrote: > > Found it, jlime-current.git IRQ.H sets all my offchip_nr_irq's, must have added that when the IRQ stuff got reworked. I believe we could just set it to 256 or something, since Paul have defined the nr irq limit at that. > > The base value for these interrupts should be set to something, that's > for sure! I wonder if 256 is such a good choice though, mainly because > NR_IRQS is set to 256 in include/asm-sh/irq.h. This constant seems to > be the maximum number of interrupts supported by the kernel, and it is > for instance used by irq_desc[] include/linux/irq.h. So I would go > with a number below 256, exactly which depends on the number of > interrupt sources you plan on installing - but make sure all > interrupts fit in below NR_IRQS. > > It looks like sh770x processor is using interrupt 0-63 (maximum vector > is in vectors[] seems to be 0x9e0), so from the cpu point of view you > are free to use interrupt 64-255 for your board-specific or companion > chip interrupts. We also probably need to squeeze in the 16 pint > interrupts there later on. > > / magnus -- Kristoffer Ericson <Kri...@Gm...> |