Blame view

kernel/linux-rt-4.4.41/arch/cris/arch-v32/mach-a3/hw_settings.S 1.51 KB
5113f6f70   김현기   kernel add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
  /*
   * This table is used by some tools to extract hardware parameters.
   * The table should be included in the kernel and the decompressor.
   * Don't forget to update the tools if you change this table.
   *
   * Copyright (C) 2001-2007 Axis Communications AB
   *
   * Authors:  Mikael Starvik <starvik@axis.com>
   */
  
  #include <hwregs/asm/reg_map_asm.h>
  #include <hwregs/asm/ddr2_defs_asm.h>
  #include <hwregs/asm/gio_defs_asm.h>
  
  	.ascii "HW_PARAM_MAGIC" ; Magic number
  	.dword 0xc0004000	; Kernel start address
  
  	; Debug port
  #ifdef CONFIG_ETRAX_DEBUG_PORT0
  	.dword 0
  #elif defined(CONFIG_ETRAX_DEBUG_PORT1)
  	.dword 1
  #elif defined(CONFIG_ETRAX_DEBUG_PORT2)
  	.dword 2
  #elif defined(CONFIG_ETRAX_DEBUG_PORT3)
  	.dword 3
  #else
  	.dword 4 ; No debug
  #endif
  
  	; Register values
  	.dword REG_ADDR(ddr2, regi_ddr2_ctrl, rw_cfg)
  	.dword CONFIG_ETRAX_DDR2_CONFIG
  	.dword REG_ADDR(ddr2, regi_ddr2_ctrl, rw_latency)
  	.dword CONFIG_ETRAX_DDR2_LATENCY
  	.dword REG_ADDR(ddr2, regi_ddr2_ctrl, rw_timing)
  	.dword CONFIG_ETRAX_DDR2_TIMING
  	.dword CONFIG_ETRAX_DDR2_MRS
  
  	.dword REG_ADDR(gio, regi_gio, rw_pa_dout)
  	.dword CONFIG_ETRAX_DEF_GIO_PA_OUT
  	.dword REG_ADDR(gio, regi_gio, rw_pa_oe)
  	.dword CONFIG_ETRAX_DEF_GIO_PA_OE
  	.dword REG_ADDR(gio, regi_gio, rw_pb_dout)
  	.dword CONFIG_ETRAX_DEF_GIO_PB_OUT
  	.dword REG_ADDR(gio, regi_gio, rw_pb_oe)
  	.dword CONFIG_ETRAX_DEF_GIO_PB_OE
  	.dword REG_ADDR(gio, regi_gio, rw_pc_dout)
  	.dword CONFIG_ETRAX_DEF_GIO_PC_OUT
  	.dword REG_ADDR(gio, regi_gio, rw_pc_oe)
  	.dword CONFIG_ETRAX_DEF_GIO_PC_OE
  
  	.dword 0 ; No more register values