diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-15 04:20:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-15 04:20:55 +0000 |
commit | b0f1bf2b470d24107879afd6afa9d2dde42f5c07 (patch) | |
tree | 1bb7cbfd96331980d26281e9165d921dec935ea2 /nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c | |
parent | 4157b2eb6c0102eca9c749f8b49a6f82a736f15b (diff) | |
download | px4-nuttx-b0f1bf2b470d24107879afd6afa9d2dde42f5c07.tar.gz px4-nuttx-b0f1bf2b470d24107879afd6afa9d2dde42f5c07.tar.bz2 px4-nuttx-b0f1bf2b470d24107879afd6afa9d2dde42f5c07.zip |
Need to set global power
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3180 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c')
-rwxr-xr-x | nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c index 230037fdd..158369b74 100755 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c @@ -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); |