hw_settings.S 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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/ddr2_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(ddr2, regi_ddr2_ctrl, rw_cfg)
  29. .dword CONFIG_ETRAX_DDR2_CONFIG
  30. .dword REG_ADDR(ddr2, regi_ddr2_ctrl, rw_latency)
  31. .dword CONFIG_ETRAX_DDR2_LATENCY
  32. .dword REG_ADDR(ddr2, regi_ddr2_ctrl, rw_timing)
  33. .dword CONFIG_ETRAX_DDR2_TIMING
  34. .dword CONFIG_ETRAX_DDR2_MRS
  35. .dword REG_ADDR(gio, regi_gio, rw_pa_dout)
  36. .dword CONFIG_ETRAX_DEF_GIO_PA_OUT
  37. .dword REG_ADDR(gio, regi_gio, rw_pa_oe)
  38. .dword CONFIG_ETRAX_DEF_GIO_PA_OE
  39. .dword REG_ADDR(gio, regi_gio, rw_pb_dout)
  40. .dword CONFIG_ETRAX_DEF_GIO_PB_OUT
  41. .dword REG_ADDR(gio, regi_gio, rw_pb_oe)
  42. .dword CONFIG_ETRAX_DEF_GIO_PB_OE
  43. .dword REG_ADDR(gio, regi_gio, rw_pc_dout)
  44. .dword CONFIG_ETRAX_DEF_GIO_PC_OUT
  45. .dword REG_ADDR(gio, regi_gio, rw_pc_oe)
  46. .dword CONFIG_ETRAX_DEF_GIO_PC_OE
  47. .dword 0 ; No more register values