1 /* SPDX-License-Identifier: GPL-2.0 */
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.
7 * Copyright (C) 2001 Axis Communications AB
9 * Authors: Mikael Starvik (starvik@axis.com)
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))
18 .ascii "HW_PARAM_MAGIC" ; Magic number
19 .dword 0xc0004000 ; Kernel start address
22 #ifdef CONFIG_ETRAX_DEBUG_PORT0
24 #elif defined(CONFIG_ETRAX_DEBUG_PORT1)
26 #elif defined(CONFIG_ETRAX_DEBUG_PORT2)
28 #elif defined(CONFIG_ETRAX_DEBUG_PORT3)
35 #ifdef CONFIG_ETRAX_SDRAM
43 .dword CONFIG_ETRAX_DEF_R_WAITSTATES
45 .dword CONFIG_ETRAX_DEF_R_BUS_CONFIG
46 #ifdef CONFIG_ETRAX_SDRAM
48 .dword CONFIG_ETRAX_DEF_R_SDRAM_CONFIG
50 .dword CONFIG_ETRAX_DEF_R_SDRAM_TIMING
53 .dword CONFIG_ETRAX_DEF_R_DRAM_CONFIG
55 .dword CONFIG_ETRAX_DEF_R_DRAM_TIMING
61 .dword 0 ; No more register values