1/*
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 *
8 * Authors:  Mikael Starvik (starvik@axis.com)
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))
16
17	.ascii "HW_PARAM_MAGIC" ; Magic number
18	.dword 0xc0004000	; Kernel start address
19
20	; Debug port
21#ifdef CONFIG_ETRAX_DEBUG_PORT0
22	.dword 0
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
31#endif
32
33	; SDRAM or EDO DRAM?
34#ifdef CONFIG_ETRAX_SDRAM
35	.dword 1
36#else
37	.dword 0
38#endif
39
40	; Register values
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
57	.dword PA_SET_VALUE
58	.dword R_PORT_PB_SET
59	.dword PB_SET_VALUE
60	.dword 0 ; No more register values
61