Kconfig 12 KB

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