hw_settings.S 2.3 KB

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