]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
LPC23xx USB HW init: added polling for clock status
authorMarek Peca <mp@duch.cz>
Tue, 15 Sep 2009 20:49:52 +0000 (22:49 +0200)
committerMarek Peca <mp@duch.cz>
Tue, 15 Sep 2009 20:49:52 +0000 (22:49 +0200)
common/libs4c/usb/lpcusb/lpcusb.c

index daa7e7a26da914c867971a6ed3e9087056d92533..8ef53e370e534862ec574dc8354f791c6826bf23 100644 (file)
@@ -143,6 +143,8 @@ void lpc_usb_hw_init (void)
   PCONP |= 1<<31;
   /* switch USB internal clock switch on */
   USBClkCtrl = 0x12;
+  while ((USBClkSt & 0x12) != 0x12);
+
 #endif /* MACH_LPC23XX */
 
   /* Partial Manual Reset since Automatic Bus Reset is not working */