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