dc21285reg.h revision 1.5 1 1.5 chris /* $NetBSD: dc21285reg.h,v 1.5 2007/12/14 11:08:03 chris Exp $ */
2 1.1 chris
3 1.1 chris /*
4 1.1 chris * Copyright (c) 1997,1998 Mark Brinicombe.
5 1.1 chris * Copyright (c) 1997,1998 Causality Limited
6 1.1 chris * All rights reserved.
7 1.1 chris *
8 1.1 chris * Redistribution and use in source and binary forms, with or without
9 1.1 chris * modification, are permitted provided that the following conditions
10 1.1 chris * are met:
11 1.1 chris * 1. Redistributions of source code must retain the above copyright
12 1.1 chris * notice, this list of conditions and the following disclaimer.
13 1.1 chris * 2. Redistributions in binary form must reproduce the above copyright
14 1.1 chris * notice, this list of conditions and the following disclaimer in the
15 1.1 chris * documentation and/or other materials provided with the distribution.
16 1.1 chris * 3. All advertising materials mentioning features or use of this software
17 1.1 chris * must display the following acknowledgement:
18 1.1 chris * This product includes software developed by Mark Brinicombe
19 1.1 chris * for the NetBSD Project.
20 1.1 chris * 4. The name of the company nor the name of the author may be used to
21 1.1 chris * endorse or promote products derived from this software without specific
22 1.1 chris * prior written permission.
23 1.1 chris *
24 1.1 chris * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
25 1.1 chris * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
26 1.1 chris * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27 1.1 chris * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
28 1.1 chris * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29 1.1 chris * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30 1.1 chris * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 1.1 chris * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 1.1 chris * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 1.1 chris * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 1.1 chris * SUCH DAMAGE.
35 1.1 chris */
36 1.1 chris
37 1.1 chris /*
38 1.1 chris * DC21285 register definitions
39 1.1 chris */
40 1.1 chris
41 1.1 chris /* PCI registers in CSR space */
42 1.1 chris
43 1.1 chris #define VENDOR_ID 0x00
44 1.1 chris #define DC21285_VENDOR_ID 0x1011
45 1.1 chris #define DEVICE_ID 0x02
46 1.1 chris #define DC21285_DEVICE_ID 0x1065
47 1.1 chris #define REVISION 0x08
48 1.1 chris #define CLASS 0x0A
49 1.5 chris #define CSR_BASE_MEMORY_ADDR 0x10
50 1.5 chris #define CSR_BASE_IO_ADDR 0x14
51 1.5 chris #define SDRAM_MEMORY_ADDR 0x18
52 1.1 chris
53 1.1 chris /* Other PCI control / status registers */
54 1.1 chris
55 1.1 chris #define OUTBOUND_INT_STATUS 0x030
56 1.1 chris #define OUTBOUND_INT_MASK 0x034
57 1.1 chris #define I2O_INBOUND_FIFO 0x040
58 1.1 chris #define I2O_OUTBOUND_FIFO 0x044
59 1.1 chris
60 1.1 chris /* Mailbox registers */
61 1.1 chris
62 1.1 chris #define MAILBOX_0 0x050
63 1.1 chris #define MAILBOX_1 0x054
64 1.1 chris #define MAILBOX_2 0x058
65 1.1 chris #define MAILBOX_3 0x05C
66 1.1 chris
67 1.1 chris #define DOORBELL 0x060
68 1.1 chris #define DOORBELL_SETUP 0x064
69 1.1 chris #define ROM_WRITE_BYTE_ADDRESS 0x068
70 1.1 chris
71 1.1 chris /* DMA Channel registers */
72 1.1 chris
73 1.1 chris #define DMA_CHAN_1_BYTE_COUNT 0x80
74 1.1 chris #define DMA_CHAN_1_PCI_ADDR 0x84
75 1.1 chris #define DMA_CHAN_1_SDRAM_ADDR 0x88
76 1.1 chris #define DMA_CHAN_1_DESCRIPT 0x8C
77 1.1 chris #define DMA_CHAN_1_CONTROL 0x90
78 1.1 chris #define DMA_CHAN_2_BYTE_COUNT 0xA0
79 1.1 chris #define DMA_CHAN_2_PCI_ADDR 0xA4
80 1.1 chris #define DMA_CHAN_2_SDRAM_ADDR 0xA8
81 1.1 chris #define DMA_CHAN_2_DESCRIPTOR 0xAC
82 1.1 chris #define DMA_CHAN_2_CONTROL 0xB0
83 1.1 chris
84 1.1 chris /* Offsets into DMA descriptor */
85 1.1 chris
86 1.1 chris #define DMA_BYTE_COUNT 0
87 1.1 chris #define DMA_PCI_ADDRESS 4
88 1.1 chris #define DMA_SDRAM_ADDRESS 8
89 1.1 chris #define DMA_NEXT_DESCRIPTOR 12
90 1.1 chris
91 1.1 chris /* DMA byte count register bits */
92 1.1 chris
93 1.1 chris #define DMA_INTERBURST_SHIFT 24
94 1.1 chris #define DMA_PCI_TO_SDRAM 0
95 1.1 chris #define DMA_SDRAM_TO_PCI (1 << 30)
96 1.1 chris #define DMA_END_CHAIN (1 << 31)
97 1.1 chris
98 1.1 chris /* DMA control bits */
99 1.1 chris
100 1.1 chris #define DMA_ENABLE (1 << 0)
101 1.1 chris #define DMA_TRANSFER_DONE (1 << 2)
102 1.1 chris #define DMA_ERROR (1 << 3)
103 1.1 chris #define DMA_REGISTOR_DESCRIPTOR (1 << 4)
104 1.1 chris #define DMA_PCI_MEM_READ (0 << 5)
105 1.1 chris #define DMA_PCI_MEM_READ_LINE (1 << 5)
106 1.1 chris #define DMA_PCI_MEM_READ_MULTI1 (2 << 5)
107 1.1 chris #define DMA_PCI_MEM_READ_MULTI2 (3 << 5)
108 1.1 chris #define DMA_CHAIN_DONE (1 << 7)
109 1.1 chris #define DMA_INTERBURST_4 (0 << 8)
110 1.1 chris #define DMA_INTERBURST_8 (1 << 8)
111 1.1 chris #define DMA_INTERBURST_16 (2 << 8)
112 1.1 chris #define DMA_INTERBURST_32 (3 << 8)
113 1.1 chris #define DMA_PCI_LENGTH_8 0
114 1.1 chris #define DMA_PCI_LENGTH_16 (1 << 15)
115 1.1 chris #define DMA_SDRAM_LENGTH_1 (0 << 16)
116 1.1 chris #define DMA_SDRAM_LENGTH_2 (1 << 16)
117 1.1 chris #define DMA_SDRAM_LENGTH_4 (2 << 16)
118 1.1 chris #define DMA_SDRAM_LENGTH_8 (3 << 16)
119 1.1 chris #define DMA_SDRAM_LENGTH_16 (4 << 16)
120 1.1 chris
121 1.1 chris /* CSR Base Address Mask */
122 1.1 chris
123 1.1 chris #define CSR_BA_MASK 0x0F8
124 1.1 chris #define CSR_MASK_128B 0x00000000
125 1.1 chris #define CSR_MASK_512KB 0x00040000
126 1.1 chris #define CSR_MASK_1MB 0x000C0000
127 1.1 chris #define CSR_MASK_2MB 0x001C0000
128 1.1 chris #define CSR_MASK_4MB 0x003C0000
129 1.1 chris #define CSR_MASK_8MB 0x007C0000
130 1.1 chris #define CSR_MASK_16MB 0x00FC0000
131 1.1 chris #define CSR_MASK_32MB 0x01FC0000
132 1.1 chris #define CSR_MASK_64MB 0x03FC0000
133 1.1 chris #define CSR_MASK_128MB 0x07FC0000
134 1.1 chris #define CSR_MASK_256MB 0x0FFC0000
135 1.1 chris #define CSR_BA_OFFSET 0x0FC
136 1.1 chris
137 1.1 chris /* SDRAM Base Address Mask */
138 1.1 chris
139 1.1 chris #define SDRAM_BA_MASK 0x100
140 1.1 chris #define SDRAM_MASK_256KB 0x00000000
141 1.1 chris #define SDRAM_MASK_512KB 0x00040000
142 1.1 chris #define SDRAM_MASK_1MB 0x000C0000
143 1.1 chris #define SDRAM_MASK_2MB 0x001C0000
144 1.1 chris #define SDRAM_MASK_4MB 0x003C0000
145 1.1 chris #define SDRAM_MASK_8MB 0x007C0000
146 1.1 chris #define SDRAM_MASK_16MB 0x00FC0000
147 1.1 chris #define SDRAM_MASK_32MB 0x01FC0000
148 1.1 chris #define SDRAM_MASK_64MB 0x03FC0000
149 1.1 chris #define SDRAM_MASK_128MB 0x07FC0000
150 1.1 chris #define SDRAM_MASK_256MB 0x0FFC0000
151 1.1 chris #define SDRAM_WINDOW_DISABLE (1 << 31)
152 1.1 chris #define SDRAM_BA_OFFSET 0x104
153 1.1 chris
154 1.1 chris /* Expansion ROM Base Address Mask */
155 1.1 chris
156 1.1 chris #define EXPANSION_ROM_BA_MASK 0x108
157 1.1 chris #define ROM_MASK_1MB 0x00000000
158 1.1 chris #define ROM_MASK_2MB 0x00100000
159 1.1 chris #define ROM_MASK_4MB 0x00300000
160 1.1 chris #define ROM_MASK_8MB 0x00700000
161 1.1 chris #define ROM_MASK_16MB 0x00F00000
162 1.1 chris #define ROM_WINDOW_DISABLE (1 << 31)
163 1.1 chris
164 1.1 chris /* SDRAM configuration */
165 1.1 chris
166 1.1 chris #define SDRAM_TIMING 0x10C
167 1.1 chris #define SDRAM_ARRAY_SIZE_0 0x0
168 1.1 chris #define SDRAM_ARRAY_SIZE_1MB 0x1
169 1.1 chris #define SDRAM_ARRAY_SIZE_2MB 0x2
170 1.1 chris #define SDRAM_ARRAY_SIZE_4MB 0x3
171 1.1 chris #define SDRAM_ARRAY_SIZE_8MB 0x4
172 1.1 chris #define SDRAM_ARRAY_SIZE_16MB 0x5
173 1.1 chris #define SDRAM_ARRAY_SIZE_32MB 0x6
174 1.1 chris #define SDRAM_ARRAY_SIZE_64MB 0x7
175 1.1 chris #define SDRAM_2_BANKS 0
176 1.1 chris #define SDRAM_4_BANKS (1 << 3)
177 1.1 chris #define SDRAM_ADDRESS_MUX_SHIFT 4
178 1.1 chris #define SDRAM_ARRAY_BASE_SHIFT 20
179 1.1 chris #define SDRAM_ADDRESS_SIZE_0 0x110
180 1.1 chris #define SDRAM_ADDRESS_SIZE_1 0x114
181 1.1 chris #define SDRAM_ADDRESS_SIZE_2 0x118
182 1.1 chris #define SDRAM_ADDRESS_SIZE_3 0x11C
183 1.1 chris
184 1.1 chris /* I2O registers */
185 1.1 chris
186 1.1 chris #define I2O_INBOUND_FREE_HEAD 0x120
187 1.1 chris #define I2O_INBOUND_POST_TAIL 0x124
188 1.1 chris #define I2O_OUTBOUND_POST_HEAD 0x128
189 1.1 chris #define I2O_OUTBOUND_FREE_TAIL 0x12c
190 1.1 chris #define I2O_INBOUND_FREE_COUNT 0x130
191 1.1 chris #define I2O_OUTBOUND_POST_COUNT 0x134
192 1.1 chris #define I2O_INBOUND_POST_COUNT 0x138
193 1.1 chris
194 1.1 chris /* Control register */
195 1.1 chris
196 1.1 chris #define SA_CONTROL 0x13C
197 1.1 chris #define INITIALIZE_COMPLETE (1 << 0)
198 1.1 chris #define ASSERT_SERR (1 << 1)
199 1.1 chris #define RECEIVED_SERR (1 << 3)
200 1.1 chris #define SA_SDRAM_PARITY_ERROR (1 << 4)
201 1.1 chris #define PCI_SDRAM_PARITY_ERROR (1 << 5)
202 1.1 chris #define DMA_SDRAM_PARITY_ERROR (1 << 6)
203 1.1 chris #define DISCARD_TIMER_EXPIRED (1 << 8)
204 1.1 chris #define PCI_NOT_RESET (1 << 9)
205 1.1 chris #define WATCHDOG_ENABLE (1 << 13)
206 1.1 chris #define I2O_SIZE_256 (0 << 10)
207 1.1 chris #define I2O_SIZE_512 (1 << 10)
208 1.1 chris #define I2O_SIZE_1024 (2 << 10)
209 1.1 chris #define I2O_SIZE_2048 (3 << 10)
210 1.1 chris #define I2O_SIZE_4096 (4 << 10)
211 1.1 chris #define I2O_SIZE_8192 (5 << 10)
212 1.1 chris #define I2O_SIZE_16384 (6 << 10)
213 1.1 chris #define I2O_SIZE_32768 (7 << 10)
214 1.1 chris #define ROM_WIDTH_8 (3 << 14)
215 1.1 chris #define ROM_WIDTH_16 (1 << 14)
216 1.1 chris #define ROM_WIDTH_32 (2 << 14)
217 1.1 chris #define ROM_ACCESS_TIME_SHIFT 16
218 1.1 chris #define ROM_BURST_TIME_SHIFT 20
219 1.1 chris #define ROM_TRISTATE_TIME_SHIFT 24
220 1.1 chris #define XCS_DIRECTION_SHIFT 28
221 1.1 chris #define PCI_CENTRAL_FUNCTION (1 << 31)
222 1.1 chris
223 1.1 chris #define PCI_ADDRESS_EXTENSION 0x140
224 1.1 chris #define PREFETCHABLE_MEM_RANGE 0x144
225 1.1 chris
226 1.1 chris /* XBUS / PCI Arbiter registers */
227 1.1 chris
228 1.1 chris #define XBUS_CYCLE_ARBITER 0x148
229 1.1 chris #define XBUS_CYCLE_0_SHIFT 0
230 1.1 chris #define XBUS_CYCLE_1_SHIFT 3
231 1.1 chris #define XBUS_CYCLE_2_SHIFT 6
232 1.1 chris #define XBUS_CYCLE_3_SHIFT 9
233 1.1 chris #define XBUS_CYCLE_STROBE_SHIFT 12
234 1.1 chris #define XBUS_PCI_ARBITER (1 << 23)
235 1.1 chris #define XBUS_INT_IN_L0_LOW 0
236 1.1 chris #define XBUS_INT_IN_L0_HIGH (1 << 24)
237 1.1 chris #define XBUS_INT_IN_L1_LOW 0
238 1.1 chris #define XBUS_INT_IN_L1_HIGH (1 << 25)
239 1.1 chris #define XBUS_INT_IN_L2_LOW 0
240 1.1 chris #define XBUS_INT_IN_L2_HIGH (1 << 26)
241 1.1 chris #define XBUS_INT_IN_L3_LOW 0
242 1.1 chris #define XBUS_INT_IN_L3_HIGH (1 << 27)
243 1.1 chris #define XBUS_INT_XCS0_LOW 0
244 1.1 chris #define XBUS_INT_XCS0_HIGH (1 << 28)
245 1.1 chris #define XBUS_INT_XCS1_LOW 0
246 1.1 chris #define XBUS_INT_XCS1_HIGH (1 << 29)
247 1.1 chris #define XBUS_INT_XCS2_LOW 0
248 1.1 chris #define XBUS_INT_XCS2_HIGH (1 << 30)
249 1.1 chris #define XBUS_PCI_INT_REQUEST (1 << 31)
250 1.1 chris
251 1.1 chris #define XBUS_IO_STROBE_MASK 0x14C
252 1.1 chris #define XBUS_IO_STROBE_0_SHIFT 0
253 1.1 chris #define XBUS_IO_STROBE_2_SHIFT 8
254 1.1 chris #define XBUS_IO_STROBE_3_SHIFT 16
255 1.1 chris #define XBUS_IO_STROBE_4_SHIFT 24
256 1.1 chris
257 1.1 chris #define DOORBELL_PCI_MASK 0x150
258 1.1 chris #define DOORBELL_SA_MASK 0x154
259 1.1 chris
260 1.1 chris /* UART registers */
261 1.1 chris
262 1.1 chris #define UART_DATA 0x160
263 1.1 chris #define UART_RX_STAT 0x164
264 1.1 chris #define UART_PARITY_ERROR 0x01
265 1.1 chris #define UART_FRAME_ERROR 0x02
266 1.1 chris #define UART_OVERRUN_ERROR 0x04
267 1.1 chris #define UART_RX_ERROR (UART_PARITY_ERROR | UART_FRAME_ERROR \
268 1.1 chris | UART_OVERRUN_ERROR)
269 1.1 chris #define UART_H_UBRLCR 0x168
270 1.1 chris #define UART_BREAK 0x01
271 1.1 chris #define UART_PARITY_ENABLE 0x02
272 1.1 chris #define UART_ODD_PARITY 0x00
273 1.1 chris #define UART_EVEN_PARITY 0x04
274 1.1 chris #define UART_STOP_BITS_1 0x00
275 1.1 chris #define UART_STOP_BITS_2 0x08
276 1.1 chris #define UART_ENABLE_FIFO 0x10
277 1.1 chris #define UART_DATA_BITS_5 0x00
278 1.1 chris #define UART_DATA_BITS_6 0x20
279 1.1 chris #define UART_DATA_BITS_7 0x40
280 1.1 chris #define UART_DATA_BITS_8 0x60
281 1.1 chris #define UART_M_UBRLCR 0x16C
282 1.1 chris #define UART_L_UBRLCR 0x170
283 1.1 chris #define UART_BRD(fclk, x) (((fclk) / 4 / 16 / x) - 1)
284 1.1 chris
285 1.1 chris #define UART_CONTROL 0x174
286 1.1 chris #define UART_ENABLE 0x01
287 1.1 chris #define UART_SIR_ENABLE 0x02
288 1.1 chris #define UART_IRDA_ENABLE 0x04
289 1.1 chris #define UART_FLAGS 0x178
290 1.1 chris #define UART_TX_BUSY 0x08
291 1.1 chris #define UART_RX_FULL 0x10
292 1.1 chris #define UART_TX_EMPTY 0x20
293 1.1 chris
294 1.1 chris /* Interrupt numbers for IRQ and FIQ registers */
295 1.1 chris
296 1.1 chris #define IRQ_RESERVED0 0x00
297 1.1 chris #define IRQ_SOFTINT 0x01
298 1.1 chris #define IRQ_SERIAL_RX 0x02
299 1.1 chris #define IRQ_SERIAL_TX 0x03
300 1.1 chris #define IRQ_TIMER_1 0x04
301 1.1 chris #define IRQ_TIMER_2 0x05
302 1.1 chris #define IRQ_TIMER_3 0x06
303 1.1 chris #define IRQ_TIMER_4 0x07
304 1.1 chris #define IRQ_IN_L0 0x08
305 1.1 chris #define IRQ_IN_L1 0x09
306 1.1 chris #define IRQ_IN_L2 0x0A
307 1.1 chris #define IRQ_IN_L3 0x0B
308 1.1 chris #define IRQ_XCS_L0 0x0C
309 1.1 chris #define IRQ_XCS_L1 0x0D
310 1.1 chris #define IRQ_XCS_L2 0x0E
311 1.1 chris #define IRQ_DOORBELL 0x0F
312 1.1 chris #define IRQ_DMA_1 0x10
313 1.1 chris #define IRQ_DMA_2 0x11
314 1.1 chris #define IRQ_PCI 0x12
315 1.2 chris #define IRQ_PMCSR 0x13
316 1.2 chris #define IRQ_RESERVED1 0x14
317 1.2 chris #define IRQ_RESERVED2 0x15
318 1.1 chris #define IRQ_BIST 0x16
319 1.1 chris #define IRQ_SERR 0x17
320 1.1 chris #define IRQ_SDRAM_PARITY 0x18
321 1.1 chris #define IRQ_I2O 0x19
322 1.3 chris #define IRQ_RESERVED3 0x1A
323 1.1 chris #define IRQ_DISCARD_TIMER 0x1B
324 1.1 chris #define IRQ_DATA_PARITY 0x1C
325 1.1 chris #define IRQ_MASTER_ABORT 0x1D
326 1.1 chris #define IRQ_TARGET_ABORT 0x1E
327 1.1 chris #define IRQ_PARITY 0x1F
328 1.1 chris
329 1.1 chris /* IRQ and FIQ status / enable registers */
330 1.1 chris
331 1.1 chris #define IRQ_STATUS 0x180
332 1.1 chris #define IRQ_RAW_STATUS 0x184
333 1.1 chris #define IRQ_ENABLE 0x188
334 1.1 chris #define IRQ_ENABLE_SET 0x188
335 1.1 chris #define IRQ_ENABLE_CLEAR 0x18c
336 1.1 chris #define IRQ_SOFT 0x190
337 1.1 chris
338 1.1 chris #define FIQ_STATUS 0x280
339 1.1 chris #define FIQ_RAW_STATUS 0x284
340 1.1 chris #define FIQ_ENABLE 0x288
341 1.1 chris #define FIQ_ENABLE_SET 0x288
342 1.1 chris #define FIQ_ENABLE_CLEAR 0x28c
343 1.1 chris #define FIQ_SOFT 0x290
344 1.1 chris
345 1.1 chris /* Timer registers */
346 1.1 chris
347 1.1 chris /* Relative offsets and bases */
348 1.1 chris
349 1.1 chris #define TIMER_LOAD 0x00
350 1.1 chris #define TIMER_VALUE 0x04
351 1.1 chris #define TIMER_CONTROL 0x08
352 1.1 chris #define TIMER_CLEAR 0x0C
353 1.1 chris #define TIMER_1_BASE 0x300
354 1.1 chris #define TIMER_2_BASE 0x320
355 1.1 chris #define TIMER_3_BASE 0x340
356 1.1 chris #define TIMER_4_BASE 0x360
357 1.1 chris
358 1.1 chris /* Control register bits */
359 1.1 chris
360 1.1 chris #define TIMER_FCLK 0x00
361 1.1 chris #define TIMER_FCLK_16 0x04
362 1.1 chris #define TIMER_FCLK_256 0x08
363 1.1 chris #define TIMER_EXTERNAL 0x0C
364 1.1 chris #define TIMER_MODE_FREERUN 0x00
365 1.1 chris #define TIMER_MODE_PERIODIC 0x40
366 1.1 chris #define TIMER_ENABLE 0x80
367 1.1 chris
368 1.1 chris /* Maximum timer value */
369 1.1 chris
370 1.4 thorpej #define TIMER_MAX_VAL 0x00FFFFFF
371 1.1 chris
372 1.1 chris /* Specific registers */
373 1.1 chris
374 1.1 chris #define TIMER_1_LOAD 0x300
375 1.1 chris #define TIMER_1_VALUE 0x304
376 1.1 chris #define TIMER_1_CONTROL 0x308
377 1.1 chris #define TIMER_1_CLEAR 0x30C
378 1.1 chris #define TIMER_2_LOAD 0x320
379 1.1 chris #define TIMER_2_VALUE 0x324
380 1.1 chris #define TIMER_2_CONTROL 0x328
381 1.1 chris #define TIMER_2_CLEAR 0x32C
382 1.1 chris #define TIMER_3_LOAD 0x340
383 1.1 chris #define TIMER_3_VALUE 0x344
384 1.1 chris #define TIMER_3_CONTROL 0x348
385 1.1 chris #define TIMER_3_CLEAR 0x34C
386 1.1 chris #define TIMER_4_LOAD 0x360
387 1.1 chris #define TIMER_4_VALUE 0x364
388 1.1 chris #define TIMER_4_CONTROL 0x368
389 1.1 chris #define TIMER_4_CLEAR 0x36C
390 1.1 chris
391 1.1 chris /* Miscellaneous definitions */
392 1.1 chris
393 1.1 chris #ifndef FCLK
394 1.1 chris #define FCLK 50000000
395 1.1 chris #endif
396