Kconfig 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. if ETRAX_ARCH_V10
  2. menu "CRIS v10 options"
  3. # ETRAX 100LX v1 has a MMU "feature" requiring a low mapping
  4. config CRIS_LOW_MAP
  5. bool
  6. depends on ETRAX_ARCH_V10 && ETRAX100LX
  7. default y
  8. config ETRAX_DRAM_VIRTUAL_BASE
  9. hex
  10. depends on ETRAX_ARCH_V10
  11. default "c0000000" if !ETRAX100LX
  12. default "60000000" if ETRAX100LX
  13. choice
  14. prompt "Product LED port"
  15. depends on ETRAX_ARCH_V10
  16. default ETRAX_PA_LEDS
  17. config ETRAX_PA_LEDS
  18. bool "Port-PA-LEDs"
  19. help
  20. The ETRAX network driver is responsible for flashing LED's when
  21. packets arrive and are sent. It uses macros defined in
  22. <file:include/asm-cris/io.h>, and those macros are defined after what
  23. YOU choose in this option. The actual bits used are configured
  24. separately. Select this if the LEDs are on port PA. Some products
  25. put the leds on PB or a memory-mapped latch (CSP0) instead.
  26. config ETRAX_PB_LEDS
  27. bool "Port-PB-LEDs"
  28. help
  29. The ETRAX network driver is responsible for flashing LED's when
  30. packets arrive and are sent. It uses macros defined in
  31. <file:include/asm-cris/io.h>, and those macros are defined after what
  32. YOU choose in this option. The actual bits used are configured
  33. separately. Select this if the LEDs are on port PB. Some products
  34. put the leds on PA or a memory-mapped latch (CSP0) instead.
  35. config ETRAX_CSP0_LEDS
  36. bool "Port-CSP0-LEDs"
  37. help
  38. The ETRAX network driver is responsible for flashing LED's when
  39. packets arrive and are sent. It uses macros defined in
  40. <file:include/asm-cris/io.h>, and those macros are defined after what
  41. YOU choose in this option. The actual bits used are configured
  42. separately. Select this if the LEDs are on a memory-mapped latch
  43. using chip select CSP0, this is mapped at 0x90000000.
  44. Some products put the leds on PA or PB instead.
  45. config ETRAX_NO_LEDS
  46. bool "None"
  47. help
  48. Select this option if you don't have any LED at all.
  49. endchoice
  50. config ETRAX_LED1G
  51. int "First green LED bit"
  52. depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
  53. default "2"
  54. help
  55. Bit to use for the first green LED.
  56. Most Axis products use bit 2 here.
  57. config ETRAX_LED1R
  58. int "First red LED bit"
  59. depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
  60. default "3"
  61. help
  62. Bit to use for the first red LED.
  63. Most Axis products use bit 3 here.
  64. For products with only one controllable LED,
  65. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  66. config ETRAX_LED2G
  67. int "Second green LED bit"
  68. depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
  69. default "4"
  70. help
  71. Bit to use for the second green LED. The "Active" LED.
  72. Most Axis products use bit 4 here.
  73. For products with only one controllable LED,
  74. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  75. config ETRAX_LED2R
  76. int "Second red LED bit"
  77. depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
  78. default "5"
  79. help
  80. Bit to use for the second red LED.
  81. Most Axis products use bit 5 here.
  82. For products with only one controllable LED,
  83. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  84. config ETRAX_LED3G
  85. int "Third green LED bit"
  86. depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
  87. default "2"
  88. help
  89. Bit to use for the third green LED. The "Drive" LED.
  90. For products with only one or two controllable LEDs,
  91. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  92. config ETRAX_LED3R
  93. int "Third red LED bit"
  94. depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
  95. default "2"
  96. help
  97. Bit to use for the third red LED.
  98. For products with only one or two controllable LEDs,
  99. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  100. config ETRAX_LED4R
  101. int "Fourth red LED bit"
  102. depends on ETRAX_CSP0_LEDS
  103. default "2"
  104. help
  105. Bit to use for the fourth red LED.
  106. For products with only one or two controllable LEDs,
  107. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  108. config ETRAX_LED4G
  109. int "Fourth green LED bit"
  110. depends on ETRAX_CSP0_LEDS
  111. default "2"
  112. help
  113. Bit to use for the fourth green LED.
  114. For products with only one or two controllable LEDs,
  115. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  116. config ETRAX_LED5R
  117. int "Fifth red LED bit"
  118. depends on ETRAX_CSP0_LEDS
  119. default "2"
  120. help
  121. Bit to use for the fifth red LED.
  122. For products with only one or two controllable LEDs,
  123. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  124. config ETRAX_LED5G
  125. int "Fifth green LED bit"
  126. depends on ETRAX_CSP0_LEDS
  127. default "2"
  128. help
  129. Bit to use for the fifth green LED.
  130. For products with only one or two controllable LEDs,
  131. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  132. config ETRAX_LED6R
  133. int "Sixth red LED bit"
  134. depends on ETRAX_CSP0_LEDS
  135. default "2"
  136. help
  137. Bit to use for the sixth red LED.
  138. For products with only one or two controllable LEDs,
  139. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  140. config ETRAX_LED6G
  141. int "Sixth green LED bit"
  142. depends on ETRAX_CSP0_LEDS
  143. default "2"
  144. help
  145. Bit to use for the sixth green LED. The "Drive" LED.
  146. For products with only one or two controllable LEDs,
  147. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  148. config ETRAX_LED7R
  149. int "Seventh red LED bit"
  150. depends on ETRAX_CSP0_LEDS
  151. default "2"
  152. help
  153. Bit to use for the seventh red LED.
  154. For products with only one or two controllable LEDs,
  155. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  156. config ETRAX_LED7G
  157. int "Seventh green LED bit"
  158. depends on ETRAX_CSP0_LEDS
  159. default "2"
  160. help
  161. Bit to use for the seventh green LED.
  162. For products with only one or two controllable LEDs,
  163. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  164. config ETRAX_LED8Y
  165. int "Eighth yellow LED bit"
  166. depends on ETRAX_CSP0_LEDS
  167. default "2"
  168. help
  169. Bit to use for the eighth yellow LED. The "Drive" LED.
  170. For products with only one or two controllable LEDs,
  171. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  172. config ETRAX_LED9Y
  173. int "Ninth yellow LED bit"
  174. depends on ETRAX_CSP0_LEDS
  175. default "2"
  176. help
  177. Bit to use for the ninth yellow LED.
  178. For products with only one or two controllable LEDs,
  179. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  180. config ETRAX_LED10Y
  181. int "Tenth yellow LED bit"
  182. depends on ETRAX_CSP0_LEDS
  183. default "2"
  184. help
  185. Bit to use for the tenth yellow LED.
  186. For products with only one or two controllable LEDs,
  187. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  188. config ETRAX_LED11Y
  189. int "Eleventh yellow LED bit"
  190. depends on ETRAX_CSP0_LEDS
  191. default "2"
  192. help
  193. Bit to use for the eleventh yellow LED.
  194. For products with only one or two controllable LEDs,
  195. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  196. config ETRAX_LED12R
  197. int "Twelfth red LED bit"
  198. depends on ETRAX_CSP0_LEDS
  199. default "2"
  200. help
  201. Bit to use for the twelfth red LED.
  202. For products with only one or two controllable LEDs,
  203. set this to same as CONFIG_ETRAX_LED1G (normally 2).
  204. choice
  205. prompt "Product rescue-port"
  206. depends on ETRAX_ARCH_V10
  207. default ETRAX_RESCUE_SER0
  208. config ETRAX_RESCUE_SER0
  209. bool "Serial-0"
  210. help
  211. Select one of the four serial ports as a rescue port. The default
  212. is port 0.
  213. config ETRAX_RESCUE_SER1
  214. bool "Serial-1"
  215. help
  216. Use serial port 1 as the rescue port.
  217. config ETRAX_RESCUE_SER2
  218. bool "Serial-2"
  219. help
  220. Use serial port 2 as the rescue port.
  221. config ETRAX_RESCUE_SER3
  222. bool "Serial-3"
  223. help
  224. Use serial port 3 as the rescue port.
  225. endchoice
  226. config ETRAX_DEF_R_WAITSTATES
  227. hex "R_WAITSTATES"
  228. depends on ETRAX_ARCH_V10
  229. default "95a6"
  230. help
  231. Waitstates for SRAM, Flash and peripherals (not DRAM). 95f8 is a
  232. good choice for most Axis products...
  233. config ETRAX_DEF_R_BUS_CONFIG
  234. hex "R_BUS_CONFIG"
  235. depends on ETRAX_ARCH_V10
  236. default "104"
  237. help
  238. Assorted bits controlling write mode, DMA burst length etc. 104 is
  239. a good choice for most Axis products...
  240. config ETRAX_SDRAM
  241. bool "SDRAM support"
  242. depends on ETRAX_ARCH_V10
  243. help
  244. Enable this if you use SDRAM chips and configure
  245. R_SDRAM_CONFIG and R_SDRAM_TIMING as well.
  246. config ETRAX_DEF_R_DRAM_CONFIG
  247. hex "R_DRAM_CONFIG"
  248. depends on ETRAX_ARCH_V10 && !ETRAX_SDRAM
  249. default "1a200040"
  250. help
  251. The R_DRAM_CONFIG register specifies everything on how the DRAM
  252. chips in the system are connected to the ETRAX CPU. This is
  253. different depending on the manufacturer, chip type and number of
  254. chips. So this value often needs to be different for each Axis
  255. product.
  256. config ETRAX_DEF_R_DRAM_TIMING
  257. hex "R_DRAM_TIMING"
  258. depends on ETRAX_ARCH_V10 && !ETRAX_SDRAM
  259. default "5611"
  260. help
  261. Different DRAM chips have different speeds. Current Axis products
  262. use 50ns DRAM chips which can use the timing: 5611.
  263. config ETRAX_DEF_R_SDRAM_CONFIG
  264. hex "R_SDRAM_CONFIG"
  265. depends on ETRAX_ARCH_V10 && ETRAX_SDRAM
  266. default "d2fa7878"
  267. help
  268. The R_SDRAM_CONFIG register specifies everything on how the SDRAM
  269. chips in the system are connected to the ETRAX CPU. This is
  270. different depending on the manufacturer, chip type and number of
  271. chips. So this value often needs to be different for each Axis
  272. product.
  273. config ETRAX_DEF_R_SDRAM_TIMING
  274. hex "R_SDRAM_TIMING"
  275. depends on ETRAX_ARCH_V10 && ETRAX_SDRAM
  276. default "80004801"
  277. help
  278. Different SDRAM chips have different timing.
  279. config ETRAX_DEF_R_PORT_PA_DIR
  280. hex "R_PORT_PA_DIR"
  281. depends on ETRAX_ARCH_V10
  282. default "1c"
  283. help
  284. Configures the direction of general port A bits. 1 is out, 0 is in.
  285. This is often totally different depending on the product used.
  286. There are some guidelines though - if you know that only LED's are
  287. connected to port PA, then they are usually connected to bits 2-4
  288. and you can therefore use 1c. On other boards which don't have the
  289. LED's at the general ports, these bits are used for all kinds of
  290. stuff. If you don't know what to use, it is always safe to put all
  291. as inputs, although floating inputs isn't good.
  292. config ETRAX_DEF_R_PORT_PA_DATA
  293. hex "R_PORT_PA_DATA"
  294. depends on ETRAX_ARCH_V10
  295. default "00"
  296. help
  297. Configures the initial data for the general port A bits. Most
  298. products should use 00 here.
  299. config ETRAX_DEF_R_PORT_PB_CONFIG
  300. hex "R_PORT_PB_CONFIG"
  301. depends on ETRAX_ARCH_V10
  302. default "00"
  303. help
  304. Configures the type of the general port B bits. 1 is chip select,
  305. 0 is port. Most products should use 00 here.
  306. config ETRAX_DEF_R_PORT_PB_DIR
  307. hex "R_PORT_PB_DIR"
  308. depends on ETRAX_ARCH_V10
  309. default "00"
  310. help
  311. Configures the direction of general port B bits. 1 is out, 0 is in.
  312. This is often totally different depending on the product used. Bits
  313. 0 and 1 on port PB are usually used for I2C communication, but the
  314. kernel I2C driver sets the appropriate directions itself so you
  315. don't need to take that into consideration when setting this option.
  316. If you don't know what to use, it is always safe to put all as
  317. inputs.
  318. config ETRAX_DEF_R_PORT_PB_DATA
  319. hex "R_PORT_PB_DATA"
  320. depends on ETRAX_ARCH_V10
  321. default "ff"
  322. help
  323. Configures the initial data for the general port A bits. Most
  324. products should use FF here.
  325. config ETRAX_SOFT_SHUTDOWN
  326. bool "Software Shutdown Support"
  327. depends on ETRAX_ARCH_V10
  328. help
  329. Enable this if ETRAX is used with a power-supply that can be turned
  330. off and on with PS_ON signal. Gives the possibility to detect
  331. powerbutton and then do a power off after unmounting disks.
  332. config ETRAX_SHUTDOWN_BIT
  333. int "Shutdown bit on port CSP0"
  334. depends on ETRAX_SOFT_SHUTDOWN
  335. default "12"
  336. help
  337. Configure what pin on CSPO-port that is used for controlling power
  338. supply.
  339. config ETRAX_POWERBUTTON_BIT
  340. int "Power button bit on port G"
  341. depends on ETRAX_SOFT_SHUTDOWN
  342. default "25"
  343. help
  344. Configure where power button is connected.
  345. endmenu
  346. endif