Kconfig 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. if ETRAX_ARCH_V32
  2. config ETRAX_DRAM_VIRTUAL_BASE
  3. hex
  4. depends on ETRAX_ARCH_V32
  5. default "c0000000"
  6. config ETRAX_LED1G
  7. string "First green LED bit"
  8. depends on ETRAX_ARCH_V32
  9. default "PA3"
  10. help
  11. Bit to use for the first green LED (network LED).
  12. Most Axis products use bit A3 here.
  13. config ETRAX_LED1R
  14. string "First red LED bit"
  15. depends on ETRAX_ARCH_V32
  16. default "PA4"
  17. help
  18. Bit to use for the first red LED (network LED).
  19. Most Axis products use bit A4 here.
  20. config ETRAX_LED2G
  21. string "Second green LED bit"
  22. depends on ETRAX_ARCH_V32
  23. default "PA5"
  24. help
  25. Bit to use for the first green LED (status LED).
  26. Most Axis products use bit A5 here.
  27. config ETRAX_LED2R
  28. string "Second red LED bit"
  29. depends on ETRAX_ARCH_V32
  30. default "PA6"
  31. help
  32. Bit to use for the first red LED (network LED).
  33. Most Axis products use bit A6 here.
  34. config ETRAX_LED3G
  35. string "Third green LED bit"
  36. depends on ETRAX_ARCH_V32
  37. default "PA7"
  38. help
  39. Bit to use for the first green LED (drive/power LED).
  40. Most Axis products use bit A7 here.
  41. config ETRAX_LED3R
  42. string "Third red LED bit"
  43. depends on ETRAX_ARCH_V32
  44. default "PA7"
  45. help
  46. Bit to use for the first red LED (drive/power LED).
  47. Most Axis products use bit A7 here.
  48. choice
  49. prompt "Product debug-port"
  50. depends on ETRAX_ARCH_V32
  51. default ETRAX_DEBUG_PORT0
  52. config ETRAX_DEBUG_PORT0
  53. bool "Serial-0"
  54. help
  55. Choose a serial port for the ETRAX debug console. Default to
  56. port 0.
  57. config ETRAX_DEBUG_PORT1
  58. bool "Serial-1"
  59. help
  60. Use serial port 1 for the console.
  61. config ETRAX_DEBUG_PORT2
  62. bool "Serial-2"
  63. help
  64. Use serial port 2 for the console.
  65. config ETRAX_DEBUG_PORT3
  66. bool "Serial-3"
  67. help
  68. Use serial port 3 for the console.
  69. config ETRAX_DEBUG_PORT_NULL
  70. bool "disabled"
  71. help
  72. Disable serial-port debugging.
  73. endchoice
  74. choice
  75. prompt "Kernel GDB port"
  76. depends on ETRAX_KGDB
  77. default ETRAX_KGDB_PORT0
  78. help
  79. Choose a serial port for kernel debugging. NOTE: This port should
  80. not be enabled under Drivers for built-in interfaces (as it has its
  81. own initialization code) and should not be the same as the debug port.
  82. config ETRAX_KGDB_PORT0
  83. bool "Serial-0"
  84. help
  85. Use serial port 0 for kernel debugging.
  86. config ETRAX_KGDB_PORT1
  87. bool "Serial-1"
  88. help
  89. Use serial port 1 for kernel debugging.
  90. config ETRAX_KGDB_PORT2
  91. bool "Serial-2"
  92. help
  93. Use serial port 2 for kernel debugging.
  94. config ETRAX_KGDB_PORT3
  95. bool "Serial-3"
  96. help
  97. Use serial port 3 for kernel debugging.
  98. endchoice
  99. config ETRAX_MEM_GRP1_CONFIG
  100. hex "MEM_GRP1_CONFIG"
  101. depends on ETRAX_ARCH_V32
  102. default "4044a"
  103. help
  104. Waitstates for flash. The default value is suitable for the
  105. standard flashes used in axis products (120 ns).
  106. config ETRAX_MEM_GRP2_CONFIG
  107. hex "MEM_GRP2_CONFIG"
  108. depends on ETRAX_ARCH_V32
  109. default "0"
  110. help
  111. Waitstates for SRAM. 0 is a good choice for most Axis products.
  112. config ETRAX_MEM_GRP3_CONFIG
  113. hex "MEM_GRP3_CONFIG"
  114. depends on ETRAX_ARCH_V32
  115. default "0"
  116. help
  117. Waitstates for CSP0-3. 0 is a good choice for most Axis products.
  118. It may need to be changed if external devices such as extra
  119. register-mapped LEDs are used.
  120. config ETRAX_MEM_GRP4_CONFIG
  121. hex "MEM_GRP4_CONFIG"
  122. depends on ETRAX_ARCH_V32
  123. default "0"
  124. help
  125. Waitstates for CSP4-6. 0 is a good choice for most Axis products.
  126. config ETRAX_SDRAM_GRP0_CONFIG
  127. hex "SDRAM_GRP0_CONFIG"
  128. depends on ETRAX_ARCH_V32
  129. default "336"
  130. help
  131. SDRAM configuration for group 0. The value depends on the
  132. hardware configuration. The default value is suitable
  133. for 32 MB organized as two 16 bits chips (e.g. Axis
  134. part number 18550) connected as one 32 bit device (i.e. in
  135. the same group).
  136. config ETRAX_SDRAM_GRP1_CONFIG
  137. hex "SDRAM_GRP1_CONFIG"
  138. depends on ETRAX_ARCH_V32
  139. default "0"
  140. help
  141. SDRAM configuration for group 1. The default value is 0
  142. because group 1 is not used in the default configuration,
  143. described in the help for SDRAM_GRP0_CONFIG.
  144. config ETRAX_SDRAM_TIMING
  145. hex "SDRAM_TIMING"
  146. depends on ETRAX_ARCH_V32
  147. default "104a"
  148. help
  149. SDRAM timing parameters. The default value is ok for
  150. most hardwares but large SDRAMs may require a faster
  151. refresh (a.k.a 8K refresh). The default value implies
  152. 100MHz clock and SDR mode.
  153. config ETRAX_SDRAM_COMMAND
  154. hex "SDRAM_COMMAND"
  155. depends on ETRAX_ARCH_V32
  156. default "0"
  157. help
  158. SDRAM command. Should be 0 unless you really know what
  159. you are doing (may be != 0 for unusual address line
  160. mappings such as in a MCM)..
  161. config ETRAX_DEF_GIO_PA_OE
  162. hex "GIO_PA_OE"
  163. depends on ETRAX_ARCH_V32
  164. default "1c"
  165. help
  166. Configures the direction of general port A bits. 1 is out, 0 is in.
  167. This is often totally different depending on the product used.
  168. There are some guidelines though - if you know that only LED's are
  169. connected to port PA, then they are usually connected to bits 2-4
  170. and you can therefore use 1c. On other boards which don't have the
  171. LED's at the general ports, these bits are used for all kinds of
  172. stuff. If you don't know what to use, it is always safe to put all
  173. as inputs, although floating inputs isn't good.
  174. config ETRAX_DEF_GIO_PA_OUT
  175. hex "GIO_PA_OUT"
  176. depends on ETRAX_ARCH_V32
  177. default "00"
  178. help
  179. Configures the initial data for the general port A bits. Most
  180. products should use 00 here.
  181. config ETRAX_DEF_GIO_PB_OE
  182. hex "GIO_PB_OE"
  183. depends on ETRAX_ARCH_V32
  184. default "00000"
  185. help
  186. Configures the direction of general port B bits. 1 is out, 0 is in.
  187. This is often totally different depending on the product used.
  188. There are some guidelines though - if you know that only LED's are
  189. connected to port PA, then they are usually connected to bits 2-4
  190. and you can therefore use 1c. On other boards which don't have the
  191. LED's at the general ports, these bits are used for all kinds of
  192. stuff. If you don't know what to use, it is always safe to put all
  193. as inputs, although floating inputs isn't good.
  194. config ETRAX_DEF_GIO_PB_OUT
  195. hex "GIO_PB_OUT"
  196. depends on ETRAX_ARCH_V32
  197. default "00000"
  198. help
  199. Configures the initial data for the general port B bits. Most
  200. products should use 00000 here.
  201. config ETRAX_DEF_GIO_PC_OE
  202. hex "GIO_PC_OE"
  203. depends on ETRAX_ARCH_V32
  204. default "00000"
  205. help
  206. Configures the direction of general port C bits. 1 is out, 0 is in.
  207. This is often totally different depending on the product used.
  208. There are some guidelines though - if you know that only LED's are
  209. connected to port PA, then they are usually connected to bits 2-4
  210. and you can therefore use 1c. On other boards which don't have the
  211. LED's at the general ports, these bits are used for all kinds of
  212. stuff. If you don't know what to use, it is always safe to put all
  213. as inputs, although floating inputs isn't good.
  214. config ETRAX_DEF_GIO_PC_OUT
  215. hex "GIO_PC_OUT"
  216. depends on ETRAX_ARCH_V32
  217. default "00000"
  218. help
  219. Configures the initial data for the general port C bits. Most
  220. products should use 00000 here.
  221. config ETRAX_DEF_GIO_PD_OE
  222. hex "GIO_PD_OE"
  223. depends on ETRAX_ARCH_V32
  224. default "00000"
  225. help
  226. Configures the direction of general port D bits. 1 is out, 0 is in.
  227. This is often totally different depending on the product used.
  228. There are some guidelines though - if you know that only LED's are
  229. connected to port PA, then they are usually connected to bits 2-4
  230. and you can therefore use 1c. On other boards which don't have the
  231. LED's at the general ports, these bits are used for all kinds of
  232. stuff. If you don't know what to use, it is always safe to put all
  233. as inputs, although floating inputs isn't good.
  234. config ETRAX_DEF_GIO_PD_OUT
  235. hex "GIO_PD_OUT"
  236. depends on ETRAX_ARCH_V32
  237. default "00000"
  238. help
  239. Configures the initial data for the general port D bits. Most
  240. products should use 00000 here.
  241. config ETRAX_DEF_GIO_PE_OE
  242. hex "GIO_PE_OE"
  243. depends on ETRAX_ARCH_V32
  244. default "00000"
  245. help
  246. Configures the direction of general port E bits. 1 is out, 0 is in.
  247. This is often totally different depending on the product used.
  248. There are some guidelines though - if you know that only LED's are
  249. connected to port PA, then they are usually connected to bits 2-4
  250. and you can therefore use 1c. On other boards which don't have the
  251. LED's at the general ports, these bits are used for all kinds of
  252. stuff. If you don't know what to use, it is always safe to put all
  253. as inputs, although floating inputs isn't good.
  254. config ETRAX_DEF_GIO_PE_OUT
  255. hex "GIO_PE_OUT"
  256. depends on ETRAX_ARCH_V32
  257. default "00000"
  258. help
  259. Configures the initial data for the general port E bits. Most
  260. products should use 00000 here.
  261. endif