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