hw_settings.S 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 Axis Communications AB
  7. *
  8. * Authors: Mikael Starvik (starvik@axis.com)
  9. */
  10. #define PA_SET_VALUE ((CONFIG_ETRAX_DEF_R_PORT_PA_DIR << 8) | \
  11. (CONFIG_ETRAX_DEF_R_PORT_PA_DATA))
  12. #define PB_SET_VALUE ((CONFIG_ETRAX_DEF_R_PORT_PB_CONFIG << 16) | \
  13. (CONFIG_ETRAX_DEF_R_PORT_PB_DIR << 8) | \
  14. (CONFIG_ETRAX_DEF_R_PORT_PB_DATA))
  15. .ascii "HW_PARAM_MAGIC" ; Magic number
  16. .dword 0xc0004000 ; Kernel start address
  17. ; Debug port
  18. #ifdef CONFIG_ETRAX_DEBUG_PORT0
  19. .dword 0
  20. #elif defined(CONFIG_ETRAX_DEBUG_PORT1)
  21. .dword 1
  22. #elif defined(CONFIG_ETRAX_DEBUG_PORT2)
  23. .dword 2
  24. #elif defined(CONFIG_ETRAX_DEBUG_PORT3)
  25. .dword 3
  26. #else
  27. .dword 4 ; No debug
  28. #endif
  29. ; SDRAM or EDO DRAM?
  30. #ifdef CONFIG_ETRAX_SDRAM
  31. .dword 1
  32. #else
  33. .dword 0
  34. #endif
  35. ; Register values
  36. .dword R_WAITSTATES
  37. .dword CONFIG_ETRAX_DEF_R_WAITSTATES
  38. .dword R_BUS_CONFIG
  39. .dword CONFIG_ETRAX_DEF_R_BUS_CONFIG
  40. #ifdef CONFIG_ETRAX_SDRAM
  41. .dword R_SDRAM_CONFIG
  42. .dword CONFIG_ETRAX_DEF_R_SDRAM_CONFIG
  43. .dword R_SDRAM_TIMING
  44. .dword CONFIG_ETRAX_DEF_R_SDRAM_TIMING
  45. #else
  46. .dword R_DRAM_CONFIG
  47. .dword CONFIG_ETRAX_DEF_R_DRAM_CONFIG
  48. .dword R_DRAM_TIMING
  49. .dword CONFIG_ETRAX_DEF_R_DRAM_TIMING
  50. #endif
  51. .dword R_PORT_PA_SET
  52. .dword PA_SET_VALUE
  53. .dword R_PORT_PB_SET
  54. .dword PB_SET_VALUE
  55. .dword 0 ; No more register values