Need to set global power

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3180 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2010-12-15 04:20:55 +00:00
parent ebccf53570
commit 96e143f568

View File

@ -69,7 +69,10 @@
* Definitions
*******************************************************************************/
/* Configuration ***************************************************************/
/* Frame Interval */
#define FI (12000-1) /* 12000 bits per frame (-1) */
#define DEFAULT_FMINTERVAL ((((6 * (FI - 210)) / 7) << 16) | FI)
/* CLKCTRL enable bits */
@ -443,6 +446,10 @@ void up_usbhostinitialize(void)
regval |= OHCI_CTRL_HCFS_OPER;
lpc17_putreg(regval, LPC17_USBHOST_CTRL);
/* Set global power */
lpc17_putreg(OHCI_RHSTATUS_LPS, LPC17_USBHOST_RHSTATUS);
/* Set HCCA base address */
lpc17_putreg((uint32_t)Hcca, LPC17_USBHOST_HCCA);