Kconfig 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. menu "Processor selection"
  2. #
  3. # Processor families
  4. #
  5. config CPU_SH2
  6. bool
  7. select SH_WRITETHROUGH
  8. config CPU_SH3
  9. bool
  10. select CPU_HAS_INTEVT
  11. select CPU_HAS_SR_RB
  12. config CPU_SH4
  13. bool
  14. select CPU_HAS_INTEVT
  15. select CPU_HAS_SR_RB
  16. config CPU_SH4A
  17. bool
  18. select CPU_SH4
  19. config CPU_SUBTYPE_ST40
  20. bool
  21. select CPU_SH4
  22. select CPU_HAS_INTC2_IRQ
  23. #
  24. # Processor subtypes
  25. #
  26. comment "SH-2 Processor Support"
  27. config CPU_SUBTYPE_SH7604
  28. bool "Support SH7604 processor"
  29. select CPU_SH2
  30. comment "SH-3 Processor Support"
  31. config CPU_SUBTYPE_SH7300
  32. bool "Support SH7300 processor"
  33. select CPU_SH3
  34. config CPU_SUBTYPE_SH7705
  35. bool "Support SH7705 processor"
  36. select CPU_SH3
  37. select CPU_HAS_PINT_IRQ
  38. config CPU_SUBTYPE_SH7707
  39. bool "Support SH7707 processor"
  40. select CPU_SH3
  41. select CPU_HAS_PINT_IRQ
  42. help
  43. Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
  44. config CPU_SUBTYPE_SH7708
  45. bool "Support SH7708 processor"
  46. select CPU_SH3
  47. help
  48. Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
  49. if you have a 100 Mhz SH-3 HD6417708R CPU.
  50. config CPU_SUBTYPE_SH7709
  51. bool "Support SH7709 processor"
  52. select CPU_SH3
  53. select CPU_HAS_PINT_IRQ
  54. help
  55. Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
  56. comment "SH-4 Processor Support"
  57. config CPU_SUBTYPE_SH7750
  58. bool "Support SH7750 processor"
  59. select CPU_SH4
  60. help
  61. Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
  62. config CPU_SUBTYPE_SH7091
  63. bool "Support SH7091 processor"
  64. select CPU_SH4
  65. select CPU_SUBTYPE_SH7750
  66. help
  67. Select SH7091 if you have an SH-4 based Sega device (such as
  68. the Dreamcast, Naomi, and Naomi 2).
  69. config CPU_SUBTYPE_SH7750R
  70. bool "Support SH7750R processor"
  71. select CPU_SH4
  72. select CPU_SUBTYPE_SH7750
  73. config CPU_SUBTYPE_SH7750S
  74. bool "Support SH7750S processor"
  75. select CPU_SH4
  76. select CPU_SUBTYPE_SH7750
  77. config CPU_SUBTYPE_SH7751
  78. bool "Support SH7751 processor"
  79. select CPU_SH4
  80. help
  81. Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
  82. or if you have a HD6417751R CPU.
  83. config CPU_SUBTYPE_SH7751R
  84. bool "Support SH7751R processor"
  85. select CPU_SH4
  86. select CPU_SUBTYPE_SH7751
  87. config CPU_SUBTYPE_SH7760
  88. bool "Support SH7760 processor"
  89. select CPU_SH4
  90. select CPU_HAS_INTC2_IRQ
  91. config CPU_SUBTYPE_SH4_202
  92. bool "Support SH4-202 processor"
  93. select CPU_SH4
  94. comment "ST40 Processor Support"
  95. config CPU_SUBTYPE_ST40STB1
  96. bool "Support ST40STB1/ST40RA processors"
  97. select CPU_SUBTYPE_ST40
  98. help
  99. Select ST40STB1 if you have a ST40RA CPU.
  100. This was previously called the ST40STB1, hence the option name.
  101. config CPU_SUBTYPE_ST40GX1
  102. bool "Support ST40GX1 processor"
  103. select CPU_SUBTYPE_ST40
  104. help
  105. Select ST40GX1 if you have a ST40GX1 CPU.
  106. comment "SH-4A Processor Support"
  107. config CPU_SUBTYPE_SH73180
  108. bool "Support SH73180 processor"
  109. select CPU_SH4A
  110. config CPU_SUBTYPE_SH7770
  111. bool "Support SH7770 processor"
  112. select CPU_SH4A
  113. config CPU_SUBTYPE_SH7780
  114. bool "Support SH7780 processor"
  115. select CPU_SH4A
  116. select CPU_HAS_INTC2_IRQ
  117. endmenu
  118. menu "Memory management options"
  119. config MMU
  120. bool "Support for memory management hardware"
  121. depends on !CPU_SH2
  122. default y
  123. help
  124. Some SH processors (such as SH-2/SH-2A) lack an MMU. In order to
  125. boot on these systems, this option must not be set.
  126. On other systems (such as the SH-3 and 4) where an MMU exists,
  127. turning this off will boot the kernel on these machines with the
  128. MMU implicitly switched off.
  129. config 32BIT
  130. bool "Support 32-bit physical addressing through PMB"
  131. depends on CPU_SH4A
  132. default y
  133. help
  134. If you say Y here, physical addressing will be extended to
  135. 32-bits through the SH-4A PMB. If this is not set, legacy
  136. 29-bit physical addressing will be used.
  137. choice
  138. prompt "HugeTLB page size"
  139. depends on HUGETLB_PAGE && CPU_SH4 && MMU
  140. default HUGETLB_PAGE_SIZE_64K
  141. config HUGETLB_PAGE_SIZE_64K
  142. bool "64K"
  143. config HUGETLB_PAGE_SIZE_1MB
  144. bool "1MB"
  145. endchoice
  146. source "mm/Kconfig"
  147. endmenu
  148. menu "Cache configuration"
  149. config SH7705_CACHE_32KB
  150. bool "Enable 32KB cache size for SH7705"
  151. depends on CPU_SUBTYPE_SH7705
  152. default y
  153. config SH_DIRECT_MAPPED
  154. bool "Use direct-mapped caching"
  155. default n
  156. help
  157. Selecting this option will configure the caches to be direct-mapped,
  158. even if the cache supports a 2 or 4-way mode. This is useful primarily
  159. for debugging on platforms with 2 and 4-way caches (SH7750R/SH7751R,
  160. SH4-202, SH4-501, etc.)
  161. Turn this option off for platforms that do not have a direct-mapped
  162. cache, and you have no need to run the caches in such a configuration.
  163. config SH_WRITETHROUGH
  164. bool "Use write-through caching"
  165. default y if CPU_SH2
  166. help
  167. Selecting this option will configure the caches in write-through
  168. mode, as opposed to the default write-back configuration.
  169. Since there's sill some aliasing issues on SH-4, this option will
  170. unfortunately still require the majority of flushing functions to
  171. be implemented to deal with aliasing.
  172. If unsure, say N.
  173. config SH_OCRAM
  174. bool "Operand Cache RAM (OCRAM) support"
  175. help
  176. Selecting this option will automatically tear down the number of
  177. sets in the dcache by half, which in turn exposes a memory range.
  178. The addresses for the OC RAM base will vary according to the
  179. processor version. Consult vendor documentation for specifics.
  180. If unsure, say N.
  181. endmenu