Kconfig.cpu 12 KB

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