|
@@ -210,3 +210,149 @@
|
|
#define USB_EP_NI4_RXTYPE 0xffc03f1c /* Sets the transaction protocol and peripheral endpoint number for the Host Rx 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 */
|
|
#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 */
|
|
|
|
|
|
|
|
+/* USB Endpoint 5 Control Registers */
|
|
|
|
+
|
|
|
|
+#define USB_EP_NI4_TXCOUNT 0xffc03f28 /* Number of bytes to be written to the endpoint4 Tx FIFO */
|
|
|
|
+#define USB_EP_NI5_TXMAXP 0xffc03f40 /* Maximum packet size for Host Tx endpoint5 */
|
|
|
|
+#define USB_EP_NI5_TXCSR 0xffc03f44 /* Control Status register for endpoint5 */
|
|
|
|
+#define USB_EP_NI5_RXMAXP 0xffc03f48 /* Maximum packet size for Host Rx endpoint5 */
|
|
|
|
+#define USB_EP_NI5_RXCSR 0xffc03f4c /* Control Status register for Host Rx endpoint5 */
|
|
|
|
+#define USB_EP_NI5_RXCOUNT 0xffc03f50 /* Number of bytes received in endpoint5 FIFO */
|
|
|
|
+#define USB_EP_NI5_TXTYPE 0xffc03f54 /* Sets the transaction protocol and peripheral endpoint number for the Host Tx endpoint5 */
|
|
|
|
+#define USB_EP_NI5_TXINTERVAL 0xffc03f58 /* Sets the NAK response timeout on Endpoint5 */
|
|
|
|
+#define USB_EP_NI5_RXTYPE 0xffc03f5c /* Sets the transaction protocol and peripheral endpoint number for the Host Rx endpoint5 */
|
|
|
|
+#define USB_EP_NI5_RXINTERVAL 0xffc03f60 /* Sets the polling interval for Interrupt/Isochronous transfers or the NAK response timeout on Bulk transfers for Host Rx endpoint5 */
|
|
|
|
+
|
|
|
|
+/* USB Endpoint 6 Control Registers */
|
|
|
|
+
|
|
|
|
+#define USB_EP_NI5_TXCOUNT 0xffc03f68 /* Number of bytes to be written to the H145endpoint5 Tx FIFO */
|
|
|
|
+#define USB_EP_NI6_TXMAXP 0xffc03f80 /* Maximum packet size for Host Tx endpoint6 */
|
|
|
|
+#define USB_EP_NI6_TXCSR 0xffc03f84 /* Control Status register for endpoint6 */
|
|
|
|
+#define USB_EP_NI6_RXMAXP 0xffc03f88 /* Maximum packet size for Host Rx endpoint6 */
|
|
|
|
+#define USB_EP_NI6_RXCSR 0xffc03f8c /* Control Status register for Host Rx endpoint6 */
|
|
|
|
+#define USB_EP_NI6_RXCOUNT 0xffc03f90 /* Number of bytes received in endpoint6 FIFO */
|
|
|
|
+#define USB_EP_NI6_TXTYPE 0xffc03f94 /* Sets the transaction protocol and peripheral endpoint number for the Host Tx endpoint6 */
|
|
|
|
+#define USB_EP_NI6_TXINTERVAL 0xffc03f98 /* Sets the NAK response timeout on Endpoint6 */
|
|
|
|
+#define USB_EP_NI6_RXTYPE 0xffc03f9c /* Sets the transaction protocol and peripheral endpoint number for the Host Rx endpoint6 */
|
|
|
|
+#define USB_EP_NI6_RXINTERVAL 0xffc03fa0 /* Sets the polling interval for Interrupt/Isochronous transfers or the NAK response timeout on Bulk transfers for Host Rx endpoint6 */
|
|
|
|
+
|
|
|
|
+/* USB Endpoint 7 Control Registers */
|
|
|
|
+
|
|
|
|
+#define USB_EP_NI6_TXCOUNT 0xffc03fa8 /* Number of bytes to be written to the endpoint6 Tx FIFO */
|
|
|
|
+#define USB_EP_NI7_TXMAXP 0xffc03fc0 /* Maximum packet size for Host Tx endpoint7 */
|
|
|
|
+#define USB_EP_NI7_TXCSR 0xffc03fc4 /* Control Status register for endpoint7 */
|
|
|
|
+#define USB_EP_NI7_RXMAXP 0xffc03fc8 /* Maximum packet size for Host Rx endpoint7 */
|
|
|
|
+#define USB_EP_NI7_RXCSR 0xffc03fcc /* Control Status register for Host Rx endpoint7 */
|
|
|
|
+#define USB_EP_NI7_RXCOUNT 0xffc03fd0 /* Number of bytes received in endpoint7 FIFO */
|
|
|
|
+#define USB_EP_NI7_TXTYPE 0xffc03fd4 /* Sets the transaction protocol and peripheral endpoint number for the Host Tx endpoint7 */
|
|
|
|
+#define USB_EP_NI7_TXINTERVAL 0xffc03fd8 /* Sets the NAK response timeout on Endpoint7 */
|
|
|
|
+#define USB_EP_NI7_RXTYPE 0xffc03fdc /* Sets the transaction protocol and peripheral endpoint number for the Host Rx endpoint7 */
|
|
|
|
+#define USB_EP_NI7_RXINTERVAL 0xffc03ff0 /* Sets the polling interval for Interrupt/Isochronous transfers or the NAK response timeout on Bulk transfers for Host Rx endpoint7 */
|
|
|
|
+#define USB_EP_NI7_TXCOUNT 0xffc03ff8 /* Number of bytes to be written to the endpoint7 Tx FIFO */
|
|
|
|
+#define USB_DMA_INTERRUPT 0xffc04000 /* Indicates pending interrupts for the DMA channels */
|
|
|
|
+
|
|
|
|
+/* USB Channel 0 Config Registers */
|
|
|
|
+
|
|
|
|
+#define USB_DMA0CONTROL 0xffc04004 /* DMA master channel 0 configuration */
|
|
|
|
+#define USB_DMA0ADDRLOW 0xffc04008 /* Lower 16-bits of memory source/destination address for DMA master channel 0 */
|
|
|
|
+#define USB_DMA0ADDRHIGH 0xffc0400c /* Upper 16-bits of memory source/destination address for DMA master channel 0 */
|
|
|
|
+#define USB_DMA0COUNTLOW 0xffc04010 /* Lower 16-bits of byte count of DMA transfer for DMA master channel 0 */
|
|
|
|
+#define USB_DMA0COUNTHIGH 0xffc04014 /* Upper 16-bits of byte count of DMA transfer for DMA master channel 0 */
|
|
|
|
+
|
|
|
|
+/* USB Channel 1 Config Registers */
|
|
|
|
+
|
|
|
|
+#define USB_DMA1CONTROL 0xffc04024 /* DMA master channel 1 configuration */
|
|
|
|
+#define USB_DMA1ADDRLOW 0xffc04028 /* Lower 16-bits of memory source/destination address for DMA master channel 1 */
|
|
|
|
+#define USB_DMA1ADDRHIGH 0xffc0402c /* Upper 16-bits of memory source/destination address for DMA master channel 1 */
|
|
|
|
+#define USB_DMA1COUNTLOW 0xffc04030 /* Lower 16-bits of byte count of DMA transfer for DMA master channel 1 */
|
|
|
|
+#define USB_DMA1COUNTHIGH 0xffc04034 /* Upper 16-bits of byte count of DMA transfer for DMA master channel 1 */
|
|
|
|
+
|
|
|
|
+/* USB Channel 2 Config Registers */
|
|
|
|
+
|
|
|
|
+#define USB_DMA2CONTROL 0xffc04044 /* DMA master channel 2 configuration */
|
|
|
|
+#define USB_DMA2ADDRLOW 0xffc04048 /* Lower 16-bits of memory source/destination address for DMA master channel 2 */
|
|
|
|
+#define USB_DMA2ADDRHIGH 0xffc0404c /* Upper 16-bits of memory source/destination address for DMA master channel 2 */
|
|
|
|
+#define USB_DMA2COUNTLOW 0xffc04050 /* Lower 16-bits of byte count of DMA transfer for DMA master channel 2 */
|
|
|
|
+#define USB_DMA2COUNTHIGH 0xffc04054 /* Upper 16-bits of byte count of DMA transfer for DMA master channel 2 */
|
|
|
|
+
|
|
|
|
+/* USB Channel 3 Config Registers */
|
|
|
|
+
|
|
|
|
+#define USB_DMA3CONTROL 0xffc04064 /* DMA master channel 3 configuration */
|
|
|
|
+#define USB_DMA3ADDRLOW 0xffc04068 /* Lower 16-bits of memory source/destination address for DMA master channel 3 */
|
|
|
|
+#define USB_DMA3ADDRHIGH 0xffc0406c /* Upper 16-bits of memory source/destination address for DMA master channel 3 */
|
|
|
|
+#define USB_DMA3COUNTLOW 0xffc04070 /* Lower 16-bits of byte count of DMA transfer for DMA master channel 3 */
|
|
|
|
+#define USB_DMA3COUNTHIGH 0xffc04074 /* Upper 16-bits of byte count of DMA transfer for DMA master channel 3 */
|
|
|
|
+
|
|
|
|
+/* USB Channel 4 Config Registers */
|
|
|
|
+
|
|
|
|
+#define USB_DMA4CONTROL 0xffc04084 /* DMA master channel 4 configuration */
|
|
|
|
+#define USB_DMA4ADDRLOW 0xffc04088 /* Lower 16-bits of memory source/destination address for DMA master channel 4 */
|
|
|
|
+#define USB_DMA4ADDRHIGH 0xffc0408c /* Upper 16-bits of memory source/destination address for DMA master channel 4 */
|
|
|
|
+#define USB_DMA4COUNTLOW 0xffc04090 /* Lower 16-bits of byte count of DMA transfer for DMA master channel 4 */
|
|
|
|
+#define USB_DMA4COUNTHIGH 0xffc04094 /* Upper 16-bits of byte count of DMA transfer for DMA master channel 4 */
|
|
|
|
+
|
|
|
|
+/* USB Channel 5 Config Registers */
|
|
|
|
+
|
|
|
|
+#define USB_DMA5CONTROL 0xffc040a4 /* DMA master channel 5 configuration */
|
|
|
|
+#define USB_DMA5ADDRLOW 0xffc040a8 /* Lower 16-bits of memory source/destination address for DMA master channel 5 */
|
|
|
|
+#define USB_DMA5ADDRHIGH 0xffc040ac /* Upper 16-bits of memory source/destination address for DMA master channel 5 */
|
|
|
|
+#define USB_DMA5COUNTLOW 0xffc040b0 /* Lower 16-bits of byte count of DMA transfer for DMA master channel 5 */
|
|
|
|
+#define USB_DMA5COUNTHIGH 0xffc040b4 /* Upper 16-bits of byte count of DMA transfer for DMA master channel 5 */
|
|
|
|
+
|
|
|
|
+/* USB Channel 6 Config Registers */
|
|
|
|
+
|
|
|
|
+#define USB_DMA6CONTROL 0xffc040c4 /* DMA master channel 6 configuration */
|
|
|
|
+#define USB_DMA6ADDRLOW 0xffc040c8 /* Lower 16-bits of memory source/destination address for DMA master channel 6 */
|
|
|
|
+#define USB_DMA6ADDRHIGH 0xffc040cc /* Upper 16-bits of memory source/destination address for DMA master channel 6 */
|
|
|
|
+#define USB_DMA6COUNTLOW 0xffc040d0 /* Lower 16-bits of byte count of DMA transfer for DMA master channel 6 */
|
|
|
|
+#define USB_DMA6COUNTHIGH 0xffc040d4 /* Upper 16-bits of byte count of DMA transfer for DMA master channel 6 */
|
|
|
|
+
|
|
|
|
+/* USB Channel 7 Config Registers */
|
|
|
|
+
|
|
|
|
+#define USB_DMA7CONTROL 0xffc040e4 /* DMA master channel 7 configuration */
|
|
|
|
+#define USB_DMA7ADDRLOW 0xffc040e8 /* Lower 16-bits of memory source/destination address for DMA master channel 7 */
|
|
|
|
+#define USB_DMA7ADDRHIGH 0xffc040ec /* Upper 16-bits of memory source/destination address for DMA master channel 7 */
|
|
|
|
+#define USB_DMA7COUNTLOW 0xffc040f0 /* Lower 16-bits of byte count of DMA transfer for DMA master channel 7 */
|
|
|
|
+#define USB_DMA7COUNTHIGH 0xffc040f4 /* Upper 16-bits of byte count of DMA transfer for DMA master channel 7 */
|
|
|
|
+
|
|
|
|
+/* Keypad Registers */
|
|
|
|
+
|
|
|
|
+#define KPAD_CTL 0xffc04100 /* Controls keypad module enable and disable */
|
|
|
|
+#define KPAD_PRESCALE 0xffc04104 /* Establish a time base for programing the KPAD_MSEL register */
|
|
|
|
+#define KPAD_MSEL 0xffc04108 /* Selects delay parameters for keypad interface sensitivity */
|
|
|
|
+#define KPAD_ROWCOL 0xffc0410c /* Captures the row and column output values of the keys pressed */
|
|
|
|
+#define KPAD_STAT 0xffc04110 /* Holds and clears the status of the keypad interface interrupt */
|
|
|
|
+#define KPAD_SOFTEVAL 0xffc04114 /* Lets software force keypad interface to check for keys being pressed */
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/* ********************************************************** */
|
|
|
|
+/* SINGLE BIT MACRO PAIRS (bit mask and negated one) */
|
|
|
|
+/* and MULTI BIT READ MACROS */
|
|
|
|
+/* ********************************************************** */
|
|
|
|
+
|
|
|
|
+/* Bit masks for KPAD_CTL */
|
|
|
|
+
|
|
|
|
+#define KPAD_EN 0x1 /* Keypad Enable */
|
|
|
|
+#define KPAD_IRQMODE 0x6 /* Key Press Interrupt Enable */
|
|
|
|
+#define KPAD_ROWEN 0x1c00 /* Row Enable Width */
|
|
|
|
+#define KPAD_COLEN 0xe000 /* Column Enable Width */
|
|
|
|
+
|
|
|
|
+/* Bit masks for KPAD_PRESCALE */
|
|
|
|
+
|
|
|
|
+#define KPAD_PRESCALE_VAL 0x3f /* Key Prescale Value */
|
|
|
|
+
|
|
|
|
+/* Bit masks for KPAD_MSEL */
|
|
|
|
+
|
|
|
|
+#define DBON_SCALE 0xff /* Debounce Scale Value */
|
|
|
|
+#define COLDRV_SCALE 0xff00 /* Column Driver Scale Value */
|
|
|
|
+
|
|
|
|
+/* Bit masks for KPAD_ROWCOL */
|
|
|
|
+
|
|
|
|
+#define KPAD_ROW 0xff /* Rows Pressed */
|
|
|
|
+#define KPAD_COL 0xff00 /* Columns Pressed */
|
|
|
|
+
|
|
|
|
+/* Bit masks for KPAD_STAT */
|
|
|
|
+
|
|
|
|
+#define KPAD_IRQ 0x1 /* Keypad Interrupt Status */
|
|
|
|
+#define KPAD_MROWCOL 0x6 /* Multiple Row/Column Keypress Status */
|
|
|
|
+#define KPAD_PRESSED 0x8 /* Key press current status */
|