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-2007 Axis Communications AB
9 * Authors: Mikael Starvik <starvik@axis.com>
12 #include <hwregs/asm/reg_map_asm.h>
13 #include <hwregs/asm/bif_core_defs_asm.h>
14 #include <hwregs/asm/gio_defs_asm.h>
16 .ascii "HW_PARAM_MAGIC" ; Magic number
17 .dword 0xc0004000 ; Kernel start address
20 #ifdef CONFIG_ETRAX_DEBUG_PORT0
22 #elif defined(CONFIG_ETRAX_DEBUG_PORT1)
24 #elif defined(CONFIG_ETRAX_DEBUG_PORT2)
26 #elif defined(CONFIG_ETRAX_DEBUG_PORT3)
33 .dword REG_ADDR(bif_core, regi_bif_core, rw_grp1_cfg)
34 .dword CONFIG_ETRAX_MEM_GRP1_CONFIG
35 .dword REG_ADDR(bif_core, regi_bif_core, rw_grp2_cfg)
36 .dword CONFIG_ETRAX_MEM_GRP2_CONFIG
37 .dword REG_ADDR(bif_core, regi_bif_core, rw_grp3_cfg)
38 .dword CONFIG_ETRAX_MEM_GRP3_CONFIG
39 .dword REG_ADDR(bif_core, regi_bif_core, rw_grp4_cfg)
40 .dword CONFIG_ETRAX_MEM_GRP4_CONFIG
41 .dword REG_ADDR(bif_core, regi_bif_core, rw_sdram_cfg_grp0)
42 .dword CONFIG_ETRAX_SDRAM_GRP0_CONFIG
43 .dword REG_ADDR(bif_core, regi_bif_core, rw_sdram_cfg_grp1)
44 .dword CONFIG_ETRAX_SDRAM_GRP1_CONFIG
45 .dword REG_ADDR(bif_core, regi_bif_core, rw_sdram_timing)
46 .dword CONFIG_ETRAX_SDRAM_TIMING
47 .dword REG_ADDR(bif_core, regi_bif_core, rw_sdram_cmd)
48 .dword CONFIG_ETRAX_SDRAM_COMMAND
50 .dword REG_ADDR(gio, regi_gio, rw_pa_dout)
51 .dword CONFIG_ETRAX_DEF_GIO_PA_OUT
52 .dword REG_ADDR(gio, regi_gio, rw_pa_oe)
53 .dword CONFIG_ETRAX_DEF_GIO_PA_OE
54 .dword REG_ADDR(gio, regi_gio, rw_pb_dout)
55 .dword CONFIG_ETRAX_DEF_GIO_PB_OUT
56 .dword REG_ADDR(gio, regi_gio, rw_pb_oe)
57 .dword CONFIG_ETRAX_DEF_GIO_PB_OE
58 .dword REG_ADDR(gio, regi_gio, rw_pc_dout)
59 .dword CONFIG_ETRAX_DEF_GIO_PC_OUT
60 .dword REG_ADDR(gio, regi_gio, rw_pc_oe)
61 .dword CONFIG_ETRAX_DEF_GIO_PC_OE
62 .dword REG_ADDR(gio, regi_gio, rw_pd_dout)
63 .dword CONFIG_ETRAX_DEF_GIO_PD_OUT
64 .dword REG_ADDR(gio, regi_gio, rw_pd_oe)
65 .dword CONFIG_ETRAX_DEF_GIO_PD_OE
66 .dword REG_ADDR(gio, regi_gio, rw_pe_dout)
67 .dword CONFIG_ETRAX_DEF_GIO_PE_OUT
68 .dword REG_ADDR(gio, regi_gio, rw_pe_oe)
69 .dword CONFIG_ETRAX_DEF_GIO_PE_OE
71 .dword 0 ; No more register values