Kconfig 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832
  1. if ETRAX_ARCH_V32
  2. config ETRAX_ETHERNET
  3. bool "Ethernet support"
  4. depends on ETRAX_ARCH_V32 && NETDEVICES
  5. select MII
  6. help
  7. This option enables the ETRAX FS built-in 10/100Mbit Ethernet
  8. controller.
  9. config ETRAX_NO_PHY
  10. bool "PHY not present"
  11. depends on ETRAX_ETHERNET
  12. default N
  13. help
  14. This option disables all MDIO communication with an ethernet
  15. transceiver connected to the MII interface. This option shall
  16. typically be enabled if the MII interface is connected to a
  17. switch. This option should normally be disabled. If enabled,
  18. speed and duplex will be locked to 100 Mbit and full duplex.
  19. config ETRAX_ETHERNET_IFACE0
  20. depends on ETRAX_ETHERNET
  21. bool "Enable network interface 0"
  22. config ETRAX_ETHERNET_IFACE1
  23. depends on (ETRAX_ETHERNET && ETRAXFS)
  24. bool "Enable network interface 1 (uses DMA6 and DMA7)"
  25. config ETRAX_ETHERNET_GBIT
  26. depends on (ETRAX_ETHERNET && CRIS_MACH_ARTPEC3)
  27. bool "Enable gigabit Ethernet support"
  28. choice
  29. prompt "Eth0 led group"
  30. depends on ETRAX_ETHERNET_IFACE0
  31. default ETRAX_ETH0_USE_LEDGRP0
  32. config ETRAX_ETH0_USE_LEDGRP0
  33. bool "Use LED grp 0"
  34. depends on ETRAX_NBR_LED_GRP_ONE || ETRAX_NBR_LED_GRP_TWO
  35. help
  36. Use LED grp 0 for eth0
  37. config ETRAX_ETH0_USE_LEDGRP1
  38. bool "Use LED grp 1"
  39. depends on ETRAX_NBR_LED_GRP_TWO
  40. help
  41. Use LED grp 1 for eth0
  42. config ETRAX_ETH0_USE_LEDGRPNULL
  43. bool "Use no LEDs for eth0"
  44. help
  45. Use no LEDs for eth0
  46. endchoice
  47. choice
  48. prompt "Eth1 led group"
  49. depends on ETRAX_ETHERNET_IFACE1
  50. default ETRAX_ETH1_USE_LEDGRP1
  51. config ETRAX_ETH1_USE_LEDGRP0
  52. bool "Use LED grp 0"
  53. depends on ETRAX_NBR_LED_GRP_ONE || ETRAX_NBR_LED_GRP_TWO
  54. help
  55. Use LED grp 0 for eth1
  56. config ETRAX_ETH1_USE_LEDGRP1
  57. bool "Use LED grp 1"
  58. depends on ETRAX_NBR_LED_GRP_TWO
  59. help
  60. Use LED grp 1 for eth1
  61. config ETRAX_ETH1_USE_LEDGRPNULL
  62. bool "Use no LEDs for eth1"
  63. help
  64. Use no LEDs for eth1
  65. endchoice
  66. config ETRAXFS_SERIAL
  67. bool "Serial-port support"
  68. depends on ETRAX_ARCH_V32
  69. select SERIAL_CORE
  70. select SERIAL_CORE_CONSOLE
  71. help
  72. Enables the ETRAX FS serial driver for ser0 (ttyS0)
  73. You probably want this enabled.
  74. config ETRAX_RS485
  75. bool "RS-485 support"
  76. depends on ETRAXFS_SERIAL
  77. help
  78. Enables support for RS-485 serial communication.
  79. config ETRAX_RS485_DISABLE_RECEIVER
  80. bool "Disable serial receiver"
  81. depends on ETRAX_RS485
  82. help
  83. It is necessary to disable the serial receiver to avoid serial
  84. loopback. Not all products are able to do this in software only.
  85. config ETRAX_SERIAL_PORT0
  86. bool "Serial port 0 enabled"
  87. depends on ETRAXFS_SERIAL
  88. help
  89. Enables the ETRAX FS serial driver for ser0 (ttyS0)
  90. Normally you want this on. You can control what DMA channels to use
  91. if you do not need DMA to something else.
  92. ser0 can use dma4 or dma6 for output and dma5 or dma7 for input.
  93. choice
  94. prompt "Ser0 default port type "
  95. depends on ETRAX_SERIAL_PORT0
  96. default ETRAX_SERIAL_PORT0_TYPE_232
  97. help
  98. Type of serial port.
  99. config ETRAX_SERIAL_PORT0_TYPE_232
  100. bool "Ser0 is a RS-232 port"
  101. help
  102. Configure serial port 0 to be a RS-232 port.
  103. config ETRAX_SERIAL_PORT0_TYPE_485HD
  104. bool "Ser0 is a half duplex RS-485 port"
  105. depends on ETRAX_RS485
  106. help
  107. Configure serial port 0 to be a half duplex (two wires) RS-485 port.
  108. config ETRAX_SERIAL_PORT0_TYPE_485FD
  109. bool "Ser0 is a full duplex RS-485 port"
  110. depends on ETRAX_RS485
  111. help
  112. Configure serial port 0 to be a full duplex (four wires) RS-485 port.
  113. endchoice
  114. config ETRAX_SER0_DTR_BIT
  115. string "Ser 0 DTR bit (empty = not used)"
  116. depends on ETRAX_SERIAL_PORT0
  117. config ETRAX_SER0_RI_BIT
  118. string "Ser 0 RI bit (empty = not used)"
  119. depends on ETRAX_SERIAL_PORT0
  120. config ETRAX_SER0_DSR_BIT
  121. string "Ser 0 DSR bit (empty = not used)"
  122. depends on ETRAX_SERIAL_PORT0
  123. config ETRAX_SER0_CD_BIT
  124. string "Ser 0 CD bit (empty = not used)"
  125. depends on ETRAX_SERIAL_PORT0
  126. config ETRAX_SERIAL_PORT1
  127. bool "Serial port 1 enabled"
  128. depends on ETRAXFS_SERIAL
  129. help
  130. Enables the ETRAX FS serial driver for ser1 (ttyS1).
  131. choice
  132. prompt "Ser1 default port type"
  133. depends on ETRAX_SERIAL_PORT1
  134. default ETRAX_SERIAL_PORT1_TYPE_232
  135. help
  136. Type of serial port.
  137. config ETRAX_SERIAL_PORT1_TYPE_232
  138. bool "Ser1 is a RS-232 port"
  139. help
  140. Configure serial port 1 to be a RS-232 port.
  141. config ETRAX_SERIAL_PORT1_TYPE_485HD
  142. bool "Ser1 is a half duplex RS-485 port"
  143. depends on ETRAX_RS485
  144. help
  145. Configure serial port 1 to be a half duplex (two wires) RS-485 port.
  146. config ETRAX_SERIAL_PORT1_TYPE_485FD
  147. bool "Ser1 is a full duplex RS-485 port"
  148. depends on ETRAX_RS485
  149. help
  150. Configure serial port 1 to be a full duplex (four wires) RS-485 port.
  151. endchoice
  152. config ETRAX_SER1_DTR_BIT
  153. string "Ser 1 DTR bit (empty = not used)"
  154. depends on ETRAX_SERIAL_PORT1
  155. config ETRAX_SER1_RI_BIT
  156. string "Ser 1 RI bit (empty = not used)"
  157. depends on ETRAX_SERIAL_PORT1
  158. config ETRAX_SER1_DSR_BIT
  159. string "Ser 1 DSR bit (empty = not used)"
  160. depends on ETRAX_SERIAL_PORT1
  161. config ETRAX_SER1_CD_BIT
  162. string "Ser 1 CD bit (empty = not used)"
  163. depends on ETRAX_SERIAL_PORT1
  164. config ETRAX_SERIAL_PORT2
  165. bool "Serial port 2 enabled"
  166. depends on ETRAXFS_SERIAL
  167. help
  168. Enables the ETRAX FS serial driver for ser2 (ttyS2).
  169. choice
  170. prompt "Ser2 default port type"
  171. depends on ETRAX_SERIAL_PORT2
  172. default ETRAX_SERIAL_PORT2_TYPE_232
  173. help
  174. What DMA channel to use for ser2
  175. config ETRAX_SERIAL_PORT2_TYPE_232
  176. bool "Ser2 is a RS-232 port"
  177. help
  178. Configure serial port 2 to be a RS-232 port.
  179. config ETRAX_SERIAL_PORT2_TYPE_485HD
  180. bool "Ser2 is a half duplex RS-485 port"
  181. depends on ETRAX_RS485
  182. help
  183. Configure serial port 2 to be a half duplex (two wires) RS-485 port.
  184. config ETRAX_SERIAL_PORT2_TYPE_485FD
  185. bool "Ser2 is a full duplex RS-485 port"
  186. depends on ETRAX_RS485
  187. help
  188. Configure serial port 2 to be a full duplex (four wires) RS-485 port.
  189. endchoice
  190. config ETRAX_SER2_DTR_BIT
  191. string "Ser 2 DTR bit (empty = not used)"
  192. depends on ETRAX_SERIAL_PORT2
  193. config ETRAX_SER2_RI_BIT
  194. string "Ser 2 RI bit (empty = not used)"
  195. depends on ETRAX_SERIAL_PORT2
  196. config ETRAX_SER2_DSR_BIT
  197. string "Ser 2 DSR bit (empty = not used)"
  198. depends on ETRAX_SERIAL_PORT2
  199. config ETRAX_SER2_CD_BIT
  200. string "Ser 2 CD bit (empty = not used)"
  201. depends on ETRAX_SERIAL_PORT2
  202. config ETRAX_SERIAL_PORT3
  203. bool "Serial port 3 enabled"
  204. depends on ETRAXFS_SERIAL
  205. help
  206. Enables the ETRAX FS serial driver for ser3 (ttyS3).
  207. choice
  208. prompt "Ser3 default port type"
  209. depends on ETRAX_SERIAL_PORT3
  210. default ETRAX_SERIAL_PORT3_TYPE_232
  211. help
  212. What DMA channel to use for ser3.
  213. config ETRAX_SERIAL_PORT3_TYPE_232
  214. bool "Ser3 is a RS-232 port"
  215. help
  216. Configure serial port 3 to be a RS-232 port.
  217. config ETRAX_SERIAL_PORT3_TYPE_485HD
  218. bool "Ser3 is a half duplex RS-485 port"
  219. depends on ETRAX_RS485
  220. help
  221. Configure serial port 3 to be a half duplex (two wires) RS-485 port.
  222. config ETRAX_SERIAL_PORT3_TYPE_485FD
  223. bool "Ser3 is a full duplex RS-485 port"
  224. depends on ETRAX_RS485
  225. help
  226. Configure serial port 3 to be a full duplex (four wires) RS-485 port.
  227. endchoice
  228. config ETRAX_SER3_DTR_BIT
  229. string "Ser 3 DTR bit (empty = not used)"
  230. depends on ETRAX_SERIAL_PORT3
  231. config ETRAX_SER3_RI_BIT
  232. string "Ser 3 RI bit (empty = not used)"
  233. depends on ETRAX_SERIAL_PORT3
  234. config ETRAX_SER3_DSR_BIT
  235. string "Ser 3 DSR bit (empty = not used)"
  236. depends on ETRAX_SERIAL_PORT3
  237. config ETRAX_SER3_CD_BIT
  238. string "Ser 3 CD bit (empty = not used)"
  239. depends on ETRAX_SERIAL_PORT3
  240. config ETRAX_SERIAL_PORT4
  241. bool "Serial port 4 enabled"
  242. depends on ETRAXFS_SERIAL && CRIS_MACH_ARTPEC3
  243. help
  244. Enables the ETRAX FS serial driver for ser4 (ttyS4).
  245. choice
  246. prompt "Ser4 default port type"
  247. depends on ETRAX_SERIAL_PORT4
  248. default ETRAX_SERIAL_PORT4_TYPE_232
  249. help
  250. What DMA channel to use for ser4.
  251. config ETRAX_SERIAL_PORT4_TYPE_232
  252. bool "Ser4 is a RS-232 port"
  253. help
  254. Configure serial port 4 to be a RS-232 port.
  255. config ETRAX_SERIAL_PORT4_TYPE_485HD
  256. bool "Ser4 is a half duplex RS-485 port"
  257. depends on ETRAX_RS485
  258. help
  259. Configure serial port 4 to be a half duplex (two wires) RS-485 port.
  260. config ETRAX_SERIAL_PORT4_TYPE_485FD
  261. bool "Ser4 is a full duplex RS-485 port"
  262. depends on ETRAX_RS485
  263. help
  264. Configure serial port 4 to be a full duplex (four wires) RS-485 port.
  265. endchoice
  266. choice
  267. prompt "Ser4 DMA in channel "
  268. depends on ETRAX_SERIAL_PORT4
  269. default ETRAX_SERIAL_PORT4_NO_DMA_IN
  270. help
  271. What DMA channel to use for ser4.
  272. config ETRAX_SERIAL_PORT4_NO_DMA_IN
  273. bool "Ser4 uses no DMA for input"
  274. help
  275. Do not use DMA for ser4 input.
  276. config ETRAX_SERIAL_PORT4_DMA9_IN
  277. bool "Ser4 uses DMA9 for input"
  278. depends on ETRAX_SERIAL_PORT4
  279. help
  280. Enables the DMA9 input channel for ser4 (ttyS4).
  281. If you do not enable DMA, an interrupt for each character will be
  282. used when receiving data.
  283. Normally you want to use DMA, unless you use the DMA channel for
  284. something else.
  285. endchoice
  286. config ETRAX_SER4_DTR_BIT
  287. string "Ser 4 DTR bit (empty = not used)"
  288. depends on ETRAX_SERIAL_PORT4
  289. config ETRAX_SER4_RI_BIT
  290. string "Ser 4 RI bit (empty = not used)"
  291. depends on ETRAX_SERIAL_PORT4
  292. config ETRAX_SER4_DSR_BIT
  293. string "Ser 4 DSR bit (empty = not used)"
  294. depends on ETRAX_SERIAL_PORT4
  295. config ETRAX_SER4_CD_BIT
  296. string "Ser 4 CD bit (empty = not used)"
  297. depends on ETRAX_SERIAL_PORT4
  298. config ETRAX_SYNCHRONOUS_SERIAL
  299. bool "Synchronous serial-port support"
  300. depends on ETRAX_ARCH_V32
  301. help
  302. Enables the ETRAX FS synchronous serial driver.
  303. config ETRAX_SYNCHRONOUS_SERIAL_PORT0
  304. bool "Synchronous serial port 0 enabled"
  305. depends on ETRAX_SYNCHRONOUS_SERIAL
  306. help
  307. Enabled synchronous serial port 0.
  308. config ETRAX_SYNCHRONOUS_SERIAL0_DMA
  309. bool "Enable DMA on synchronous serial port 0."
  310. depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
  311. help
  312. A synchronous serial port can run in manual or DMA mode.
  313. Selecting this option will make it run in DMA mode.
  314. config ETRAX_SYNCHRONOUS_SERIAL_PORT1
  315. bool "Synchronous serial port 1 enabled"
  316. depends on ETRAX_SYNCHRONOUS_SERIAL && ETRAXFS
  317. help
  318. Enabled synchronous serial port 1.
  319. config ETRAX_SYNCHRONOUS_SERIAL1_DMA
  320. bool "Enable DMA on synchronous serial port 1."
  321. depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
  322. help
  323. A synchronous serial port can run in manual or DMA mode.
  324. Selecting this option will make it run in DMA mode.
  325. config ETRAX_AXISFLASHMAP
  326. bool "Axis flash-map support"
  327. depends on ETRAX_ARCH_V32
  328. select MTD
  329. select MTD_CFI
  330. select MTD_CFI_AMDSTD
  331. select MTD_JEDECPROBE
  332. select MTD_BLOCK
  333. select MTD_COMPLEX_MAPPINGS
  334. help
  335. This option enables MTD mapping of flash devices. Needed to use
  336. flash memories. If unsure, say Y.
  337. config ETRAX_AXISFLASHMAP_MTD0WHOLE
  338. bool "MTD0 is whole boot flash device"
  339. depends on ETRAX_AXISFLASHMAP
  340. default N
  341. help
  342. When this option is not set, mtd0 refers to the first partition
  343. on the boot flash device. When set, mtd0 refers to the whole
  344. device, with mtd1 referring to the first partition etc.
  345. config ETRAX_PTABLE_SECTOR
  346. int "Byte-offset of partition table sector"
  347. depends on ETRAX_AXISFLASHMAP
  348. default "65536"
  349. help
  350. Byte-offset of the partition table in the first flash chip.
  351. The default value is 64kB and should not be changed unless
  352. you know exactly what you are doing. The only valid reason
  353. for changing this is when the flash block size is bigger
  354. than 64kB (e.g. when using two parallel 16 bit flashes).
  355. config ETRAX_NANDFLASH
  356. bool "NAND flash support"
  357. depends on ETRAX_ARCH_V32
  358. select MTD_NAND
  359. select MTD_NAND_IDS
  360. help
  361. This option enables MTD mapping of NAND flash devices. Needed to use
  362. NAND flash memories. If unsure, say Y.
  363. config ETRAX_NANDBOOT
  364. bool "Boot from NAND flash"
  365. depends on ETRAX_NANDFLASH
  366. help
  367. This options enables booting from NAND flash devices.
  368. Say Y if your boot code, kernel and root file system is in
  369. NAND flash. Say N if they are in NOR flash.
  370. config ETRAX_I2C
  371. bool "I2C driver"
  372. depends on ETRAX_ARCH_V32
  373. help
  374. This option enables the I2C driver used by e.g. the RTC driver.
  375. config ETRAX_V32_I2C_DATA_PORT
  376. string "I2C data pin"
  377. depends on ETRAX_I2C
  378. help
  379. The pin to use for I2C data.
  380. config ETRAX_V32_I2C_CLK_PORT
  381. string "I2C clock pin"
  382. depends on ETRAX_I2C
  383. help
  384. The pin to use for I2C clock.
  385. config ETRAX_GPIO
  386. bool "GPIO support"
  387. depends on ETRAX_ARCH_V32
  388. ---help---
  389. Enables the ETRAX general port device (major 120, minors 0-4).
  390. You can use this driver to access the general port bits. It supports
  391. these ioctl's:
  392. #include <linux/etraxgpio.h>
  393. fd = open("/dev/gpioa", O_RDWR); // or /dev/gpiob
  394. ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_SETBITS), bits_to_set);
  395. ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_CLRBITS), bits_to_clear);
  396. err = ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_READ_INBITS), &val);
  397. Remember that you need to setup the port directions appropriately in
  398. the General configuration.
  399. config ETRAX_VIRTUAL_GPIO
  400. bool "Virtual GPIO support"
  401. depends on ETRAX_GPIO
  402. help
  403. Enables the virtual Etrax general port device (major 120, minor 6).
  404. It uses an I/O expander for the I2C-bus.
  405. config ETRAX_VIRTUAL_GPIO_INTERRUPT_PA_PIN
  406. int "Virtual GPIO interrupt pin on PA pin"
  407. range 0 7
  408. depends on ETRAX_VIRTUAL_GPIO
  409. help
  410. The pin to use on PA for virtual gpio interrupt.
  411. config ETRAX_PA_CHANGEABLE_DIR
  412. hex "PA user changeable dir mask"
  413. depends on ETRAX_GPIO
  414. default "0x00" if ETRAXFS
  415. default "0x00000000" if !ETRAXFS
  416. help
  417. This is a bitmask (8 bits) with information of what bits in PA that a
  418. user can change direction on using ioctl's.
  419. Bit set = changeable.
  420. You probably want 0 here, but it depends on your hardware.
  421. config ETRAX_PA_CHANGEABLE_BITS
  422. hex "PA user changeable bits mask"
  423. depends on ETRAX_GPIO
  424. default "0x00" if ETRAXFS
  425. default "0x00000000" if !ETRAXFS
  426. help
  427. This is a bitmask (8 bits) with information of what bits in PA
  428. that a user can change the value on using ioctl's.
  429. Bit set = changeable.
  430. config ETRAX_PB_CHANGEABLE_DIR
  431. hex "PB user changeable dir mask"
  432. depends on ETRAX_GPIO
  433. default "0x00000" if ETRAXFS
  434. default "0x00000000" if !ETRAXFS
  435. help
  436. This is a bitmask (18 bits) with information of what bits in PB
  437. that a user can change direction on using ioctl's.
  438. Bit set = changeable.
  439. You probably want 0 here, but it depends on your hardware.
  440. config ETRAX_PB_CHANGEABLE_BITS
  441. hex "PB user changeable bits mask"
  442. depends on ETRAX_GPIO
  443. default "0x00000" if ETRAXFS
  444. default "0x00000000" if !ETRAXFS
  445. help
  446. This is a bitmask (18 bits) with information of what bits in PB
  447. that a user can change the value on using ioctl's.
  448. Bit set = changeable.
  449. config ETRAX_PC_CHANGEABLE_DIR
  450. hex "PC user changeable dir mask"
  451. depends on ETRAX_GPIO
  452. default "0x00000" if ETRAXFS
  453. default "0x00000000" if !ETRAXFS
  454. help
  455. This is a bitmask (18 bits) with information of what bits in PC
  456. that a user can change direction on using ioctl's.
  457. Bit set = changeable.
  458. You probably want 0 here, but it depends on your hardware.
  459. config ETRAX_PC_CHANGEABLE_BITS
  460. hex "PC user changeable bits mask"
  461. depends on ETRAX_GPIO
  462. default "0x00000" if ETRAXFS
  463. default "0x00000000" if ETRAXFS
  464. help
  465. This is a bitmask (18 bits) with information of what bits in PC
  466. that a user can change the value on using ioctl's.
  467. Bit set = changeable.
  468. config ETRAX_PD_CHANGEABLE_DIR
  469. hex "PD user changeable dir mask"
  470. depends on ETRAX_GPIO && ETRAXFS
  471. default "0x00000"
  472. help
  473. This is a bitmask (18 bits) with information of what bits in PD
  474. that a user can change direction on using ioctl's.
  475. Bit set = changeable.
  476. You probably want 0x00000 here, but it depends on your hardware.
  477. config ETRAX_PD_CHANGEABLE_BITS
  478. hex "PD user changeable bits mask"
  479. depends on ETRAX_GPIO && ETRAXFS
  480. default "0x00000"
  481. help
  482. This is a bitmask (18 bits) with information of what bits in PD
  483. that a user can change the value on using ioctl's.
  484. Bit set = changeable.
  485. config ETRAX_PE_CHANGEABLE_DIR
  486. hex "PE user changeable dir mask"
  487. depends on ETRAX_GPIO && ETRAXFS
  488. default "0x00000"
  489. help
  490. This is a bitmask (18 bits) with information of what bits in PE
  491. that a user can change direction on using ioctl's.
  492. Bit set = changeable.
  493. You probably want 0x00000 here, but it depends on your hardware.
  494. config ETRAX_PE_CHANGEABLE_BITS
  495. hex "PE user changeable bits mask"
  496. depends on ETRAX_GPIO && ETRAXFS
  497. default "0x00000"
  498. help
  499. This is a bitmask (18 bits) with information of what bits in PE
  500. that a user can change the value on using ioctl's.
  501. Bit set = changeable.
  502. config ETRAX_PV_CHANGEABLE_DIR
  503. hex "PV user changeable dir mask"
  504. depends on ETRAX_VIRTUAL_GPIO
  505. default "0x0000"
  506. help
  507. This is a bitmask (16 bits) with information of what bits in PV
  508. that a user can change direction on using ioctl's.
  509. Bit set = changeable.
  510. You probably want 0x0000 here, but it depends on your hardware.
  511. config ETRAX_PV_CHANGEABLE_BITS
  512. hex "PV user changeable bits mask"
  513. depends on ETRAX_VIRTUAL_GPIO
  514. default "0x0000"
  515. help
  516. This is a bitmask (16 bits) with information of what bits in PV
  517. that a user can change the value on using ioctl's.
  518. Bit set = changeable.
  519. config ETRAX_CARDBUS
  520. bool "Cardbus support"
  521. depends on ETRAX_ARCH_V32
  522. help
  523. Enabled the ETRAX Cardbus driver.
  524. config PCI
  525. bool
  526. depends on ETRAX_CARDBUS
  527. default y
  528. select HAVE_GENERIC_DMA_COHERENT
  529. config ETRAX_IOP_FW_LOAD
  530. tristate "IO-processor hotplug firmware loading support"
  531. depends on ETRAX_ARCH_V32
  532. select FW_LOADER
  533. help
  534. Enables IO-processor hotplug firmware loading support.
  535. config ETRAX_STREAMCOPROC
  536. tristate "Stream co-processor driver enabled"
  537. depends on ETRAX_ARCH_V32
  538. help
  539. This option enables a driver for the stream co-processor
  540. for cryptographic operations.
  541. config ETRAX_MMC_IOP
  542. tristate "MMC/SD host driver using IO-processor"
  543. depends on ETRAX_ARCH_V32 && MMC
  544. help
  545. This option enables the SD/MMC host controller interface.
  546. The host controller is implemented using the built in
  547. IO-Processor. Only the SPU is used in this implementation.
  548. config ETRAX_SPI_MMC
  549. # Make this one of several "choices" (possible simultaneously but
  550. # suggested uniquely) when an IOP driver emerges for "real" MMC/SD
  551. # protocol support.
  552. tristate
  553. depends on !ETRAX_MMC_IOP
  554. default MMC
  555. select SPI
  556. select MMC_SPI
  557. select ETRAX_SPI_MMC_BOARD
  558. # For the parts that can't be a module (due to restrictions in
  559. # framework elsewhere).
  560. config ETRAX_SPI_MMC_BOARD
  561. boolean
  562. default n
  563. # While the board info is MMC_SPI only, the drivers are written to be
  564. # independent of MMC_SPI, so we'll keep SPI non-dependent on the
  565. # MMC_SPI config choices (well, except for a single depends-on-line
  566. # for the board-info file until a separate non-MMC SPI board file
  567. # emerges).
  568. # FIXME: When that happens, we'll need to be able to ask for and
  569. # configure non-MMC SPI ports together with MMC_SPI ports (if multiple
  570. # SPI ports are enabled).
  571. config SPI_ETRAX_SSER
  572. tristate
  573. depends on SPI_MASTER && ETRAX_ARCH_V32
  574. select SPI_BITBANG
  575. help
  576. This enables using an synchronous serial (sser) port as a
  577. SPI master controller on Axis ETRAX FS and later. The
  578. driver can be configured to use any sser port.
  579. config SPI_ETRAX_GPIO
  580. tristate
  581. depends on SPI_MASTER && ETRAX_ARCH_V32
  582. select SPI_BITBANG
  583. help
  584. This enables using GPIO pins port as a SPI master controller
  585. on Axis ETRAX FS and later. The driver can be configured to
  586. use any GPIO pins.
  587. config ETRAX_SPI_SSER0
  588. tristate "SPI using synchronous serial port 0 (sser0)"
  589. depends on ETRAX_SPI_MMC
  590. default m if MMC_SPI=m
  591. default y if MMC_SPI=y
  592. default y if MMC_SPI=n
  593. select SPI_ETRAX_SSER
  594. help
  595. Say Y for an MMC/SD socket connected to synchronous serial port 0,
  596. or for devices using the SPI protocol on that port. Say m if you
  597. want to build it as a module, which will be named spi_crisv32_sser.
  598. (You need to select MMC separately.)
  599. config ETRAX_SPI_SSER0_DMA
  600. bool "DMA for SPI on sser0 enabled"
  601. depends on ETRAX_SPI_SSER0
  602. depends on !ETRAX_SERIAL_PORT1_DMA4_OUT && !ETRAX_SERIAL_PORT1_DMA5_IN
  603. default y
  604. help
  605. Say Y if using DMA (dma4/dma5) for SPI on synchronous serial port 0.
  606. config ETRAX_SPI_MMC_CD_SSER0_PIN
  607. string "MMC/SD card detect pin for SPI on sser0"
  608. depends on ETRAX_SPI_SSER0 && MMC_SPI
  609. default "pd11"
  610. help
  611. The pin to use for SD/MMC card detect. This pin should be pulled up
  612. and grounded when a card is present. If defined as " " (space), no
  613. pin is selected. A card must then always be inserted for proper
  614. action.
  615. config ETRAX_SPI_MMC_WP_SSER0_PIN
  616. string "MMC/SD card write-protect pin for SPI on sser0"
  617. depends on ETRAX_SPI_SSER0 && MMC_SPI
  618. default "pd10"
  619. help
  620. The pin to use for the SD/MMC write-protect signal for a memory
  621. card. If defined as " " (space), the card is considered writable.
  622. config ETRAX_SPI_SSER1
  623. tristate "SPI using synchronous serial port 1 (sser1)"
  624. depends on ETRAX_SPI_MMC
  625. default m if MMC_SPI=m && ETRAX_SPI_SSER0=n
  626. default y if MMC_SPI=y && ETRAX_SPI_SSER0=n
  627. default y if MMC_SPI=n && ETRAX_SPI_SSER0=n
  628. select SPI_ETRAX_SSER
  629. help
  630. Say Y for an MMC/SD socket connected to synchronous serial port 1,
  631. or for devices using the SPI protocol on that port. Say m if you
  632. want to build it as a module, which will be named spi_crisv32_sser.
  633. (You need to select MMC separately.)
  634. config ETRAX_SPI_SSER1_DMA
  635. bool "DMA for SPI on sser1 enabled"
  636. depends on ETRAX_SPI_SSER1 && !ETRAX_ETHERNET_IFACE1
  637. depends on !ETRAX_SERIAL_PORT0_DMA6_OUT && !ETRAX_SERIAL_PORT0_DMA7_IN
  638. default y
  639. help
  640. Say Y if using DMA (dma6/dma7) for SPI on synchronous serial port 1.
  641. config ETRAX_SPI_MMC_CD_SSER1_PIN
  642. string "MMC/SD card detect pin for SPI on sser1"
  643. depends on ETRAX_SPI_SSER1 && MMC_SPI
  644. default "pd12"
  645. help
  646. The pin to use for SD/MMC card detect. This pin should be pulled up
  647. and grounded when a card is present. If defined as " " (space), no
  648. pin is selected. A card must then always be inserted for proper
  649. action.
  650. config ETRAX_SPI_MMC_WP_SSER1_PIN
  651. string "MMC/SD card write-protect pin for SPI on sser1"
  652. depends on ETRAX_SPI_SSER1 && MMC_SPI
  653. default "pd9"
  654. help
  655. The pin to use for the SD/MMC write-protect signal for a memory
  656. card. If defined as " " (space), the card is considered writable.
  657. config ETRAX_SPI_GPIO
  658. tristate "Bitbanged SPI using gpio pins"
  659. depends on ETRAX_SPI_MMC
  660. select SPI_ETRAX_GPIO
  661. default m if MMC_SPI=m && ETRAX_SPI_SSER0=n && ETRAX_SPI_SSER1=n
  662. default y if MMC_SPI=y && ETRAX_SPI_SSER0=n && ETRAX_SPI_SSER1=n
  663. default y if MMC_SPI=n && ETRAX_SPI_SSER0=n && ETRAX_SPI_SSER1=n
  664. help
  665. Say Y for an MMC/SD socket connected to general I/O pins (but not
  666. a complete synchronous serial ports), or for devices using the SPI
  667. protocol on general I/O pins. Slow and slows down the system.
  668. Say m to build it as a module, which will be called spi_crisv32_gpio.
  669. (You need to select MMC separately.)
  670. # The default match that of sser0, only because that's how it was tested.
  671. config ETRAX_SPI_CS_PIN
  672. string "SPI chip select pin"
  673. depends on ETRAX_SPI_GPIO
  674. default "pc3"
  675. help
  676. The pin to use for SPI chip select.
  677. config ETRAX_SPI_CLK_PIN
  678. string "SPI clock pin"
  679. depends on ETRAX_SPI_GPIO
  680. default "pc1"
  681. help
  682. The pin to use for the SPI clock.
  683. config ETRAX_SPI_DATAIN_PIN
  684. string "SPI MISO (data in) pin"
  685. depends on ETRAX_SPI_GPIO
  686. default "pc16"
  687. help
  688. The pin to use for SPI data in from the device.
  689. config ETRAX_SPI_DATAOUT_PIN
  690. string "SPI MOSI (data out) pin"
  691. depends on ETRAX_SPI_GPIO
  692. default "pc0"
  693. help
  694. The pin to use for SPI data out to the device.
  695. config ETRAX_SPI_MMC_CD_GPIO_PIN
  696. string "MMC/SD card detect pin for SPI using gpio (space for none)"
  697. depends on ETRAX_SPI_GPIO && MMC_SPI
  698. default "pd11"
  699. help
  700. The pin to use for SD/MMC card detect. This pin should be pulled up
  701. and grounded when a card is present. If defined as " " (space), no
  702. pin is selected. A card must then always be inserted for proper
  703. action.
  704. config ETRAX_SPI_MMC_WP_GPIO_PIN
  705. string "MMC/SD card write-protect pin for SPI using gpio (space for none)"
  706. depends on ETRAX_SPI_GPIO && MMC_SPI
  707. default "pd10"
  708. help
  709. The pin to use for the SD/MMC write-protect signal for a memory
  710. card. If defined as " " (space), the card is considered writable.
  711. endif