diff options
author | Juha Riihimäki <juha.riihimaki@nokia.com> | 2011-08-31 21:49:41 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-09-07 09:58:27 +0200 |
commit | 5b1cdb4ead0b3d2190492fce0a17e809ef915f26 (patch) | |
tree | 6352cb66925129abad5632b2b608f1ba604ec918 /hw/tusb6010.c | |
parent | 406c20754a29586f6dc1fccacbca3792be24922c (diff) |
usb-musb: Add reset function
Add a separate reset function musb_reset() to the usb-musb interface,
so that users who implement a reset function can also reset usb-musb.
Use this in tusb6010.
Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
[Peter Maydell: More fixes and cleanups for upstream submission]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/tusb6010.c')
-rw-r--r-- | hw/tusb6010.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/tusb6010.c b/hw/tusb6010.c index 57fe8045b8..ce7c81f8f2 100644 --- a/hw/tusb6010.c +++ b/hw/tusb6010.c @@ -771,6 +771,7 @@ static void tusb6010_reset(DeviceState *dev) for (i = 0; i < 15; i++) { s->rx_config[i] = s->tx_config[i] = 0; } + musb_reset(s->musb); } static int tusb6010_init(SysBusDevice *dev) |