AS3525v2 USB: Set disconnect before stopping module clock. Seems to cure reconnect weirdness for me and is probably the proper method anyway since otherwise the module will still be running when the clock is cut (bad).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29149 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
771011a6fc
commit
ac7fe5fb82
1 changed files with 3 additions and 0 deletions
|
@ -158,6 +158,9 @@ static void as3525v2_connect(void)
|
|||
|
||||
static void as3525v2_disconnect(void)
|
||||
{
|
||||
/* Disconnect */
|
||||
DCTL |= DCTL_sftdiscon;
|
||||
usb_delay();
|
||||
/* Disable clock */
|
||||
CGU_USB = 0;
|
||||
usb_delay();
|
||||
|
|
Loading…
Reference in a new issue