aboutsummaryrefslogtreecommitdiff
path: root/hw/omap.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-28 19:24:52 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-28 19:24:52 +0000
commit8e129e0748f866d730f1e39bff296219fedac244 (patch)
tree8d36251447df9838009b97317a5d4996d7c444e2 /hw/omap.c
parent38a34e1d7aa1ac64c2615952ee732da47eee9f14 (diff)
Handle MMC card insertion/removal/readonly signals.
Hook them up to Palm T|E GPIOs. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3471 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/omap.c')
-rw-r--r--hw/omap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/omap.c b/hw/omap.c
index 9c0e570aea..f8c2073da9 100644
--- a/hw/omap.c
+++ b/hw/omap.c
@@ -2882,7 +2882,9 @@ static uint32_t omap_mpuio_read(void *opaque, target_phys_addr_t addr)
case 0x24: /* GPIO_INT */
ret = s->ints;
- s->ints &= ~s->mask;
+ s->ints &= s->mask;
+ if (ret)
+ qemu_irq_lower(s->irq);
return ret;
case 0x28: /* KBD_MASKIT */