Need to set global power
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3180 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
e52614088a
commit
ba793b6a3e
|
@ -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);
|
||||
|
|
|
@ -226,7 +226,6 @@
|
|||
|
||||
/* HcRhStatus: Root hub status (7.4.3) */
|
||||
|
||||
#define OHCI_RHSTATUS_
|
||||
#define OHCI_RHSTATUS_LPS (1 << 0) /* Bit 0: Local power status */
|
||||
#define OHCI_RHSTATUS_OCI (1 << 1) /* Bit 1: Over current indicator */
|
||||
/* Bits 2-14: Reserved */
|
||||
|
|
Loading…
Reference in New Issue