Kconfig 12 KB

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