summaryrefslogtreecommitdiff
path: root/hw/palm.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-28 21:02:29 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-28 21:02:29 +0000
commit6433014805f6f23050c4c4d0483b0241b3eaccb4 (patch)
treec34b89cba7334fb8186a76b030a69e78903487e0 /hw/palm.c
parent623a930ec30a75e6d6482ca8208d7bf1ca8d359b (diff)
downloadqemu-6433014805f6f23050c4c4d0483b0241b3eaccb4.tar.gz
qemu-6433014805f6f23050c4c4d0483b0241b3eaccb4.tar.bz2
qemu-6433014805f6f23050c4c4d0483b0241b3eaccb4.zip
Add OMAP Shared GPIO module.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3473 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/palm.c')
-rw-r--r--hw/palm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/palm.c b/hw/palm.c
index ba7e47f9f5..1ee05b8233 100644
--- a/hw/palm.c
+++ b/hw/palm.c
@@ -158,7 +158,8 @@ static void palmte_init(int ram_size, int vga_ram_size, int boot_device,
qemu_add_kbd_event_handler(palmte_button_event, cpu);
- omap_mmc_handlers(cpu->mmc, 0,
+ omap_mmc_handlers(cpu->mmc,
+ omap_gpio_in_get(cpu->gpio)[PALMTE_MMC_WP_GPIO],
qemu_allocate_irqs(palmte_mmc_cover, cpu, 1)[0]);
/* Setup initial (reset) machine state */