Kconfig 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. config M32R
  2. bool
  3. default y
  4. select HAVE_IDE
  5. select HAVE_OPROFILE
  6. select INIT_ALL_POSSIBLE
  7. select HAVE_KERNEL_GZIP
  8. select HAVE_KERNEL_BZIP2
  9. select HAVE_KERNEL_LZMA
  10. select ARCH_WANT_IPC_PARSE_VERSION
  11. select HAVE_DEBUG_BUGVERBOSE
  12. select HAVE_GENERIC_HARDIRQS
  13. select GENERIC_IRQ_PROBE
  14. select GENERIC_IRQ_SHOW
  15. select GENERIC_ATOMIC64
  16. select ARCH_USES_GETTIMEOFFSET
  17. select MODULES_USE_ELF_RELA
  18. config SBUS
  19. bool
  20. config GENERIC_ISA_DMA
  21. bool
  22. default y
  23. config ZONE_DMA
  24. bool
  25. default y
  26. config NO_IOPORT
  27. def_bool y
  28. config NO_DMA
  29. def_bool y
  30. config HZ
  31. int
  32. default 100
  33. source "init/Kconfig"
  34. source "kernel/Kconfig.freezer"
  35. menu "Processor type and features"
  36. choice
  37. prompt "Platform Type"
  38. default PLAT_MAPPI
  39. config PLAT_MAPPI
  40. bool "Mappi-I"
  41. help
  42. The Mappi-I is an FPGA board for SOC (System-On-a-Chip) prototyping.
  43. You can operate a Linux system on this board by using an M32R
  44. softmacro core, which is a fully-synthesizable functional model
  45. described in Verilog-HDL.
  46. The Mappi-I board was the first platform, which had been used
  47. to port and develop a Linux system for the M32R processor.
  48. Currently, the Mappi-II, an heir to the Mappi-I, is available.
  49. config PLAT_USRV
  50. bool "uServer"
  51. select PLAT_HAS_INT1ICU
  52. config PLAT_M32700UT
  53. bool "M32700UT"
  54. select PLAT_HAS_INT0ICU
  55. select PLAT_HAS_INT1ICU
  56. select PLAT_HAS_INT2ICU
  57. help
  58. The M3T-M32700UT is an evaluation board based on uT-Engine
  59. specification. This board has an M32700 (Chaos) evaluation chip.
  60. You can say Y for SMP, because the M32700 is a single chip
  61. multiprocessor.
  62. config PLAT_OPSPUT
  63. bool "OPSPUT"
  64. select PLAT_HAS_INT0ICU
  65. select PLAT_HAS_INT1ICU
  66. select PLAT_HAS_INT2ICU
  67. help
  68. The OPSPUT is an evaluation board based on uT-Engine
  69. specification. This board has a OPSP-REP chip.
  70. config PLAT_OAKS32R
  71. bool "OAKS32R"
  72. help
  73. The OAKS32R is a tiny, inexpensive evaluation board.
  74. Please note that if you say Y here and choose chip "M32102",
  75. say N for MMU and select a no-MMU version kernel, otherwise
  76. a kernel with MMU support will not work, because the M32102
  77. is a microcontroller for embedded systems and it has no MMU.
  78. config PLAT_MAPPI2
  79. bool "Mappi-II(M3A-ZA36/M3A-ZA52)"
  80. config PLAT_MAPPI3
  81. bool "Mappi-III(M3A-2170)"
  82. config PLAT_M32104UT
  83. bool "M32104UT"
  84. select PLAT_HAS_INT1ICU
  85. help
  86. The M3T-M32104UT is an reference board based on uT-Engine
  87. specification. This board has a M32104 chip.
  88. endchoice
  89. choice
  90. prompt "Processor family"
  91. default CHIP_M32700
  92. config CHIP_M32700
  93. bool "M32700 (Chaos)"
  94. config CHIP_M32102
  95. bool "M32102"
  96. config CHIP_M32104
  97. bool "M32104"
  98. depends on PLAT_M32104UT
  99. config CHIP_VDEC2
  100. bool "VDEC2"
  101. config CHIP_OPSP
  102. bool "OPSP"
  103. endchoice
  104. config MMU
  105. bool "Support for memory management hardware"
  106. depends on CHIP_M32700 || CHIP_VDEC2 || CHIP_OPSP
  107. default y
  108. config TLB_ENTRIES
  109. int "TLB Entries"
  110. depends on CHIP_M32700 || CHIP_VDEC2 || CHIP_OPSP
  111. default 32 if CHIP_M32700 || CHIP_OPSP
  112. default 16 if CHIP_VDEC2
  113. config ISA_M32R
  114. bool
  115. depends on CHIP_M32102 || CHIP_M32104
  116. default y
  117. config ISA_M32R2
  118. bool
  119. depends on CHIP_M32700 || CHIP_VDEC2 || CHIP_OPSP
  120. default y
  121. config ISA_DSP_LEVEL2
  122. bool
  123. depends on CHIP_M32700 || CHIP_OPSP
  124. default y
  125. config ISA_DUAL_ISSUE
  126. bool
  127. depends on CHIP_M32700 || CHIP_OPSP
  128. default y
  129. config PLAT_HAS_INT0ICU
  130. bool
  131. default n
  132. config PLAT_HAS_INT1ICU
  133. bool
  134. default n
  135. config PLAT_HAS_INT2ICU
  136. bool
  137. default n
  138. config BUS_CLOCK
  139. int "Bus Clock [Hz] (integer)"
  140. default "70000000" if PLAT_MAPPI
  141. default "25000000" if PLAT_USRV
  142. default "50000000" if PLAT_MAPPI3
  143. default "50000000" if PLAT_M32700UT
  144. default "50000000" if PLAT_OPSPUT
  145. default "54000000" if PLAT_M32104UT
  146. default "33333333" if PLAT_OAKS32R
  147. default "20000000" if PLAT_MAPPI2
  148. config TIMER_DIVIDE
  149. int "Timer divider (integer)"
  150. default "128"
  151. config CPU_LITTLE_ENDIAN
  152. bool "Generate little endian code"
  153. default n
  154. config MEMORY_START
  155. hex "Physical memory start address (hex)"
  156. default "08000000" if PLAT_MAPPI || PLAT_MAPPI2 || PLAT_MAPPI3
  157. default "08000000" if PLAT_USRV
  158. default "08000000" if PLAT_M32700UT
  159. default "08000000" if PLAT_OPSPUT
  160. default "04000000" if PLAT_M32104UT
  161. default "01000000" if PLAT_OAKS32R
  162. config MEMORY_SIZE
  163. hex "Physical memory size (hex)"
  164. default "08000000" if PLAT_MAPPI3
  165. default "04000000" if PLAT_MAPPI || PLAT_MAPPI2
  166. default "02000000" if PLAT_USRV
  167. default "01000000" if PLAT_M32700UT
  168. default "01000000" if PLAT_OPSPUT
  169. default "01000000" if PLAT_M32104UT
  170. default "00800000" if PLAT_OAKS32R
  171. config ARCH_DISCONTIGMEM_ENABLE
  172. bool "Internal RAM Support"
  173. depends on CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104
  174. default y
  175. source "mm/Kconfig"
  176. config IRAM_START
  177. hex "Internal memory start address (hex)"
  178. default "00f00000" if !CHIP_M32104
  179. default "00700000" if CHIP_M32104
  180. depends on (CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104) && DISCONTIGMEM
  181. config IRAM_SIZE
  182. hex "Internal memory size (hex)"
  183. depends on (CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104) && DISCONTIGMEM
  184. default "00080000" if CHIP_M32700
  185. default "00010000" if CHIP_M32102 || CHIP_OPSP || CHIP_M32104
  186. default "00008000" if CHIP_VDEC2
  187. #
  188. # Define implied options from the CPU selection here
  189. #
  190. config GENERIC_LOCKBREAK
  191. bool
  192. default y
  193. depends on SMP && PREEMPT
  194. config RWSEM_GENERIC_SPINLOCK
  195. bool
  196. depends on M32R
  197. default y
  198. config RWSEM_XCHGADD_ALGORITHM
  199. bool
  200. default n
  201. config ARCH_HAS_ILOG2_U32
  202. bool
  203. default n
  204. config ARCH_HAS_ILOG2_U64
  205. bool
  206. default n
  207. config GENERIC_HWEIGHT
  208. bool
  209. default y
  210. config GENERIC_CALIBRATE_DELAY
  211. bool
  212. default y
  213. config SCHED_OMIT_FRAME_POINTER
  214. bool
  215. default y
  216. source "kernel/Kconfig.preempt"
  217. config SMP
  218. bool "Symmetric multi-processing support"
  219. select USE_GENERIC_SMP_HELPERS
  220. ---help---
  221. This enables support for systems with more than one CPU. If you have
  222. a system with only one CPU, like most personal computers, say N. If
  223. you have a system with more than one CPU, say Y.
  224. If you say N here, the kernel will run on single and multiprocessor
  225. machines, but will use only one CPU of a multiprocessor machine. If
  226. you say Y here, the kernel will run on many, but not all,
  227. singleprocessor machines. On a singleprocessor machine, the kernel
  228. will run faster if you say N here.
  229. People using multiprocessor machines who say Y here should also say
  230. Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
  231. Management" code will be disabled if you say Y here.
  232. See also the SMP-HOWTO available at
  233. <http://tldp.org/HOWTO/SMP-HOWTO.html>.
  234. If you don't know what to do here, say N.
  235. config CHIP_M32700_TS1
  236. bool "Workaround code for the M32700 TS1 chip's bug"
  237. depends on (CHIP_M32700 && SMP)
  238. default n
  239. config NR_CPUS
  240. int "Maximum number of CPUs (2-32)"
  241. range 2 32
  242. depends on SMP
  243. default "2"
  244. help
  245. This allows you to specify the maximum number of CPUs which this
  246. kernel will support. The maximum supported value is 32 and the
  247. minimum value which makes sense is 2.
  248. This is purely to save memory - each supported CPU adds
  249. approximately eight kilobytes to the kernel image.
  250. # Common NUMA Features
  251. config NUMA
  252. bool "Numa Memory Allocation Support"
  253. depends on SMP && BROKEN
  254. default n
  255. config NODES_SHIFT
  256. int
  257. default "1"
  258. depends on NEED_MULTIPLE_NODES
  259. endmenu
  260. menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)"
  261. config PCI
  262. bool "PCI support"
  263. depends on BROKEN
  264. default n
  265. help
  266. Find out whether you have a PCI motherboard. PCI is the name of a
  267. bus system, i.e. the way the CPU talks to the other stuff inside
  268. your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
  269. VESA. If you have PCI, say Y, otherwise N.
  270. choice
  271. prompt "PCI access mode"
  272. depends on PCI
  273. default PCI_GOANY
  274. config PCI_GOBIOS
  275. bool "BIOS"
  276. ---help---
  277. On PCI systems, the BIOS can be used to detect the PCI devices and
  278. determine their configuration. However, some old PCI motherboards
  279. have BIOS bugs and may crash if this is done. Also, some embedded
  280. PCI-based systems don't have any BIOS at all. Linux can also try to
  281. detect the PCI hardware directly without using the BIOS.
  282. With this option, you can specify how Linux should detect the PCI
  283. devices. If you choose "BIOS", the BIOS will be used, if you choose
  284. "Direct", the BIOS won't be used, and if you choose "Any", the
  285. kernel will try the direct access method and falls back to the BIOS
  286. if that doesn't work. If unsure, go with the default, which is
  287. "Any".
  288. config PCI_GODIRECT
  289. bool "Direct"
  290. config PCI_GOANY
  291. bool "Any"
  292. endchoice
  293. config PCI_BIOS
  294. bool
  295. depends on PCI && (PCI_GOBIOS || PCI_GOANY)
  296. default y
  297. config PCI_DIRECT
  298. bool
  299. depends on PCI && (PCI_GODIRECT || PCI_GOANY)
  300. default y
  301. source "drivers/pci/Kconfig"
  302. config ISA
  303. bool
  304. source "drivers/pcmcia/Kconfig"
  305. source "drivers/pci/hotplug/Kconfig"
  306. endmenu
  307. menu "Executable file formats"
  308. source "fs/Kconfig.binfmt"
  309. endmenu
  310. source "net/Kconfig"
  311. source "drivers/Kconfig"
  312. source "fs/Kconfig"
  313. source "arch/m32r/Kconfig.debug"
  314. source "security/Kconfig"
  315. source "crypto/Kconfig"
  316. source "lib/Kconfig"