]>
Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /* |
1da177e4 LT |
2 | * This table is used by some tools to extract hardware parameters. |
3 | * The table should be included in the kernel and the decompressor. | |
4 | * Don't forget to update the tools if you change this table. | |
5 | * | |
6 | * Copyright (C) 2001 Axis Communications AB | |
7 | * | |
6b9c88e2 | 8 | * Authors: Mikael Starvik (starvik@axis.com) |
1da177e4 LT |
9 | */ |
10 | ||
11 | #define PA_SET_VALUE ((CONFIG_ETRAX_DEF_R_PORT_PA_DIR << 8) | \ | |
12 | (CONFIG_ETRAX_DEF_R_PORT_PA_DATA)) | |
13 | #define PB_SET_VALUE ((CONFIG_ETRAX_DEF_R_PORT_PB_CONFIG << 16) | \ | |
14 | (CONFIG_ETRAX_DEF_R_PORT_PB_DIR << 8) | \ | |
15 | (CONFIG_ETRAX_DEF_R_PORT_PB_DATA)) | |
6b9c88e2 | 16 | |
1da177e4 LT |
17 | .ascii "HW_PARAM_MAGIC" ; Magic number |
18 | .dword 0xc0004000 ; Kernel start address | |
19 | ||
20 | ; Debug port | |
21 | #ifdef CONFIG_ETRAX_DEBUG_PORT0 | |
6b9c88e2 | 22 | .dword 0 |
1da177e4 LT |
23 | #elif defined(CONFIG_ETRAX_DEBUG_PORT1) |
24 | .dword 1 | |
25 | #elif defined(CONFIG_ETRAX_DEBUG_PORT2) | |
26 | .dword 2 | |
27 | #elif defined(CONFIG_ETRAX_DEBUG_PORT3) | |
28 | .dword 3 | |
29 | #else | |
30 | .dword 4 ; No debug | |
6b9c88e2 | 31 | #endif |
1da177e4 LT |
32 | |
33 | ; SDRAM or EDO DRAM? | |
34 | #ifdef CONFIG_ETRAX_SDRAM | |
35 | .dword 1 | |
36 | #else | |
37 | .dword 0 | |
38 | #endif | |
39 | ||
6b9c88e2 | 40 | ; Register values |
1da177e4 LT |
41 | .dword R_WAITSTATES |
42 | .dword CONFIG_ETRAX_DEF_R_WAITSTATES | |
43 | .dword R_BUS_CONFIG | |
44 | .dword CONFIG_ETRAX_DEF_R_BUS_CONFIG | |
45 | #ifdef CONFIG_ETRAX_SDRAM | |
46 | .dword R_SDRAM_CONFIG | |
47 | .dword CONFIG_ETRAX_DEF_R_SDRAM_CONFIG | |
48 | .dword R_SDRAM_TIMING | |
49 | .dword CONFIG_ETRAX_DEF_R_SDRAM_TIMING | |
50 | #else | |
51 | .dword R_DRAM_CONFIG | |
52 | .dword CONFIG_ETRAX_DEF_R_DRAM_CONFIG | |
53 | .dword R_DRAM_TIMING | |
54 | .dword CONFIG_ETRAX_DEF_R_DRAM_TIMING | |
55 | #endif | |
56 | .dword R_PORT_PA_SET | |
6b9c88e2 | 57 | .dword PA_SET_VALUE |
1da177e4 LT |
58 | .dword R_PORT_PB_SET |
59 | .dword PB_SET_VALUE | |
60 | .dword 0 ; No more register values |