SAMA5: ports should not be reset state (seems to make no difference)

This commit is contained in:
Gregory Nutt 2013-08-14 17:33:31 -06:00
parent fe73fe2e23
commit 0098c9ec5f
2 changed files with 16 additions and 2 deletions

View File

@ -124,7 +124,10 @@
#endif
/* OHCI Setup ******************************************************************/
/* Frame Interval / Periodic Start */
/* Frame Interval / Periodic Start.
*
* At 12Mbps, there are 12000 bit time in each 1Msec frame.
*/
#define BITS_PER_FRAME 12000
#define FI (BITS_PER_FRAME-1)
@ -2691,6 +2694,17 @@ FAR struct usbhost_connection_s *sam_ohci_initialize(int controller)
putreg32(regval, SAM_PMC_SCER);
irqrestore(flags);
/* Make all three ports usable. Zero is the reset value and holds the
* ports in reset.
* REVISIT: This will have to change in future. Should be a configuration
* setting
*/
regval = getreg32(SAM_SFR_OHCIICR);
regval |= (SFR_OHCIICR_RES0 | SFR_OHCIICR_RES1 | SFR_OHCIICR_RES2);
putreg32(regval, SAM_SFR_OHCIICR);
irqrestore(flags);
/* Note that no pin pinconfiguration is required. All USB HS pins have
* dedicated function
*/

View File

@ -123,7 +123,7 @@
*
* USB Clock = PLLACK / (USBDIV + 1) = 48MHz
* USBDIV = PLLACK / 48MHz - 1
* = 16
* = 15
*
* The maximum value of USBDIV is 15 corresponding to a divisor of 16.
* REVISIT: USBDIV = 15 gives an exact clock of 48MHz.