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