Kconfig 9.8 KB

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