Kconfig 8.7 KB

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