Kconfig.cpu 12 KB

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