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:
Michael Sevakis 2011-01-28 02:30:03 +00:00
parent 771011a6fc
commit ac7fe5fb82

View file

@ -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();