From: Juha Riihimäki Date: Thu, 16 Apr 2009 07:24:06 +0000 (+0300) Subject: add support for omap3 usbhost power domain control X-Git-Tag: 0.10.0-0sb6~7 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=76313d93083c07ba8233251a221c730cfdd2a1ac;p=qemu add support for omap3 usbhost power domain control --- diff --git a/hw/omap3.c b/hw/omap3.c index de66d7b..5dc4849 100644 --- a/hw/omap3.c +++ b/hw/omap3.c @@ -2062,9 +2062,16 @@ static void omap3_prm_write(void *opaque, target_phys_addr_t addr, case 0x14a8: s->usbhost.pm_ivagrpsel = value & 1; break; case 0x14b0: s->usbhost.pm_wkst &= ~(value & 1); break; case 0x14c8: s->usbhost.pm_wkdep = value & 0x17; break; - case 0x14e0: s->usbhost.pm_pwstctrl = 0x030104 | (value & 0x13); break; + case 0x14e0: + s->usbhost.pm_pwstctrl = 0x030104 | (value & 0x13); + /* TODO: support USBHOST wakeup control. For now let's keep the + * USBHOST domain always in ON state and if another state is + * requested pretend that we just woke up */ + s->usbhost.pm_pwstst = 0x3; + s->usbhost.pm_prepwstst = value & 3; + break; case 0x14e4: OMAP_RO_REG(addr); break; - case 0x14e8: s->usbhost.pm_prepwstst = value & 3; break; + case 0x14e8: /* ignore, we set the value in PWSTCTRL write */ break; default: OMAP_BAD_REGV(addr, value); break;