From 7fc42b4bbddc47a6bebc281ee96e9ddcd537d46e Mon Sep 17 00:00:00 2001 From: balrog Date: Sat, 3 Nov 2007 00:41:31 +0000 Subject: The PINT/DAV pin is active low in the chip spec, not inverted on the board. Make changes on known GPIO lines be verbose, initialise GPIO levels. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3511 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/tsc210x.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hw/tsc210x.c') diff --git a/hw/tsc210x.c b/hw/tsc210x.c index 6aa2bc8ad0..31cf3a444e 100644 --- a/hw/tsc210x.c +++ b/hw/tsc210x.c @@ -1,5 +1,5 @@ /* - * TI TSC2102 (touchscreen/sensors/audio controller) controller. + * TI TSC2102 (touchscreen/sensors/audio controller) emulator. * * Copyright (c) 2006 Andrzej Zaborowski * @@ -171,7 +171,7 @@ static void tsc210x_reset(struct tsc210x_state_s *s) s->filter_data[0x12] = 0x7d83; s->filter_data[0x13] = 0x84ee; - qemu_set_irq(s->pint, s->irq); + qemu_set_irq(s->pint, !s->irq); } static uint16_t tsc2102_data_register_read(struct tsc210x_state_s *s, int reg) @@ -572,7 +572,7 @@ static void tsc210x_pin_update(struct tsc210x_state_s *s) if (pin_state != s->irq) { s->irq = pin_state; - qemu_set_irq(s->pint, s->irq); + qemu_set_irq(s->pint, !s->irq); } switch (s->nextfunction) { @@ -810,7 +810,7 @@ static int tsc210x_load(QEMUFile *f, void *opaque, int version_id) qemu_get_be16s(f, &s->filter_data[i]); s->busy = qemu_timer_pending(s->timer); - qemu_set_irq(s->pint, s->irq); + qemu_set_irq(s->pint, !s->irq); return 0; } -- cgit v1.2.3