r4329 - trunk/src/host/qemu-neo1973/hw
andrew at sita.openmoko.org
andrew at sita.openmoko.org
Wed Apr 9 01:16:12 CEST 2008
Author: andrew
Date: 2008-04-09 01:16:10 +0200 (Wed, 09 Apr 2008)
New Revision: 4329
Modified:
trunk/src/host/qemu-neo1973/hw/s3c24xx_gpio.c
Log:
Correct the bitfields layout in S3C2410's EXTINTn registers - patch from Salil Bijur <salilbijur at gmail.com>.
Modified: trunk/src/host/qemu-neo1973/hw/s3c24xx_gpio.c
===================================================================
--- trunk/src/host/qemu-neo1973/hw/s3c24xx_gpio.c 2008-04-08 20:55:03 UTC (rev 4328)
+++ trunk/src/host/qemu-neo1973/hw/s3c24xx_gpio.c 2008-04-08 23:16:10 UTC (rev 4329)
@@ -83,7 +83,7 @@
}
if (level) {
if (!((s->bank[bank].dat >> line) & 1))
- switch ((s->extint[e] >> (line * 3)) & 7) {
+ switch ((s->extint[e] >> (line * 4)) & 7) {
case 1:
case 4 ... 7:
s3c_gpio_extint(s, eint);
@@ -92,7 +92,7 @@
s->bank[bank].dat |= 1 << line;
} else {
if ((s->bank[bank].dat >> line) & 1)
- switch ((s->extint[e] >> (line * 3)) & 7) {
+ switch ((s->extint[e] >> (line * 4)) & 7) {
case 1:
case 4 ... 5:
break;
More information about the commitlog
mailing list