Kconfig 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  1. #
  2. # Processor families
  3. #
  4. config CPU_SH2
  5. select SH_WRITETHROUGH if !CPU_SH2A
  6. bool
  7. config CPU_SH2A
  8. bool
  9. select CPU_SH2
  10. config CPU_SH3
  11. bool
  12. select CPU_HAS_INTEVT
  13. select CPU_HAS_SR_RB
  14. config CPU_SH4
  15. bool
  16. select CPU_HAS_INTEVT
  17. select CPU_HAS_SR_RB
  18. select CPU_HAS_PTEA if (!CPU_SUBTYPE_ST40 && !CPU_SH4A) || CPU_SHX2
  19. config CPU_SH4A
  20. bool
  21. select CPU_SH4
  22. config CPU_SH4AL_DSP
  23. bool
  24. select CPU_SH4A
  25. config CPU_SUBTYPE_ST40
  26. bool
  27. select CPU_SH4
  28. select CPU_HAS_INTC2_IRQ
  29. config CPU_SHX2
  30. bool
  31. config CPU_SHX3
  32. bool
  33. choice
  34. prompt "Processor sub-type selection"
  35. #
  36. # Processor subtypes
  37. #
  38. # SH-2 Processor Support
  39. config CPU_SUBTYPE_SH7619
  40. bool "Support SH7619 processor"
  41. select CPU_SH2
  42. select CPU_HAS_IPR_IRQ
  43. # SH-2A Processor Support
  44. config CPU_SUBTYPE_SH7206
  45. bool "Support SH7206 processor"
  46. select CPU_SH2A
  47. select CPU_HAS_IPR_IRQ
  48. # SH-3 Processor Support
  49. config CPU_SUBTYPE_SH7300
  50. bool "Support SH7300 processor"
  51. select CPU_SH3
  52. config CPU_SUBTYPE_SH7705
  53. bool "Support SH7705 processor"
  54. select CPU_SH3
  55. select CPU_HAS_IPR_IRQ
  56. select CPU_HAS_PINT_IRQ
  57. config CPU_SUBTYPE_SH7706
  58. bool "Support SH7706 processor"
  59. select CPU_SH3
  60. select CPU_HAS_IPR_IRQ
  61. help
  62. Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
  63. config CPU_SUBTYPE_SH7707
  64. bool "Support SH7707 processor"
  65. select CPU_SH3
  66. select CPU_HAS_PINT_IRQ
  67. help
  68. Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
  69. config CPU_SUBTYPE_SH7708
  70. bool "Support SH7708 processor"
  71. select CPU_SH3
  72. help
  73. Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
  74. if you have a 100 Mhz SH-3 HD6417708R CPU.
  75. config CPU_SUBTYPE_SH7709
  76. bool "Support SH7709 processor"
  77. select CPU_SH3
  78. select CPU_HAS_IPR_IRQ
  79. select CPU_HAS_PINT_IRQ
  80. help
  81. Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
  82. config CPU_SUBTYPE_SH7710
  83. bool "Support SH7710 processor"
  84. select CPU_SH3
  85. select CPU_HAS_IPR_IRQ
  86. help
  87. Select SH7710 if you have a SH3-DSP SH7710 CPU.
  88. config CPU_SUBTYPE_SH7712
  89. bool "Support SH7712 processor"
  90. select CPU_SH3
  91. select CPU_HAS_IPR_IRQ
  92. help
  93. Select SH7712 if you have a SH3-DSP SH7712 CPU.
  94. # SH-4 Processor Support
  95. config CPU_SUBTYPE_SH7750
  96. bool "Support SH7750 processor"
  97. select CPU_SH4
  98. select CPU_HAS_IPR_IRQ
  99. help
  100. Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
  101. config CPU_SUBTYPE_SH7091
  102. bool "Support SH7091 processor"
  103. select CPU_SH4
  104. select CPU_HAS_IPR_IRQ
  105. help
  106. Select SH7091 if you have an SH-4 based Sega device (such as
  107. the Dreamcast, Naomi, and Naomi 2).
  108. config CPU_SUBTYPE_SH7750R
  109. bool "Support SH7750R processor"
  110. select CPU_SH4
  111. select CPU_HAS_IPR_IRQ
  112. config CPU_SUBTYPE_SH7750S
  113. bool "Support SH7750S processor"
  114. select CPU_SH4
  115. select CPU_HAS_IPR_IRQ
  116. config CPU_SUBTYPE_SH7751
  117. bool "Support SH7751 processor"
  118. select CPU_SH4
  119. select CPU_HAS_IPR_IRQ
  120. help
  121. Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
  122. or if you have a HD6417751R CPU.
  123. config CPU_SUBTYPE_SH7751R
  124. bool "Support SH7751R processor"
  125. select CPU_SH4
  126. select CPU_HAS_IPR_IRQ
  127. config CPU_SUBTYPE_SH7760
  128. bool "Support SH7760 processor"
  129. select CPU_SH4
  130. select CPU_HAS_INTC2_IRQ
  131. select CPU_HAS_IPR_IRQ
  132. config CPU_SUBTYPE_SH4_202
  133. bool "Support SH4-202 processor"
  134. select CPU_SH4
  135. # ST40 Processor Support
  136. config CPU_SUBTYPE_ST40STB1
  137. bool "Support ST40STB1/ST40RA processors"
  138. select CPU_SUBTYPE_ST40
  139. help
  140. Select ST40STB1 if you have a ST40RA CPU.
  141. This was previously called the ST40STB1, hence the option name.
  142. config CPU_SUBTYPE_ST40GX1
  143. bool "Support ST40GX1 processor"
  144. select CPU_SUBTYPE_ST40
  145. help
  146. Select ST40GX1 if you have a ST40GX1 CPU.
  147. # SH-4A Processor Support
  148. config CPU_SUBTYPE_SH7770
  149. bool "Support SH7770 processor"
  150. select CPU_SH4A
  151. config CPU_SUBTYPE_SH7780
  152. bool "Support SH7780 processor"
  153. select CPU_SH4A
  154. select CPU_HAS_INTC2_IRQ
  155. config CPU_SUBTYPE_SH7785
  156. bool "Support SH7785 processor"
  157. select CPU_SH4A
  158. select CPU_SHX2
  159. select CPU_HAS_INTC2_IRQ
  160. config CPU_SUBTYPE_SHX3
  161. bool "Support SH-X3 processor"
  162. select CPU_SH4A
  163. select CPU_SHX3
  164. select CPU_HAS_INTC2_IRQ
  165. # SH4AL-DSP Processor Support
  166. config CPU_SUBTYPE_SH73180
  167. bool "Support SH73180 processor"
  168. select CPU_SH4AL_DSP
  169. config CPU_SUBTYPE_SH7343
  170. bool "Support SH7343 processor"
  171. select CPU_SH4AL_DSP
  172. config CPU_SUBTYPE_SH7722
  173. bool "Support SH7722 processor"
  174. select CPU_SH4AL_DSP
  175. select CPU_SHX2
  176. select CPU_HAS_IPR_IRQ
  177. select ARCH_SPARSEMEM_ENABLE
  178. select SYS_SUPPORTS_NUMA
  179. endchoice
  180. menu "Memory management options"
  181. config QUICKLIST
  182. def_bool y
  183. config MMU
  184. bool "Support for memory management hardware"
  185. depends on !CPU_SH2
  186. default y
  187. help
  188. Some SH processors (such as SH-2/SH-2A) lack an MMU. In order to
  189. boot on these systems, this option must not be set.
  190. On other systems (such as the SH-3 and 4) where an MMU exists,
  191. turning this off will boot the kernel on these machines with the
  192. MMU implicitly switched off.
  193. config PAGE_OFFSET
  194. hex
  195. default "0x80000000" if MMU
  196. default "0x00000000"
  197. config MEMORY_START
  198. hex "Physical memory start address"
  199. default "0x08000000"
  200. ---help---
  201. Computers built with Hitachi SuperH processors always
  202. map the ROM starting at address zero. But the processor
  203. does not specify the range that RAM takes.
  204. The physical memory (RAM) start address will be automatically
  205. set to 08000000. Other platforms, such as the Solution Engine
  206. boards typically map RAM at 0C000000.
  207. Tweak this only when porting to a new machine which does not
  208. already have a defconfig. Changing it from the known correct
  209. value on any of the known systems will only lead to disaster.
  210. config MEMORY_SIZE
  211. hex "Physical memory size"
  212. default "0x00400000"
  213. help
  214. This sets the default memory size assumed by your SH kernel. It can
  215. be overridden as normal by the 'mem=' argument on the kernel command
  216. line. If unsure, consult your board specifications or just leave it
  217. as 0x00400000 which was the default value before this became
  218. configurable.
  219. config 32BIT
  220. bool "Support 32-bit physical addressing through PMB"
  221. depends on MMU && (CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785)
  222. default y
  223. help
  224. If you say Y here, physical addressing will be extended to
  225. 32-bits through the SH-4A PMB. If this is not set, legacy
  226. 29-bit physical addressing will be used.
  227. config X2TLB
  228. bool "Enable extended TLB mode"
  229. depends on CPU_SHX2 && MMU && EXPERIMENTAL
  230. help
  231. Selecting this option will enable the extended mode of the SH-X2
  232. TLB. For legacy SH-X behaviour and interoperability, say N. For
  233. all of the fun new features and a willingless to submit bug reports,
  234. say Y.
  235. config VSYSCALL
  236. bool "Support vsyscall page"
  237. depends on MMU
  238. default y
  239. help
  240. This will enable support for the kernel mapping a vDSO page
  241. in process space, and subsequently handing down the entry point
  242. to the libc through the ELF auxiliary vector.
  243. From the kernel side this is used for the signal trampoline.
  244. For systems with an MMU that can afford to give up a page,
  245. (the default value) say Y.
  246. config NUMA
  247. bool "Non Uniform Memory Access (NUMA) Support"
  248. depends on MMU && SYS_SUPPORTS_NUMA && EXPERIMENTAL
  249. default n
  250. help
  251. Some SH systems have many various memories scattered around
  252. the address space, each with varying latencies. This enables
  253. support for these blocks by binding them to nodes and allowing
  254. memory policies to be used for prioritizing and controlling
  255. allocation behaviour.
  256. config NODES_SHIFT
  257. int
  258. default "1"
  259. depends on NEED_MULTIPLE_NODES
  260. config ARCH_FLATMEM_ENABLE
  261. def_bool y
  262. depends on !NUMA
  263. config ARCH_SPARSEMEM_ENABLE
  264. def_bool y
  265. select SPARSEMEM_STATIC
  266. config ARCH_SPARSEMEM_DEFAULT
  267. def_bool y
  268. config MAX_ACTIVE_REGIONS
  269. int
  270. default "2" if (CPU_SUBTYPE_SH7722 && SPARSEMEM)
  271. default "1"
  272. config ARCH_POPULATES_NODE_MAP
  273. def_bool y
  274. config ARCH_SELECT_MEMORY_MODEL
  275. def_bool y
  276. config ARCH_ENABLE_MEMORY_HOTPLUG
  277. def_bool y
  278. depends on SPARSEMEM
  279. config ARCH_MEMORY_PROBE
  280. def_bool y
  281. depends on MEMORY_HOTPLUG
  282. choice
  283. prompt "Kernel page size"
  284. default PAGE_SIZE_4KB
  285. config PAGE_SIZE_4KB
  286. bool "4kB"
  287. help
  288. This is the default page size used by all SuperH CPUs.
  289. config PAGE_SIZE_8KB
  290. bool "8kB"
  291. depends on EXPERIMENTAL && X2TLB
  292. help
  293. This enables 8kB pages as supported by SH-X2 and later MMUs.
  294. config PAGE_SIZE_64KB
  295. bool "64kB"
  296. depends on EXPERIMENTAL && CPU_SH4
  297. help
  298. This enables support for 64kB pages, possible on all SH-4
  299. CPUs and later. Highly experimental, not recommended.
  300. endchoice
  301. choice
  302. prompt "HugeTLB page size"
  303. depends on HUGETLB_PAGE && CPU_SH4 && MMU
  304. default HUGETLB_PAGE_SIZE_64K
  305. config HUGETLB_PAGE_SIZE_64K
  306. bool "64kB"
  307. config HUGETLB_PAGE_SIZE_256K
  308. bool "256kB"
  309. depends on X2TLB
  310. config HUGETLB_PAGE_SIZE_1MB
  311. bool "1MB"
  312. config HUGETLB_PAGE_SIZE_4MB
  313. bool "4MB"
  314. depends on X2TLB
  315. config HUGETLB_PAGE_SIZE_64MB
  316. bool "64MB"
  317. depends on X2TLB
  318. endchoice
  319. source "mm/Kconfig"
  320. endmenu
  321. menu "Cache configuration"
  322. config SH7705_CACHE_32KB
  323. bool "Enable 32KB cache size for SH7705"
  324. depends on CPU_SUBTYPE_SH7705
  325. default y
  326. config SH_DIRECT_MAPPED
  327. bool "Use direct-mapped caching"
  328. default n
  329. help
  330. Selecting this option will configure the caches to be direct-mapped,
  331. even if the cache supports a 2 or 4-way mode. This is useful primarily
  332. for debugging on platforms with 2 and 4-way caches (SH7750R/SH7751R,
  333. SH4-202, SH4-501, etc.)
  334. Turn this option off for platforms that do not have a direct-mapped
  335. cache, and you have no need to run the caches in such a configuration.
  336. config SH_WRITETHROUGH
  337. bool "Use write-through caching"
  338. help
  339. Selecting this option will configure the caches in write-through
  340. mode, as opposed to the default write-back configuration.
  341. Since there's sill some aliasing issues on SH-4, this option will
  342. unfortunately still require the majority of flushing functions to
  343. be implemented to deal with aliasing.
  344. If unsure, say N.
  345. endmenu