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. select CPU_HAS_INTC2_IRQ
  20. config CPU_SUBTYPE_ST40
  21. bool
  22. select CPU_SH4
  23. select CPU_HAS_INTC2_IRQ
  24. #
  25. # Processor subtypes
  26. #
  27. comment "SH-2 Processor Support"
  28. config CPU_SUBTYPE_SH7604
  29. bool "Support SH7604 processor"
  30. select CPU_SH2
  31. comment "SH-3 Processor Support"
  32. config CPU_SUBTYPE_SH7300
  33. bool "Support SH7300 processor"
  34. select CPU_SH3
  35. config CPU_SUBTYPE_SH7705
  36. bool "Support SH7705 processor"
  37. select CPU_SH3
  38. select CPU_HAS_PINT_IRQ
  39. config CPU_SUBTYPE_SH7707
  40. bool "Support SH7707 processor"
  41. select CPU_SH3
  42. select CPU_HAS_PINT_IRQ
  43. help
  44. Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
  45. config CPU_SUBTYPE_SH7708
  46. bool "Support SH7708 processor"
  47. select CPU_SH3
  48. help
  49. Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
  50. if you have a 100 Mhz SH-3 HD6417708R CPU.
  51. config CPU_SUBTYPE_SH7709
  52. bool "Support SH7709 processor"
  53. select CPU_SH3
  54. select CPU_HAS_PINT_IRQ
  55. help
  56. Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
  57. comment "SH-4 Processor Support"
  58. config CPU_SUBTYPE_SH7750
  59. bool "Support SH7750 processor"
  60. select CPU_SH4
  61. help
  62. Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
  63. config CPU_SUBTYPE_SH7091
  64. bool "Support SH7091 processor"
  65. select CPU_SH4
  66. select CPU_SUBTYPE_SH7750
  67. help
  68. Select SH7091 if you have an SH-4 based Sega device (such as
  69. the Dreamcast, Naomi, and Naomi 2).
  70. config CPU_SUBTYPE_SH7750R
  71. bool "Support SH7750R processor"
  72. select CPU_SH4
  73. select CPU_SUBTYPE_SH7750
  74. config CPU_SUBTYPE_SH7750S
  75. bool "Support SH7750S processor"
  76. select CPU_SH4
  77. select CPU_SUBTYPE_SH7750
  78. config CPU_SUBTYPE_SH7751
  79. bool "Support SH7751 processor"
  80. select CPU_SH4
  81. help
  82. Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
  83. or if you have a HD6417751R CPU.
  84. config CPU_SUBTYPE_SH7751R
  85. bool "Support SH7751R processor"
  86. select CPU_SH4
  87. select CPU_SUBTYPE_SH7751
  88. config CPU_SUBTYPE_SH7760
  89. bool "Support SH7760 processor"
  90. select CPU_SH4
  91. select CPU_HAS_INTC2_IRQ
  92. config CPU_SUBTYPE_SH4_202
  93. bool "Support SH4-202 processor"
  94. select CPU_SH4
  95. comment "ST40 Processor Support"
  96. config CPU_SUBTYPE_ST40STB1
  97. bool "Support ST40STB1/ST40RA processors"
  98. select CPU_SUBTYPE_ST40
  99. help
  100. Select ST40STB1 if you have a ST40RA CPU.
  101. This was previously called the ST40STB1, hence the option name.
  102. config CPU_SUBTYPE_ST40GX1
  103. bool "Support ST40GX1 processor"
  104. select CPU_SUBTYPE_ST40
  105. help
  106. Select ST40GX1 if you have a ST40GX1 CPU.
  107. comment "SH-4A Processor Support"
  108. config CPU_SUBTYPE_SH73180
  109. bool "Support SH73180 processor"
  110. select CPU_SH4A
  111. config CPU_SUBTYPE_SH7770
  112. bool "Support SH7770 processor"
  113. select CPU_SH4A
  114. config CPU_SUBTYPE_SH7780
  115. bool "Support SH7780 processor"
  116. select CPU_SH4A
  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