Kconfig.cpu 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. comment "Processor Type"
  2. config M68000
  3. bool
  4. select CPU_HAS_NO_BITFIELDS
  5. select CPU_HAS_NO_MULDIV64
  6. select GENERIC_CSUM
  7. help
  8. The Freescale (was Motorola) 68000 CPU is the first generation of
  9. the well known M68K family of processors. The CPU core as well as
  10. being available as a stand alone CPU was also used in many
  11. System-On-Chip devices (eg 68328, 68302, etc). It does not contain
  12. a paging MMU.
  13. config MCPU32
  14. bool
  15. select CPU_HAS_NO_BITFIELDS
  16. help
  17. The Freescale (was then Motorola) CPU32 is a CPU core that is
  18. based on the 68020 processor. For the most part it is used in
  19. System-On-Chip parts, and does not contain a paging MMU.
  20. config COLDFIRE
  21. bool
  22. select GENERIC_GPIO
  23. select ARCH_REQUIRE_GPIOLIB
  24. select CPU_HAS_NO_BITFIELDS
  25. select CPU_HAS_NO_MULDIV64
  26. select GENERIC_CSUM
  27. help
  28. The Freescale ColdFire family of processors is a modern derivitive
  29. of the 68000 processor family. They are mainly targeted at embedded
  30. applications, and are all System-On-Chip (SOC) devices, as opposed
  31. to stand alone CPUs. They implement a subset of the original 68000
  32. processor instruction set.
  33. config M68020
  34. bool "68020 support"
  35. depends on MMU
  36. select GENERIC_ATOMIC64
  37. help
  38. If you anticipate running this kernel on a computer with a MC68020
  39. processor, say Y. Otherwise, say N. Note that the 68020 requires a
  40. 68851 MMU (Memory Management Unit) to run Linux/m68k, except on the
  41. Sun 3, which provides its own version.
  42. config M68030
  43. bool "68030 support"
  44. depends on MMU && !MMU_SUN3
  45. select GENERIC_ATOMIC64
  46. help
  47. If you anticipate running this kernel on a computer with a MC68030
  48. processor, say Y. Otherwise, say N. Note that a MC68EC030 will not
  49. work, as it does not include an MMU (Memory Management Unit).
  50. config M68040
  51. bool "68040 support"
  52. depends on MMU && !MMU_SUN3
  53. select GENERIC_ATOMIC64
  54. help
  55. If you anticipate running this kernel on a computer with a MC68LC040
  56. or MC68040 processor, say Y. Otherwise, say N. Note that an
  57. MC68EC040 will not work, as it does not include an MMU (Memory
  58. Management Unit).
  59. config M68060
  60. bool "68060 support"
  61. depends on MMU && !MMU_SUN3
  62. select GENERIC_ATOMIC64
  63. help
  64. If you anticipate running this kernel on a computer with a MC68060
  65. processor, say Y. Otherwise, say N.
  66. config M68328
  67. bool "MC68328"
  68. depends on !MMU
  69. select M68000
  70. help
  71. Motorola 68328 processor support.
  72. config M68EZ328
  73. bool "MC68EZ328"
  74. depends on !MMU
  75. select M68000
  76. help
  77. Motorola 68EX328 processor support.
  78. config M68VZ328
  79. bool "MC68VZ328"
  80. depends on !MMU
  81. select M68000
  82. help
  83. Motorola 68VZ328 processor support.
  84. config M68360
  85. bool "MC68360"
  86. depends on !MMU
  87. select MCPU32
  88. help
  89. Motorola 68360 processor support.
  90. config M5206
  91. bool "MCF5206"
  92. depends on !MMU
  93. select COLDFIRE
  94. select COLDFIRE_SW_A7
  95. select HAVE_MBAR
  96. help
  97. Motorola ColdFire 5206 processor support.
  98. config M5206e
  99. bool "MCF5206e"
  100. depends on !MMU
  101. select COLDFIRE
  102. select COLDFIRE_SW_A7
  103. select HAVE_MBAR
  104. help
  105. Motorola ColdFire 5206e processor support.
  106. config M520x
  107. bool "MCF520x"
  108. depends on !MMU
  109. select COLDFIRE
  110. select GENERIC_CLOCKEVENTS
  111. select HAVE_CACHE_SPLIT
  112. help
  113. Freescale Coldfire 5207/5208 processor support.
  114. config M523x
  115. bool "MCF523x"
  116. depends on !MMU
  117. select COLDFIRE
  118. select GENERIC_CLOCKEVENTS
  119. select HAVE_CACHE_SPLIT
  120. select HAVE_IPSBAR
  121. help
  122. Freescale Coldfire 5230/1/2/4/5 processor support
  123. config M5249
  124. bool "MCF5249"
  125. depends on !MMU
  126. select COLDFIRE
  127. select COLDFIRE_SW_A7
  128. select HAVE_MBAR
  129. help
  130. Motorola ColdFire 5249 processor support.
  131. config M527x
  132. bool
  133. config M5271
  134. bool "MCF5271"
  135. depends on !MMU
  136. select COLDFIRE
  137. select M527x
  138. select HAVE_CACHE_SPLIT
  139. select HAVE_IPSBAR
  140. select GENERIC_CLOCKEVENTS
  141. help
  142. Freescale (Motorola) ColdFire 5270/5271 processor support.
  143. config M5272
  144. bool "MCF5272"
  145. depends on !MMU
  146. select COLDFIRE
  147. select COLDFIRE_SW_A7
  148. select HAVE_MBAR
  149. help
  150. Motorola ColdFire 5272 processor support.
  151. config M5275
  152. bool "MCF5275"
  153. depends on !MMU
  154. select COLDFIRE
  155. select M527x
  156. select HAVE_CACHE_SPLIT
  157. select HAVE_IPSBAR
  158. select GENERIC_CLOCKEVENTS
  159. help
  160. Freescale (Motorola) ColdFire 5274/5275 processor support.
  161. config M528x
  162. bool "MCF528x"
  163. depends on !MMU
  164. select COLDFIRE
  165. select GENERIC_CLOCKEVENTS
  166. select HAVE_CACHE_SPLIT
  167. select HAVE_IPSBAR
  168. help
  169. Motorola ColdFire 5280/5282 processor support.
  170. config M5307
  171. bool "MCF5307"
  172. depends on !MMU
  173. select COLDFIRE
  174. select COLDFIRE_SW_A7
  175. select HAVE_CACHE_CB
  176. select HAVE_MBAR
  177. help
  178. Motorola ColdFire 5307 processor support.
  179. config M532x
  180. bool "MCF532x"
  181. depends on !MMU
  182. select COLDFIRE
  183. select HAVE_CACHE_CB
  184. help
  185. Freescale (Motorola) ColdFire 532x processor support.
  186. config M5407
  187. bool "MCF5407"
  188. depends on !MMU
  189. select COLDFIRE
  190. select COLDFIRE_SW_A7
  191. select HAVE_CACHE_CB
  192. select HAVE_MBAR
  193. help
  194. Motorola ColdFire 5407 processor support.
  195. config M54xx
  196. bool
  197. config M547x
  198. bool "MCF547x"
  199. depends on !MMU
  200. select COLDFIRE
  201. select M54xx
  202. select HAVE_CACHE_CB
  203. select HAVE_MBAR
  204. help
  205. Freescale ColdFire 5470/5471/5472/5473/5474/5475 processor support.
  206. config M548x
  207. bool "MCF548x"
  208. depends on !MMU
  209. select COLDFIRE
  210. select M54xx
  211. select HAVE_CACHE_CB
  212. select HAVE_MBAR
  213. help
  214. Freescale ColdFire 5480/5481/5482/5483/5484/5485 processor support.
  215. comment "Processor Specific Options"
  216. config M68KFPU_EMU
  217. bool "Math emulation support (EXPERIMENTAL)"
  218. depends on MMU
  219. depends on EXPERIMENTAL
  220. help
  221. At some point in the future, this will cause floating-point math
  222. instructions to be emulated by the kernel on machines that lack a
  223. floating-point math coprocessor. Thrill-seekers and chronically
  224. sleep-deprived psychotic hacker types can say Y now, everyone else
  225. should probably wait a while.
  226. config M68KFPU_EMU_EXTRAPREC
  227. bool "Math emulation extra precision"
  228. depends on M68KFPU_EMU
  229. help
  230. The fpu uses normally a few bit more during calculations for
  231. correct rounding, the emulator can (often) do the same but this
  232. extra calculation can cost quite some time, so you can disable
  233. it here. The emulator will then "only" calculate with a 64 bit
  234. mantissa and round slightly incorrect, what is more than enough
  235. for normal usage.
  236. config M68KFPU_EMU_ONLY
  237. bool "Math emulation only kernel"
  238. depends on M68KFPU_EMU
  239. help
  240. This option prevents any floating-point instructions from being
  241. compiled into the kernel, thereby the kernel doesn't save any
  242. floating point context anymore during task switches, so this
  243. kernel will only be usable on machines without a floating-point
  244. math coprocessor. This makes the kernel a bit faster as no tests
  245. needs to be executed whether a floating-point instruction in the
  246. kernel should be executed or not.
  247. config ADVANCED
  248. bool "Advanced configuration options"
  249. depends on MMU
  250. ---help---
  251. This gives you access to some advanced options for the CPU. The
  252. defaults should be fine for most users, but these options may make
  253. it possible for you to improve performance somewhat if you know what
  254. you are doing.
  255. Note that the answer to this question won't directly affect the
  256. kernel: saying N will just cause the configurator to skip all
  257. the questions about these options.
  258. Most users should say N to this question.
  259. config RMW_INSNS
  260. bool "Use read-modify-write instructions"
  261. depends on ADVANCED
  262. ---help---
  263. This allows to use certain instructions that work with indivisible
  264. read-modify-write bus cycles. While this is faster than the
  265. workaround of disabling interrupts, it can conflict with DMA
  266. ( = direct memory access) on many Amiga systems, and it is also said
  267. to destabilize other machines. It is very likely that this will
  268. cause serious problems on any Amiga or Atari Medusa if set. The only
  269. configuration where it should work are 68030-based Ataris, where it
  270. apparently improves performance. But you've been warned! Unless you
  271. really know what you are doing, say N. Try Y only if you're quite
  272. adventurous.
  273. config SINGLE_MEMORY_CHUNK
  274. bool "Use one physical chunk of memory only" if ADVANCED && !SUN3
  275. depends on MMU
  276. default y if SUN3
  277. select NEED_MULTIPLE_NODES
  278. help
  279. Ignore all but the first contiguous chunk of physical memory for VM
  280. purposes. This will save a few bytes kernel size and may speed up
  281. some operations. Say N if not sure.
  282. config ARCH_DISCONTIGMEM_ENABLE
  283. def_bool MMU && !SINGLE_MEMORY_CHUNK
  284. config 060_WRITETHROUGH
  285. bool "Use write-through caching for 68060 supervisor accesses"
  286. depends on ADVANCED && M68060
  287. ---help---
  288. The 68060 generally uses copyback caching of recently accessed data.
  289. Copyback caching means that memory writes will be held in an on-chip
  290. cache and only written back to memory some time later. Saying Y
  291. here will force supervisor (kernel) accesses to use writethrough
  292. caching. Writethrough caching means that data is written to memory
  293. straight away, so that cache and memory data always agree.
  294. Writethrough caching is less efficient, but is needed for some
  295. drivers on 68060 based systems where the 68060 bus snooping signal
  296. is hardwired on. The 53c710 SCSI driver is known to suffer from
  297. this problem.
  298. config M68K_L2_CACHE
  299. bool
  300. depends on MAC
  301. default y
  302. config NODES_SHIFT
  303. int
  304. default "3"
  305. depends on !SINGLE_MEMORY_CHUNK
  306. config FPU
  307. bool
  308. config COLDFIRE_SW_A7
  309. bool
  310. config HAVE_CACHE_SPLIT
  311. bool
  312. config HAVE_CACHE_CB
  313. bool
  314. config HAVE_MBAR
  315. bool
  316. config HAVE_IPSBAR
  317. bool
  318. config CLOCK_SET
  319. bool "Enable setting the CPU clock frequency"
  320. depends on COLDFIRE
  321. default n
  322. help
  323. On some CPU's you do not need to know what the core CPU clock
  324. frequency is. On these you can disable clock setting. On some
  325. traditional 68K parts, and on all ColdFire parts you need to set
  326. the appropriate CPU clock frequency. On these devices many of the
  327. onboard peripherals derive their timing from the master CPU clock
  328. frequency.
  329. config CLOCK_FREQ
  330. int "Set the core clock frequency"
  331. default "66666666"
  332. depends on CLOCK_SET
  333. help
  334. Define the CPU clock frequency in use. This is the core clock
  335. frequency, it may or may not be the same as the external clock
  336. crystal fitted to your board. Some processors have an internal
  337. PLL and can have their frequency programmed at run time, others
  338. use internal dividers. In general the kernel won't setup a PLL
  339. if it is fitted (there are some exceptions). This value will be
  340. specific to the exact CPU that you are using.
  341. config OLDMASK
  342. bool "Old mask 5307 (1H55J) silicon"
  343. depends on M5307
  344. help
  345. Build support for the older revision ColdFire 5307 silicon.
  346. Specifically this is the 1H55J mask revision.
  347. if HAVE_CACHE_SPLIT
  348. choice
  349. prompt "Split Cache Configuration"
  350. default CACHE_I
  351. config CACHE_I
  352. bool "Instruction"
  353. help
  354. Use all of the ColdFire CPU cache memory as an instruction cache.
  355. config CACHE_D
  356. bool "Data"
  357. help
  358. Use all of the ColdFire CPU cache memory as a data cache.
  359. config CACHE_BOTH
  360. bool "Both"
  361. help
  362. Split the ColdFire CPU cache, and use half as an instruction cache
  363. and half as a data cache.
  364. endchoice
  365. endif
  366. if HAVE_CACHE_CB
  367. choice
  368. prompt "Data cache mode"
  369. default CACHE_WRITETHRU
  370. config CACHE_WRITETHRU
  371. bool "Write-through"
  372. help
  373. The ColdFire CPU cache is set into Write-through mode.
  374. config CACHE_COPYBACK
  375. bool "Copy-back"
  376. help
  377. The ColdFire CPU cache is set into Copy-back mode.
  378. endchoice
  379. endif