Kconfig 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  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_IDE
  10. select HAVE_OPROFILE
  11. config SBUS
  12. bool
  13. config GENERIC_ISA_DMA
  14. bool
  15. default y
  16. config ZONE_DMA
  17. bool
  18. default y
  19. config GENERIC_HARDIRQS
  20. bool
  21. default y
  22. config GENERIC_IRQ_PROBE
  23. bool
  24. default y
  25. config NO_IOPORT
  26. def_bool y
  27. config NO_DMA
  28. def_bool y
  29. config ARCH_SUPPORTS_AOUT
  30. def_bool y
  31. config HZ
  32. int
  33. default 100
  34. source "init/Kconfig"
  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 NOHIGHMEM
  172. bool
  173. default y
  174. config ARCH_DISCONTIGMEM_ENABLE
  175. bool "Internal RAM Support"
  176. depends on CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104
  177. default y
  178. source "mm/Kconfig"
  179. config IRAM_START
  180. hex "Internal memory start address (hex)"
  181. default "00f00000" if !CHIP_M32104
  182. default "00700000" if CHIP_M32104
  183. depends on (CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104) && DISCONTIGMEM
  184. config IRAM_SIZE
  185. hex "Internal memory size (hex)"
  186. depends on (CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104) && DISCONTIGMEM
  187. default "00080000" if CHIP_M32700
  188. default "00010000" if CHIP_M32102 || CHIP_OPSP || CHIP_M32104
  189. default "00008000" if CHIP_VDEC2
  190. #
  191. # Define implied options from the CPU selection here
  192. #
  193. config GENERIC_LOCKBREAK
  194. bool
  195. default y
  196. depends on SMP && PREEMPT
  197. config RWSEM_GENERIC_SPINLOCK
  198. bool
  199. depends on M32R
  200. default y
  201. config RWSEM_XCHGADD_ALGORITHM
  202. bool
  203. default n
  204. config ARCH_HAS_ILOG2_U32
  205. bool
  206. default n
  207. config ARCH_HAS_ILOG2_U64
  208. bool
  209. default n
  210. config GENERIC_FIND_NEXT_BIT
  211. bool
  212. default y
  213. config GENERIC_HWEIGHT
  214. bool
  215. default y
  216. config GENERIC_CALIBRATE_DELAY
  217. bool
  218. default y
  219. config SCHED_NO_NO_OMIT_FRAME_POINTER
  220. bool
  221. default y
  222. config PREEMPT
  223. bool "Preemptible Kernel"
  224. help
  225. This option reduces the latency of the kernel when reacting to
  226. real-time or interactive events by allowing a low priority process to
  227. be preempted even if it is in kernel mode executing a system call.
  228. This allows applications to run more reliably even when the system is
  229. under load.
  230. Say Y here if you are building a kernel for a desktop, embedded
  231. or real-time system. Say N if you are unsure.
  232. config SMP
  233. bool "Symmetric multi-processing support"
  234. ---help---
  235. This enables support for systems with more than one CPU. If you have
  236. a system with only one CPU, like most personal computers, say N. If
  237. you have a system with more than one CPU, say Y.
  238. If you say N here, the kernel will run on single and multiprocessor
  239. machines, but will use only one CPU of a multiprocessor machine. If
  240. you say Y here, the kernel will run on many, but not all,
  241. singleprocessor machines. On a singleprocessor machine, the kernel
  242. will run faster if you say N here.
  243. People using multiprocessor machines who say Y here should also say
  244. Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
  245. Management" code will be disabled if you say Y here.
  246. See also the SMP-HOWTO available at
  247. <http://www.linuxdoc.org/docs.html#howto>.
  248. If you don't know what to do here, say N.
  249. config CHIP_M32700_TS1
  250. bool "Workaround code for the M32700 TS1 chip's bug"
  251. depends on (CHIP_M32700 && SMP)
  252. default n
  253. config NR_CPUS
  254. int "Maximum number of CPUs (2-32)"
  255. range 2 32
  256. depends on SMP
  257. default "2"
  258. help
  259. This allows you to specify the maximum number of CPUs which this
  260. kernel will support. The maximum supported value is 32 and the
  261. minimum value which makes sense is 2.
  262. This is purely to save memory - each supported CPU adds
  263. approximately eight kilobytes to the kernel image.
  264. # Common NUMA Features
  265. config NUMA
  266. bool "Numa Memory Allocation Support"
  267. depends on SMP && BROKEN
  268. default n
  269. config NODES_SHIFT
  270. int
  271. default "1"
  272. depends on NEED_MULTIPLE_NODES
  273. # turning this on wastes a bunch of space.
  274. # Summit needs it only when NUMA is on
  275. config BOOT_IOREMAP
  276. bool
  277. depends on NUMA
  278. default n
  279. endmenu
  280. menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)"
  281. config PCI
  282. bool "PCI support"
  283. depends on BROKEN
  284. default n
  285. help
  286. Find out whether you have a PCI motherboard. PCI is the name of a
  287. bus system, i.e. the way the CPU talks to the other stuff inside
  288. your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
  289. VESA. If you have PCI, say Y, otherwise N.
  290. choice
  291. prompt "PCI access mode"
  292. depends on PCI
  293. default PCI_GOANY
  294. config PCI_GOBIOS
  295. bool "BIOS"
  296. ---help---
  297. On PCI systems, the BIOS can be used to detect the PCI devices and
  298. determine their configuration. However, some old PCI motherboards
  299. have BIOS bugs and may crash if this is done. Also, some embedded
  300. PCI-based systems don't have any BIOS at all. Linux can also try to
  301. detect the PCI hardware directly without using the BIOS.
  302. With this option, you can specify how Linux should detect the PCI
  303. devices. If you choose "BIOS", the BIOS will be used, if you choose
  304. "Direct", the BIOS won't be used, and if you choose "Any", the
  305. kernel will try the direct access method and falls back to the BIOS
  306. if that doesn't work. If unsure, go with the default, which is
  307. "Any".
  308. config PCI_GODIRECT
  309. bool "Direct"
  310. config PCI_GOANY
  311. bool "Any"
  312. endchoice
  313. config PCI_BIOS
  314. bool
  315. depends on PCI && (PCI_GOBIOS || PCI_GOANY)
  316. default y
  317. config PCI_DIRECT
  318. bool
  319. depends on PCI && (PCI_GODIRECT || PCI_GOANY)
  320. default y
  321. source "drivers/pci/Kconfig"
  322. config ISA
  323. bool "ISA support"
  324. help
  325. Find out whether you have ISA slots on your motherboard. ISA is the
  326. name of a bus system, i.e. the way the CPU talks to the other stuff
  327. inside your box. If you have ISA, say Y, otherwise N.
  328. source "drivers/pcmcia/Kconfig"
  329. source "drivers/pci/hotplug/Kconfig"
  330. endmenu
  331. menu "Executable file formats"
  332. source "fs/Kconfig.binfmt"
  333. endmenu
  334. source "net/Kconfig"
  335. source "drivers/Kconfig"
  336. source "fs/Kconfig"
  337. source "arch/m32r/Kconfig.debug"
  338. source "security/Kconfig"
  339. source "crypto/Kconfig"
  340. source "lib/Kconfig"