Revision 022f1df1862c6afbe06d5ddaa7f63139d982cfea authored by Phil Elwell on 24 February 2015, 13:40:50 UTC, committed by popcornmix on 13 April 2015, 20:45:00 UTC
Contrary to the documentation, the BCM2835 GPIO controller actually has
four interrupt lines - one each for the three IRQ groups and one common. Rather
confusingly, the GPIO interrupt groups don't correspond directly with the GPIO
control banks. Instead, GPIOs 0-27 generate IRQ GPIO0, 28-45 GPIO1 and
46-53 GPIO2.

Awkwardly, the GPIOS for IRQ GPIO1 straddle two 32-entry GPIO banks, so it is
cleaner to split out a function to process the interrupts for a single GPIO
bank.

This bug has only just been observed because GPIOs above 27 can only be
accessed on an old Raspberry Pi with the optional P5 header fitted, where
the pins are often used for I2S instead.
1 parent ca0cb9b
History
File Mode Size
Kconfig -rw-r--r-- 795 bytes
Makefile -rw-r--r-- 279 bytes
ad1843.c -rw-r--r-- 16.0 KB
au1x00.c -rw-r--r-- 19.5 KB
hal2.c -rw-r--r-- 24.9 KB
hal2.h -rw-r--r-- 8.2 KB
sgio2audio.c -rw-r--r-- 26.4 KB

back to top