Kconfig 9.9 KB

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