aboutsummaryrefslogtreecommitdiff
path: root/hw/nseries.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-01-20 12:10:34 +0100
committerAndrzej Zaborowski <balrogg@gmail.com>2012-02-17 07:42:22 +0100
commitdd4427a6194eb4efd38542737a053ca474039a76 (patch)
tree3bfd0c7c14544ddcfc50ec1b25ed8239c321f5e9 /hw/nseries.c
parent6c263e26a5c162a8cd79e32bb82422697db5c57c (diff)
downloadqemu-dd4427a6194eb4efd38542737a053ca474039a76.zip
qemu-dd4427a6194eb4efd38542737a053ca474039a76.tar.gz
qemu-dd4427a6194eb4efd38542737a053ca474039a76.tar.bz2
nseries: attach monitor powerdown request to menelaus
I noticed some unused code in the twl92230, probably from before qdev-ification. This patch makes the machine use the chip's pwrbtn signal. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'hw/nseries.c')
-rw-r--r--hw/nseries.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/nseries.c b/hw/nseries.c
index d429dbd..c5b3184 100644
--- a/hw/nseries.c
+++ b/hw/nseries.c
@@ -204,6 +204,8 @@ static void n8x0_i2c_setup(struct n800_s *s)
qdev_get_gpio_in(s->cpu->ih[0],
OMAP_INT_24XX_SYS_NIRQ));
+ qemu_system_powerdown = qdev_get_gpio_in(dev, 3);
+
/* Attach a TMP105 PM chip (A0 wired to ground) */
dev = i2c_create_slave(s->i2c, "tmp105", N8X0_TMP105_ADDR);
qdev_connect_gpio_out(dev, 0, tmp_irq);