Go to the documentation of this file.
28 #define CUR_REGISTERMAP_VERSION 0x10000
30 #define HARDWARE_VERSION 0x00
31 #define REGISTERMAP_VERSION 0x04
36 #define SPI_CONTROL 0x10
45 #define INTERRUPT_BASE (0x40)
47 #define INTERRUPT_ENABLE (INTERRUPT_BASE + 0x00)
48 #define MSI0_ENABLE (INTERRUPT_BASE + 0x00)
49 #define MSI1_ENABLE (INTERRUPT_BASE + 0x04)
50 #define MSI2_ENABLE (INTERRUPT_BASE + 0x08)
51 #define MSI3_ENABLE (INTERRUPT_BASE + 0x0C)
52 #define MSI4_ENABLE (INTERRUPT_BASE + 0x10)
53 #define MSI5_ENABLE (INTERRUPT_BASE + 0x14)
54 #define MSI6_ENABLE (INTERRUPT_BASE + 0x18)
55 #define MSI7_ENABLE (INTERRUPT_BASE + 0x1C)
57 #define INTERRUPT_STATUS (INTERRUPT_BASE + 0x20)
58 #define INTERRUPT_ACK (INTERRUPT_BASE + 0x20)
60 #define INTMASK_I2C1 (0x00000001)
61 #define INTMASK_I2C2 (0x00000002)
62 #define INTMASK_I2C3 (0x00000004)
63 #define INTMASK_I2C4 (0x00000008)
65 #define INTMASK_CIRQ1 (0x00000010)
66 #define INTMASK_CIRQ2 (0x00000020)
67 #define INTMASK_CIRQ3 (0x00000040)
68 #define INTMASK_CIRQ4 (0x00000080)
70 #define INTMASK_TSINPUT1 (0x00000100)
71 #define INTMASK_TSINPUT2 (0x00000200)
72 #define INTMASK_TSINPUT3 (0x00000400)
73 #define INTMASK_TSINPUT4 (0x00000800)
74 #define INTMASK_TSINPUT5 (0x00001000)
75 #define INTMASK_TSINPUT6 (0x00002000)
76 #define INTMASK_TSINPUT7 (0x00004000)
77 #define INTMASK_TSINPUT8 (0x00008000)
79 #define INTMASK_TSOUTPUT1 (0x00010000)
80 #define INTMASK_TSOUTPUT2 (0x00020000)
81 #define INTMASK_TSOUTPUT3 (0x00040000)
82 #define INTMASK_TSOUTPUT4 (0x00080000)
87 #define I2C_BASE (0x80)
89 #define I2C_COMMAND (0x00)
90 #define I2C_TIMING (0x04)
91 #define I2C_TASKLENGTH (0x08)
92 #define I2C_TASKADDRESS (0x0C)
94 #define I2C_MONITOR (0x1C)
96 #define I2C_BASE_1 (I2C_BASE + 0x00)
97 #define I2C_BASE_2 (I2C_BASE + 0x20)
98 #define I2C_BASE_3 (I2C_BASE + 0x40)
99 #define I2C_BASE_4 (I2C_BASE + 0x60)
101 #define I2C_BASE_N(i) (I2C_BASE + (i) * 0x20)
103 #define I2C_TASKMEM_BASE (0x1000)
104 #define I2C_TASKMEM_SIZE (0x1000)
106 #define I2C_SPEED_400 (0x04030404)
107 #define I2C_SPEED_200 (0x09080909)
108 #define I2C_SPEED_154 (0x0C0B0C0C)
109 #define I2C_SPEED_100 (0x13121313)
110 #define I2C_SPEED_77 (0x19181919)
111 #define I2C_SPEED_50 (0x27262727)
117 #define DMA_BASE_WRITE (0x100)
118 #define DMA_BASE_READ (0x140)
120 #define DMA_CONTROL (0x00)
121 #define DMA_ERROR (0x04)
123 #define DMA_DIAG_CONTROL (0x1C)
124 #define DMA_DIAG_PACKETCOUNTER_LOW (0x20)
125 #define DMA_DIAG_PACKETCOUNTER_HIGH (0x24)
126 #define DMA_DIAG_TIMECOUNTER_LOW (0x28)
127 #define DMA_DIAG_TIMECOUNTER_HIGH (0x2C)
128 #define DMA_DIAG_RECHECKCOUNTER (0x30)
129 #define DMA_DIAG_WAITTIMEOUTINIT (0x34)
130 #define DMA_DIAG_WAITOVERFLOWCOUNTER (0x38)
131 #define DMA_DIAG_WAITCOUNTER (0x3C)
136 #define TS_INPUT_BASE (0x200)
137 #define TS_INPUT_CONTROL(i) (TS_INPUT_BASE + (i) * 16 + 0x00)
139 #define TS_OUTPUT_BASE (0x280)
140 #define TS_OUTPUT_CONTROL(i) (TS_OUTPUT_BASE + (i) * 16 + 0x00)
142 #define DMA_BUFFER_BASE (0x300)
144 #define DMA_BUFFER_CONTROL(i) (DMA_BUFFER_BASE + (i) * 16 + 0x00)
145 #define DMA_BUFFER_ACK(i) (DMA_BUFFER_BASE + (i) * 16 + 0x04)
146 #define DMA_BUFFER_CURRENT(i) (DMA_BUFFER_BASE + (i) * 16 + 0x08)
147 #define DMA_BUFFER_SIZE(i) (DMA_BUFFER_BASE + (i) * 16 + 0x0c)
149 #define DMA_BASE_ADDRESS_TABLE (0x2000)
150 #define DMA_BASE_ADDRESS_TABLE_ENTRIES (512)