SAMA5D3 Xplained: Update some comments, initialize USB bus power state

This commit is contained in:
Gregory Nutt 2015-05-01 11:46:38 -06:00
parent 666b17db33
commit ffb3a6fa16
2 changed files with 17 additions and 10 deletions

View File

@ -448,7 +448,7 @@ void sam_usbhost_vbusdrive(int rhport, bool enable)
return; return;
} }
/* Then enable or disable VBUS power */ /* Then enable or disable VBUS power (active low for SP2526A-2) */
if (enable) if (enable)
{ {

View File

@ -382,26 +382,33 @@
* *
* PIO Signal Name Function * PIO Signal Name Function
* ---- ----------- ------------------------------------------------------- * ---- ----------- -------------------------------------------------------
* PE4 EN5V_USBB VBus power enable (via MN3 AIC1526 Dual USB High-Side * PE3 EN5V_USBB VBus power enable via MN3 SP2526A-2E dual power
* Power Switch). To the A1 pin of J7 Dual USB A * switch. PE3 (EN5V_USBB)connects to ENB pin of MN3.
* connector * MN3 OUTB (5V_USBB) is provided to pin 5 of J7 Dual USB
* A connector
*
* Active high for SP2526A-1; active low for SP2526A-2
*/ */
#define PIO_USBB_VBUS_ENABLE \ #define PIO_USBB_VBUS_ENABLE \
(PIO_OUTPUT | PIO_CFG_DEFAULT | PIO_OUTPUT_CLEAR | \ (PIO_OUTPUT | PIO_CFG_DEFAULT | PIO_OUTPUT_SET | \
PIO_PORT_PIOE | PIO_PIN4) PIO_PORT_PIOE | PIO_PIN3)
/* Port C /* Port C
* *
* PIO Signal Name Function * PIO Signal Name Function
* ---- ----------- ------------------------------------------------------- * ---- ----------- -------------------------------------------------------
* PE3 EN5V_USBC VBus power enable (via MN3 power switch). To the B1 * PE4 EN5V_USBC VBus power enable via MN3 SP2526A-2E dual power
* pin of J7 Dual USB A connector * switch. PE4 (EN5V_USBC) connects to ENA pin of the
* MN3. MN3 OUTA (5V_USBC) is provided to the pin 1 of J7
* Dual USB A connector
*
* Active high for SP2526A-1; active low for SP2526A-2
*/ */
#define PIO_USBC_VBUS_ENABLE \ #define PIO_USBC_VBUS_ENABLE \
(PIO_OUTPUT | PIO_CFG_DEFAULT | PIO_OUTPUT_CLEAR | \ (PIO_OUTPUT | PIO_CFG_DEFAULT | PIO_OUTPUT_SET | \
PIO_PORT_PIOE | PIO_PIN3) PIO_PORT_PIOE | PIO_PIN4)
/* Both Ports B and C /* Both Ports B and C
* *