Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Jesper Nilsson | 035e111 | 2007-11-29 17:11:23 +0100 | [diff] [blame] | 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-2007 Axis Communications AB |
| 8 | * |
| 9 | * Authors: Mikael Starvik <starvik@axis.com> |
| 10 | */ |
| 11 | |
| 12 | #include <hwregs/asm/reg_map_asm.h> |
| 13 | #include <hwregs/asm/ddr2_defs_asm.h> |
| 14 | #include <hwregs/asm/gio_defs_asm.h> |
| 15 | |
| 16 | .ascii "HW_PARAM_MAGIC" ; Magic number |
| 17 | .dword 0xc0004000 ; Kernel start address |
| 18 | |
| 19 | ; Debug port |
| 20 | #ifdef CONFIG_ETRAX_DEBUG_PORT0 |
| 21 | .dword 0 |
| 22 | #elif defined(CONFIG_ETRAX_DEBUG_PORT1) |
| 23 | .dword 1 |
| 24 | #elif defined(CONFIG_ETRAX_DEBUG_PORT2) |
| 25 | .dword 2 |
| 26 | #elif defined(CONFIG_ETRAX_DEBUG_PORT3) |
| 27 | .dword 3 |
| 28 | #else |
| 29 | .dword 4 ; No debug |
| 30 | #endif |
| 31 | |
| 32 | ; Register values |
| 33 | .dword REG_ADDR(ddr2, regi_ddr2_ctrl, rw_cfg) |
| 34 | .dword CONFIG_ETRAX_DDR2_CONFIG |
Jesper Nilsson | 98560bd | 2010-08-03 17:34:28 +0200 | [diff] [blame] | 35 | .dword REG_ADDR(ddr2, regi_ddr2_ctrl, rw_latency) |
| 36 | .dword CONFIG_ETRAX_DDR2_LATENCY |
Jesper Nilsson | 035e111 | 2007-11-29 17:11:23 +0100 | [diff] [blame] | 37 | .dword REG_ADDR(ddr2, regi_ddr2_ctrl, rw_timing) |
| 38 | .dword CONFIG_ETRAX_DDR2_TIMING |
| 39 | .dword CONFIG_ETRAX_DDR2_MRS |
| 40 | |
| 41 | .dword REG_ADDR(gio, regi_gio, rw_pa_dout) |
| 42 | .dword CONFIG_ETRAX_DEF_GIO_PA_OUT |
| 43 | .dword REG_ADDR(gio, regi_gio, rw_pa_oe) |
| 44 | .dword CONFIG_ETRAX_DEF_GIO_PA_OE |
| 45 | .dword REG_ADDR(gio, regi_gio, rw_pb_dout) |
| 46 | .dword CONFIG_ETRAX_DEF_GIO_PB_OUT |
| 47 | .dword REG_ADDR(gio, regi_gio, rw_pb_oe) |
| 48 | .dword CONFIG_ETRAX_DEF_GIO_PB_OE |
| 49 | .dword REG_ADDR(gio, regi_gio, rw_pc_dout) |
| 50 | .dword CONFIG_ETRAX_DEF_GIO_PC_OUT |
| 51 | .dword REG_ADDR(gio, regi_gio, rw_pc_oe) |
| 52 | .dword CONFIG_ETRAX_DEF_GIO_PC_OE |
| 53 | |
| 54 | .dword 0 ; No more register values |