|
@@ -98,3 +98,115 @@
|
|
#define USB_RX_MAX_PACKET 0xffc03c48 /* Maximum packet size for Host Rx endpoint */
|
|
#define USB_RX_MAX_PACKET 0xffc03c48 /* Maximum packet size for Host Rx endpoint */
|
|
#define USB_RXCSR 0xffc03c4c /* Control Status register for Host Rx endpoint */
|
|
#define USB_RXCSR 0xffc03c4c /* Control Status register for Host Rx endpoint */
|
|
#define USB_COUNT0 0xffc03c50 /* Number of bytes received in endpoint 0 FIFO and Number of bytes received in Host Tx endpoint */
|
|
#define USB_COUNT0 0xffc03c50 /* Number of bytes received in endpoint 0 FIFO and Number of bytes received in Host Tx endpoint */
|
|
|
|
+#define USB_RXCOUNT 0xffc03c50 /* Number of bytes received in endpoint 0 FIFO and Number of bytes received in Host Tx endpoint */
|
|
|
|
+#define USB_TXTYPE 0xffc03c54 /* Sets the transaction protocol and peripheral endpoint number for the Host Tx endpoint */
|
|
|
|
+#define USB_NAKLIMIT0 0xffc03c58 /* Sets the NAK response timeout on Endpoint 0 and on Bulk transfers for Host Tx endpoint */
|
|
|
|
+#define USB_TXINTERVAL 0xffc03c58 /* Sets the NAK response timeout on Endpoint 0 and on Bulk transfers for Host Tx endpoint */
|
|
|
|
+#define USB_RXTYPE 0xffc03c5c /* Sets the transaction protocol and peripheral endpoint number for the Host Rx endpoint */
|
|
|
|
+#define USB_RXINTERVAL 0xffc03c60 /* Sets the polling interval for Interrupt and Isochronous transfers or the NAK response timeout on Bulk transfers */
|
|
|
|
+#define USB_TXCOUNT 0xffc03c68 /* Number of bytes to be written to the selected endpoint Tx FIFO */
|
|
|
|
+
|
|
|
|
+/* USB Endpoint FIFO Registers */
|
|
|
|
+
|
|
|
|
+#define USB_EP0_FIFO 0xffc03c80 /* Endpoint 0 FIFO */
|
|
|
|
+#define USB_EP1_FIFO 0xffc03c88 /* Endpoint 1 FIFO */
|
|
|
|
+#define USB_EP2_FIFO 0xffc03c90 /* Endpoint 2 FIFO */
|
|
|
|
+#define USB_EP3_FIFO 0xffc03c98 /* Endpoint 3 FIFO */
|
|
|
|
+#define USB_EP4_FIFO 0xffc03ca0 /* Endpoint 4 FIFO */
|
|
|
|
+#define USB_EP5_FIFO 0xffc03ca8 /* Endpoint 5 FIFO */
|
|
|
|
+#define USB_EP6_FIFO 0xffc03cb0 /* Endpoint 6 FIFO */
|
|
|
|
+#define USB_EP7_FIFO 0xffc03cb8 /* Endpoint 7 FIFO */
|
|
|
|
+
|
|
|
|
+/* USB OTG Control Registers */
|
|
|
|
+
|
|
|
|
+#define USB_OTG_DEV_CTL 0xffc03d00 /* OTG Device Control Register */
|
|
|
|
+#define USB_OTG_VBUS_IRQ 0xffc03d04 /* OTG VBUS Control Interrupts */
|
|
|
|
+#define USB_OTG_VBUS_MASK 0xffc03d08 /* VBUS Control Interrupt Enable */
|
|
|
|
+
|
|
|
|
+/* USB Phy Control Registers */
|
|
|
|
+
|
|
|
|
+#define USB_LINKINFO 0xffc03d48 /* Enables programming of some PHY-side delays */
|
|
|
|
+#define USB_VPLEN 0xffc03d4c /* Determines duration of VBUS pulse for VBUS charging */
|
|
|
|
+#define USB_HS_EOF1 0xffc03d50 /* Time buffer for High-Speed transactions */
|
|
|
|
+#define USB_FS_EOF1 0xffc03d54 /* Time buffer for Full-Speed transactions */
|
|
|
|
+#define USB_LS_EOF1 0xffc03d58 /* Time buffer for Low-Speed transactions */
|
|
|
|
+
|
|
|
|
+/* (APHY_CNTRL is for ADI usage only) */
|
|
|
|
+
|
|
|
|
+#define USB_APHY_CNTRL 0xffc03de0 /* Register that increases visibility of Analog PHY */
|
|
|
|
+
|
|
|
|
+/* (APHY_CALIB is for ADI usage only) */
|
|
|
|
+
|
|
|
|
+#define USB_APHY_CALIB 0xffc03de4 /* Register used to set some calibration values */
|
|
|
|
+#define USB_APHY_CNTRL2 0xffc03de8 /* Register used to prevent re-enumeration once Moab goes into hibernate mode */
|
|
|
|
+
|
|
|
|
+/* (PHY_TEST is for ADI usage only) */
|
|
|
|
+
|
|
|
|
+#define USB_PHY_TEST 0xffc03dec /* Used for reducing simulation time and simplifies FIFO testability */
|
|
|
|
+#define USB_PLLOSC_CTRL 0xffc03df0 /* Used to program different parameters for USB PLL and Oscillator */
|
|
|
|
+#define USB_SRP_CLKDIV 0xffc03df4 /* Used to program clock divide value for the clock fed to the SRP detection logic */
|
|
|
|
+
|
|
|
|
+/* USB Endpoint 0 Control Registers */
|
|
|
|
+
|
|
|
|
+#define USB_EP_NI0_TXMAXP 0xffc03e00 /* Maximum packet size for Host Tx endpoint0 */
|
|
|
|
+#define USB_EP_NI0_TXCSR 0xffc03e04 /* Control Status register for endpoint 0 */
|
|
|
|
+#define USB_EP_NI0_RXMAXP 0xffc03e08 /* Maximum packet size for Host Rx endpoint0 */
|
|
|
|
+#define USB_EP_NI0_RXCSR 0xffc03e0c /* Control Status register for Host Rx endpoint0 */
|
|
|
|
+#define USB_EP_NI0_RXCOUNT 0xffc03e10 /* Number of bytes received in endpoint 0 FIFO */
|
|
|
|
+#define USB_EP_NI0_TXTYPE 0xffc03e14 /* Sets the transaction protocol and peripheral endpoint number for the Host Tx endpoint0 */
|
|
|
|
+#define USB_EP_NI0_TXINTERVAL 0xffc03e18 /* Sets the NAK response timeout on Endpoint 0 */
|
|
|
|
+#define USB_EP_NI0_RXTYPE 0xffc03e1c /* Sets the transaction protocol and peripheral endpoint number for the Host Rx endpoint0 */
|
|
|
|
+#define USB_EP_NI0_RXINTERVAL 0xffc03e20 /* Sets the polling interval for Interrupt/Isochronous transfers or the NAK response timeout on Bulk transfers for Host Rx endpoint0 */
|
|
|
|
+
|
|
|
|
+/* USB Endpoint 1 Control Registers */
|
|
|
|
+
|
|
|
|
+#define USB_EP_NI0_TXCOUNT 0xffc03e28 /* Number of bytes to be written to the endpoint0 Tx FIFO */
|
|
|
|
+#define USB_EP_NI1_TXMAXP 0xffc03e40 /* Maximum packet size for Host Tx endpoint1 */
|
|
|
|
+#define USB_EP_NI1_TXCSR 0xffc03e44 /* Control Status register for endpoint1 */
|
|
|
|
+#define USB_EP_NI1_RXMAXP 0xffc03e48 /* Maximum packet size for Host Rx endpoint1 */
|
|
|
|
+#define USB_EP_NI1_RXCSR 0xffc03e4c /* Control Status register for Host Rx endpoint1 */
|
|
|
|
+#define USB_EP_NI1_RXCOUNT 0xffc03e50 /* Number of bytes received in endpoint1 FIFO */
|
|
|
|
+#define USB_EP_NI1_TXTYPE 0xffc03e54 /* Sets the transaction protocol and peripheral endpoint number for the Host Tx endpoint1 */
|
|
|
|
+#define USB_EP_NI1_TXINTERVAL 0xffc03e58 /* Sets the NAK response timeout on Endpoint1 */
|
|
|
|
+#define USB_EP_NI1_RXTYPE 0xffc03e5c /* Sets the transaction protocol and peripheral endpoint number for the Host Rx endpoint1 */
|
|
|
|
+#define USB_EP_NI1_RXINTERVAL 0xffc03e60 /* Sets the polling interval for Interrupt/Isochronous transfers or the NAK response timeout on Bulk transfers for Host Rx endpoint1 */
|
|
|
|
+
|
|
|
|
+/* USB Endpoint 2 Control Registers */
|
|
|
|
+
|
|
|
|
+#define USB_EP_NI1_TXCOUNT 0xffc03e68 /* Number of bytes to be written to the+H102 endpoint1 Tx FIFO */
|
|
|
|
+#define USB_EP_NI2_TXMAXP 0xffc03e80 /* Maximum packet size for Host Tx endpoint2 */
|
|
|
|
+#define USB_EP_NI2_TXCSR 0xffc03e84 /* Control Status register for endpoint2 */
|
|
|
|
+#define USB_EP_NI2_RXMAXP 0xffc03e88 /* Maximum packet size for Host Rx endpoint2 */
|
|
|
|
+#define USB_EP_NI2_RXCSR 0xffc03e8c /* Control Status register for Host Rx endpoint2 */
|
|
|
|
+#define USB_EP_NI2_RXCOUNT 0xffc03e90 /* Number of bytes received in endpoint2 FIFO */
|
|
|
|
+#define USB_EP_NI2_TXTYPE 0xffc03e94 /* Sets the transaction protocol and peripheral endpoint number for the Host Tx endpoint2 */
|
|
|
|
+#define USB_EP_NI2_TXINTERVAL 0xffc03e98 /* Sets the NAK response timeout on Endpoint2 */
|
|
|
|
+#define USB_EP_NI2_RXTYPE 0xffc03e9c /* Sets the transaction protocol and peripheral endpoint number for the Host Rx endpoint2 */
|
|
|
|
+#define USB_EP_NI2_RXINTERVAL 0xffc03ea0 /* Sets the polling interval for Interrupt/Isochronous transfers or the NAK response timeout on Bulk transfers for Host Rx endpoint2 */
|
|
|
|
+
|
|
|
|
+/* USB Endpoint 3 Control Registers */
|
|
|
|
+
|
|
|
|
+#define USB_EP_NI2_TXCOUNT 0xffc03ea8 /* Number of bytes to be written to the endpoint2 Tx FIFO */
|
|
|
|
+#define USB_EP_NI3_TXMAXP 0xffc03ec0 /* Maximum packet size for Host Tx endpoint3 */
|
|
|
|
+#define USB_EP_NI3_TXCSR 0xffc03ec4 /* Control Status register for endpoint3 */
|
|
|
|
+#define USB_EP_NI3_RXMAXP 0xffc03ec8 /* Maximum packet size for Host Rx endpoint3 */
|
|
|
|
+#define USB_EP_NI3_RXCSR 0xffc03ecc /* Control Status register for Host Rx endpoint3 */
|
|
|
|
+#define USB_EP_NI3_RXCOUNT 0xffc03ed0 /* Number of bytes received in endpoint3 FIFO */
|
|
|
|
+#define USB_EP_NI3_TXTYPE 0xffc03ed4 /* Sets the transaction protocol and peripheral endpoint number for the Host Tx endpoint3 */
|
|
|
|
+#define USB_EP_NI3_TXINTERVAL 0xffc03ed8 /* Sets the NAK response timeout on Endpoint3 */
|
|
|
|
+#define USB_EP_NI3_RXTYPE 0xffc03edc /* Sets the transaction protocol and peripheral endpoint number for the Host Rx endpoint3 */
|
|
|
|
+#define USB_EP_NI3_RXINTERVAL 0xffc03ee0 /* Sets the polling interval for Interrupt/Isochronous transfers or the NAK response timeout on Bulk transfers for Host Rx endpoint3 */
|
|
|
|
+
|
|
|
|
+/* USB Endpoint 4 Control Registers */
|
|
|
|
+
|
|
|
|
+#define USB_EP_NI3_TXCOUNT 0xffc03ee8 /* Number of bytes to be written to the H124endpoint3 Tx FIFO */
|
|
|
|
+#define USB_EP_NI4_TXMAXP 0xffc03f00 /* Maximum packet size for Host Tx endpoint4 */
|
|
|
|
+#define USB_EP_NI4_TXCSR 0xffc03f04 /* Control Status register for endpoint4 */
|
|
|
|
+#define USB_EP_NI4_RXMAXP 0xffc03f08 /* Maximum packet size for Host Rx endpoint4 */
|
|
|
|
+#define USB_EP_NI4_RXCSR 0xffc03f0c /* Control Status register for Host Rx endpoint4 */
|
|
|
|
+#define USB_EP_NI4_RXCOUNT 0xffc03f10 /* Number of bytes received in endpoint4 FIFO */
|
|
|
|
+#define USB_EP_NI4_TXTYPE 0xffc03f14 /* Sets the transaction protocol and peripheral endpoint number for the Host Tx endpoint4 */
|
|
|
|
+#define USB_EP_NI4_TXINTERVAL 0xffc03f18 /* Sets the NAK response timeout on Endpoint4 */
|
|
|
|
+#define USB_EP_NI4_RXTYPE 0xffc03f1c /* Sets the transaction protocol and peripheral endpoint number for the Host Rx endpoint4 */
|
|
|
|
+#define USB_EP_NI4_RXINTERVAL 0xffc03f20 /* Sets the polling interval for Interrupt/Isochronous transfers or the NAK response timeout on Bulk transfers for Host Rx endpoint4 */
|
|
|
|
+
|