Kconfig 8.4 KB

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