Kconfig 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see Documentation/kbuild/kconfig-language.txt.
  4. #
  5. config FRV
  6. bool
  7. default y
  8. config RWSEM_GENERIC_SPINLOCK
  9. bool
  10. default y
  11. config RWSEM_XCHGADD_ALGORITHM
  12. bool
  13. config GENERIC_FIND_NEXT_BIT
  14. bool
  15. default y
  16. config GENERIC_HWEIGHT
  17. bool
  18. default y
  19. config GENERIC_CALIBRATE_DELAY
  20. bool
  21. default n
  22. config GENERIC_HARDIRQS
  23. bool
  24. default n
  25. config TIME_LOW_RES
  26. bool
  27. default y
  28. mainmenu "Fujitsu FR-V Kernel Configuration"
  29. source "init/Kconfig"
  30. menu "Fujitsu FR-V system setup"
  31. config MMU
  32. bool "MMU support"
  33. help
  34. This options switches on and off support for the FR-V MMU
  35. (effectively switching between vmlinux and uClinux). Not all FR-V
  36. CPUs support this. Currently only the FR451 has a sufficiently
  37. featured MMU.
  38. config FRV_OUTOFLINE_ATOMIC_OPS
  39. bool "Out-of-line the FRV atomic operations"
  40. default n
  41. help
  42. Setting this option causes the FR-V atomic operations to be mostly
  43. implemented out-of-line.
  44. See Documentation/fujitsu/frv/atomic-ops.txt for more information.
  45. config HIGHMEM
  46. bool "High memory support"
  47. depends on MMU
  48. default y
  49. help
  50. If you wish to use more than 256MB of memory with your MMU based
  51. system, you will need to select this option. The kernel can only see
  52. the memory between 0xC0000000 and 0xD0000000 directly... everything
  53. else must be kmapped.
  54. The arch is, however, capable of supporting up to 3GB of SDRAM.
  55. config HIGHPTE
  56. bool "Allocate page tables in highmem"
  57. depends on HIGHMEM
  58. default y
  59. help
  60. The VM uses one page of memory for each page table. For systems
  61. with a lot of RAM, this can be wasteful of precious low memory.
  62. Setting this option will put user-space page tables in high memory.
  63. source "mm/Kconfig"
  64. choice
  65. prompt "uClinux kernel load address"
  66. depends on !MMU
  67. default UCPAGE_OFFSET_C0000000
  68. help
  69. This option sets the base address for the uClinux kernel. The kernel
  70. will rearrange the SDRAM layout to start at this address, and move
  71. itself to start there. It must be greater than 0, and it must be
  72. sufficiently less than 0xE0000000 that the SDRAM does not intersect
  73. the I/O region.
  74. The base address must also be aligned such that the SDRAM controller
  75. can decode it. For instance, a 512MB SDRAM bank must be 512MB aligned.
  76. config UCPAGE_OFFSET_20000000
  77. bool "0x20000000"
  78. config UCPAGE_OFFSET_40000000
  79. bool "0x40000000"
  80. config UCPAGE_OFFSET_60000000
  81. bool "0x60000000"
  82. config UCPAGE_OFFSET_80000000
  83. bool "0x80000000"
  84. config UCPAGE_OFFSET_A0000000
  85. bool "0xA0000000"
  86. config UCPAGE_OFFSET_C0000000
  87. bool "0xC0000000 (Recommended)"
  88. endchoice
  89. config PROTECT_KERNEL
  90. bool "Protect core kernel against userspace"
  91. depends on !MMU
  92. default y
  93. help
  94. Selecting this option causes the uClinux kernel to change the
  95. permittivity of DAMPR register covering the core kernel image to
  96. prevent userspace accessing the underlying memory directly.
  97. choice
  98. prompt "CPU Caching mode"
  99. default FRV_DEFL_CACHE_WBACK
  100. help
  101. This option determines the default caching mode for the kernel.
  102. Write-Back caching mode involves the all reads and writes causing
  103. the affected cacheline to be read into the cache first before being
  104. operated upon. Memory is not then updated by a write until the cache
  105. is filled and a cacheline needs to be displaced from the cache to
  106. make room. Only at that point is it written back.
  107. Write-Behind caching is similar to Write-Back caching, except that a
  108. write won't fetch a cacheline into the cache if there isn't already
  109. one there; it will write directly to memory instead.
  110. Write-Through caching only fetches cachelines from memory on a
  111. read. Writes always get written directly to memory. If the affected
  112. cacheline is also in cache, it will be updated too.
  113. The final option is to turn of caching entirely.
  114. Note that not all CPUs support Write-Behind caching. If the CPU on
  115. which the kernel is running doesn't, it'll fall back to Write-Back
  116. caching.
  117. config FRV_DEFL_CACHE_WBACK
  118. bool "Write-Back"
  119. config FRV_DEFL_CACHE_WBEHIND
  120. bool "Write-Behind"
  121. config FRV_DEFL_CACHE_WTHRU
  122. bool "Write-Through"
  123. config FRV_DEFL_CACHE_DISABLED
  124. bool "Disabled"
  125. endchoice
  126. menu "CPU core support"
  127. config CPU_FR401
  128. bool "Include FR401 core support"
  129. depends on !MMU
  130. default y
  131. help
  132. This enables support for the FR401, FR401A and FR403 CPUs
  133. config CPU_FR405
  134. bool "Include FR405 core support"
  135. depends on !MMU
  136. default y
  137. help
  138. This enables support for the FR405 CPU
  139. config CPU_FR451
  140. bool "Include FR451 core support"
  141. default y
  142. help
  143. This enables support for the FR451 CPU
  144. config CPU_FR451_COMPILE
  145. bool "Specifically compile for FR451 core"
  146. depends on CPU_FR451 && !CPU_FR401 && !CPU_FR405 && !CPU_FR551
  147. default y
  148. help
  149. This causes appropriate flags to be passed to the compiler to
  150. optimise for the FR451 CPU
  151. config CPU_FR551
  152. bool "Include FR551 core support"
  153. depends on !MMU
  154. default y
  155. help
  156. This enables support for the FR555 CPU
  157. config CPU_FR551_COMPILE
  158. bool "Specifically compile for FR551 core"
  159. depends on CPU_FR551 && !CPU_FR401 && !CPU_FR405 && !CPU_FR451
  160. default y
  161. help
  162. This causes appropriate flags to be passed to the compiler to
  163. optimise for the FR555 CPU
  164. config FRV_L1_CACHE_SHIFT
  165. int
  166. default "5" if CPU_FR401 || CPU_FR405 || CPU_FR451
  167. default "6" if CPU_FR551
  168. endmenu
  169. choice
  170. prompt "System support"
  171. default MB93091_VDK
  172. config MB93091_VDK
  173. bool "MB93091 CPU board with or without motherboard"
  174. config MB93093_PDK
  175. bool "MB93093 PDK unit"
  176. endchoice
  177. if MB93091_VDK
  178. choice
  179. prompt "Motherboard support"
  180. default MB93090_MB00
  181. config MB93090_MB00
  182. bool "Use the MB93090-MB00 motherboard"
  183. help
  184. Select this option if the MB93091 CPU board is going to be used with
  185. a MB93090-MB00 VDK motherboard
  186. config MB93091_NO_MB
  187. bool "Use standalone"
  188. help
  189. Select this option if the MB93091 CPU board is going to be used
  190. without a motherboard
  191. endchoice
  192. endif
  193. choice
  194. prompt "GP-Relative data support"
  195. default GPREL_DATA_8
  196. help
  197. This option controls what data, if any, should be placed in the GP
  198. relative data sections. Using this means that the compiler can
  199. generate accesses to the data using GR16-relative addressing which
  200. is faster than absolute instructions and saves space (2 instructions
  201. per access).
  202. However, the GPREL region is limited in size because the immediate
  203. value used in the load and store instructions is limited to a 12-bit
  204. signed number.
  205. So if the linker starts complaining that accesses to GPREL data are
  206. out of range, try changing this option from the default.
  207. Note that modules will always be compiled with this feature disabled
  208. as the module data will not be in range of the GP base address.
  209. config GPREL_DATA_8
  210. bool "Put data objects of up to 8 bytes into GP-REL"
  211. config GPREL_DATA_4
  212. bool "Put data objects of up to 4 bytes into GP-REL"
  213. config GPREL_DATA_NONE
  214. bool "Don't use GP-REL"
  215. endchoice
  216. config FRV_ONCPU_SERIAL
  217. bool "Use on-CPU serial ports"
  218. select SERIAL_8250
  219. default y
  220. config PCI
  221. bool "Use PCI"
  222. depends on MB93090_MB00
  223. default y
  224. help
  225. Some FR-V systems (such as the MB93090-MB00 VDK) have PCI
  226. onboard. If you have one of these boards and you wish to use the PCI
  227. facilities, say Y here.
  228. The PCI-HOWTO, available from
  229. <http://www.tldp.org/docs.html#howto>, contains valuable
  230. information about which PCI hardware does work under Linux and which
  231. doesn't.
  232. config RESERVE_DMA_COHERENT
  233. bool "Reserve DMA coherent memory"
  234. depends on PCI && !MMU
  235. default y
  236. help
  237. Many PCI drivers require access to uncached memory for DMA device
  238. communications (such as is done with some Ethernet buffer rings). If
  239. a fully featured MMU is available, this can be done through page
  240. table settings, but if not, a region has to be set aside and marked
  241. with a special DAMPR register.
  242. Setting this option causes uClinux to set aside a portion of the
  243. available memory for use in this manner. The memory will then be
  244. unavailable for normal kernel use.
  245. source "drivers/pci/Kconfig"
  246. source "drivers/pcmcia/Kconfig"
  247. #config MATH_EMULATION
  248. # bool "Math emulation support (EXPERIMENTAL)"
  249. # depends on EXPERIMENTAL
  250. # help
  251. # At some point in the future, this will cause floating-point math
  252. # instructions to be emulated by the kernel on machines that lack a
  253. # floating-point math coprocessor. Thrill-seekers and chronically
  254. # sleep-deprived psychotic hacker types can say Y now, everyone else
  255. # should probably wait a while.
  256. menu "Power management options"
  257. source kernel/power/Kconfig
  258. endmenu
  259. endmenu
  260. menu "Executable formats"
  261. source "fs/Kconfig.binfmt"
  262. endmenu
  263. source "net/Kconfig"
  264. source "drivers/Kconfig"
  265. source "fs/Kconfig"
  266. source "arch/frv/Kconfig.debug"
  267. source "security/Kconfig"
  268. source "crypto/Kconfig"
  269. source "lib/Kconfig"