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