Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Functional keypad (and more) on the Nokia N900



On 29/04/2013 23:40, Pierre Pronchery wrote:
> 
> A known issue, among others: the six times 32 plus 18 GPIO pins seem to
> be too many for the amount of interrupt slots pre-allocated in the ARM
> PIC code - which is why I disabled omapgpio5 and n900audjck0 in the
> kernel configuration file for the moment. I have to investigate some
> more there.

I found the issue; the fix goes in sys/arch/arm/omap/omap2430_intr.h
instead of sys/arch/arm/pic/picvar.h as I originally suspected.

Patch attached, FWIW.

HTH,
-- 
khorben
Index: sys/arch/arm/omap/omap2430_intr.h
===================================================================
RCS file: /cvsroot/src/sys/arch/arm/omap/omap2430_intr.h,v
retrieving revision 1.4
diff -p -u -r1.4 omap2430_intr.h
--- sys/arch/arm/omap/omap2430_intr.h   14 Jul 2012 07:42:57 -0000      1.4
+++ sys/arch/arm/omap/omap2430_intr.h   3 May 2013 20:04:16 -0000
@@ -162,7 +162,7 @@ uint32_t omap_microtimer_interval(uint32
 #define        IRQ_GPT12_3530          95      /* (3530) GPT12 */
 
 #define        PIC_MAXSOURCES          96
-#define        PIC_MAXMAXSOURCES       (PIC_MAXSOURCES+192)
+#define        PIC_MAXMAXSOURCES       (PIC_MAXSOURCES+256)
 
 void omap_irq_handler(void *);
 


Home | Main Index | Thread Index | Old Index