Kconfig.cpu 12 KB

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