# SPDX-License-Identifier: GPL-2.0
comment "Processor Type"
choice
prompt "CPU family support"
default [31mCONFIG_M68KCLASSIC[0m if [31mCONFIG_MMU[0m
default [31mCONFIG_COLDFIRE[0m if ![31mCONFIG_MMU[0m
help
The Freescale (was Motorola) [31mCONFIG_M68K[0m family of processors implements
the full 68000 processor instruction set.
The Freescale ColdFire family of processors is a modern derivative
of the 68000 processor family. They are mainly targeted at embedded
applications, and are all System-On-Chip (SOC) devices, as opposed
to stand alone CPUs. They implement a subset of the original 68000
processor instruction set.
If you anticipate running this kernel on a computer with a classic
MC68xxx processor, select [31mCONFIG_M68KCLASSIC[0m.
If you anticipate running this kernel on a computer with a ColdFire
processor, select [31mCONFIG_COLDFIRE[0m.
config [31mCONFIG_M68KCLASSIC[0m
bool "Classic M68K CPU family support"
config [31mCONFIG_COLDFIRE[0m
bool "Coldfire CPU family support"
select [31mCONFIG_ARCH_HAVE_CUSTOM_GPIO_H[0m
select [31mCONFIG_CPU_HAS_NO_BITFIELDS[0m
select [31mCONFIG_CPU_HAS_NO_MULDIV64[0m
select [31mCONFIG_GENERIC_CSUM[0m
select [31mCONFIG_GPIOLIB[0m
select [31mCONFIG_HAVE_CLK[0m
endchoice
if [31mCONFIG_M68KCLASSIC[0m
config [31mCONFIG_M68000[0m
bool "MC68000"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_CPU_HAS_NO_BITFIELDS[0m
select [31mCONFIG_CPU_HAS_NO_MULDIV64[0m
select [31mCONFIG_CPU_HAS_NO_UNALIGNED[0m
select [31mCONFIG_GENERIC_CSUM[0m
select [31mCONFIG_CPU_NO_EFFICIENT_FFS[0m
select [31mCONFIG_HAVE_ARCH_HASH[0m
help
The Freescale (was Motorola) 68000 CPU is the first generation of
the well known [31mCONFIG_M68K[0m family of processors. The CPU core as well as
being available as a stand alone CPU was also used in many
System-On-Chip devices (eg 68328, 68302, etc). It does not contain
a paging [31mCONFIG_MMU[0m.
config [31mCONFIG_MCPU32[0m
bool
select [31mCONFIG_CPU_HAS_NO_BITFIELDS[0m
select [31mCONFIG_CPU_HAS_NO_UNALIGNED[0m
select [31mCONFIG_CPU_NO_EFFICIENT_FFS[0m
help
The Freescale (was then Motorola) CPU32 is a CPU core that is
based on the 68020 processor. For the most part it is used in
System-On-Chip parts, and does not contain a paging [31mCONFIG_MMU[0m.
config [31mCONFIG_M68020[0m
bool "68020 support"
depends on [31mCONFIG_MMU[0m
select [31mCONFIG_FPU[0m
select [31mCONFIG_CPU_HAS_ADDRESS_SPACES[0m
help
If you anticipate running this kernel on a computer with a MC68020
processor, say Y. Otherwise, say N. Note that the 68020 requires a
68851 [31mCONFIG_MMU[0m (Memory Management Unit) to run Linux/m68k, except on the
Sun 3, which provides its own version.
config [31mCONFIG_M68030[0m
bool "68030 support"
depends on [31mCONFIG_MMU[0m && ![31mCONFIG_MMU_SUN3[0m
select [31mCONFIG_FPU[0m
select [31mCONFIG_CPU_HAS_ADDRESS_SPACES[0m
help
If you anticipate running this kernel on a computer with a MC68030
processor, say Y. Otherwise, say N. Note that a MC68EC030 will not
work, as it does not include an [31mCONFIG_MMU[0m (Memory Management Unit).
config [31mCONFIG_M68040[0m
bool "68040 support"
depends on [31mCONFIG_MMU[0m && ![31mCONFIG_MMU_SUN3[0m
select [31mCONFIG_FPU[0m
select [31mCONFIG_CPU_HAS_ADDRESS_SPACES[0m
help
If you anticipate running this kernel on a computer with a MC68LC040
or MC68040 processor, say Y. Otherwise, say N. Note that an
MC68EC040 will not work, as it does not include an [31mCONFIG_MMU[0m (Memory
Management Unit).
config [31mCONFIG_M68060[0m
bool "68060 support"
depends on [31mCONFIG_MMU[0m && ![31mCONFIG_MMU_SUN3[0m
select [31mCONFIG_FPU[0m
select [31mCONFIG_CPU_HAS_ADDRESS_SPACES[0m
help
If you anticipate running this kernel on a computer with a MC68060
processor, say Y. Otherwise, say N.
config [31mCONFIG_M68328[0m
bool "MC68328"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_M68000[0m
help
Motorola 68328 processor support.
config [31mCONFIG_M68EZ328[0m
bool "MC68EZ328"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_M68000[0m
help
Motorola 68EX328 processor support.
config [31mCONFIG_M68VZ328[0m
bool "MC68VZ328"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_M68000[0m
help
Motorola 68VZ328 processor support.
endif # [31mCONFIG_M68KCLASSIC[0m
if [31mCONFIG_COLDFIRE[0m
choice
prompt "ColdFire SoC type"
default [31mCONFIG_M520x[0m
help
Select the type of ColdFire System-on-Chip (SoC) that you want
to build for.
config [31mCONFIG_M5206[0m
bool "MCF5206"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_COLDFIRE_SW_A7[0m
select [31mCONFIG_HAVE_MBAR[0m
select [31mCONFIG_CPU_NO_EFFICIENT_FFS[0m
help
Motorola ColdFire 5206 processor support.
config [31mCONFIG_M5206e[0m
bool "MCF5206e"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_COLDFIRE_SW_A7[0m
select [31mCONFIG_HAVE_MBAR[0m
select [31mCONFIG_CPU_NO_EFFICIENT_FFS[0m
help
Motorola ColdFire 5206e processor support.
config [31mCONFIG_M520x[0m
bool "MCF520x"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_GENERIC_CLOCKEVENTS[0m
select [31mCONFIG_HAVE_CACHE_SPLIT[0m
help
Freescale Coldfire 5207/5208 processor support.
config [31mCONFIG_M523x[0m
bool "MCF523x"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_GENERIC_CLOCKEVENTS[0m
select [31mCONFIG_HAVE_CACHE_SPLIT[0m
select [31mCONFIG_HAVE_IPSBAR[0m
help
Freescale Coldfire 5230/1/2/4/5 processor support
config [31mCONFIG_M5249[0m
bool "MCF5249"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_COLDFIRE_SW_A7[0m
select [31mCONFIG_HAVE_MBAR[0m
select [31mCONFIG_CPU_NO_EFFICIENT_FFS[0m
help
Motorola ColdFire 5249 processor support.
config [31mCONFIG_M525x[0m
bool "MCF525x"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_COLDFIRE_SW_A7[0m
select [31mCONFIG_HAVE_MBAR[0m
select [31mCONFIG_CPU_NO_EFFICIENT_FFS[0m
help
Freescale (Motorola) Coldfire 5251/5253 processor support.
config [31mCONFIG_M5271[0m
bool "MCF5271"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_M527x[0m
select [31mCONFIG_HAVE_CACHE_SPLIT[0m
select [31mCONFIG_HAVE_IPSBAR[0m
select [31mCONFIG_GENERIC_CLOCKEVENTS[0m
help
Freescale (Motorola) ColdFire 5270/5271 processor support.
config [31mCONFIG_M5272[0m
bool "MCF5272"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_COLDFIRE_SW_A7[0m
select [31mCONFIG_HAVE_MBAR[0m
select [31mCONFIG_CPU_NO_EFFICIENT_FFS[0m
help
Motorola ColdFire 5272 processor support.
config [31mCONFIG_M5275[0m
bool "MCF5275"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_M527x[0m
select [31mCONFIG_HAVE_CACHE_SPLIT[0m
select [31mCONFIG_HAVE_IPSBAR[0m
select [31mCONFIG_GENERIC_CLOCKEVENTS[0m
help
Freescale (Motorola) ColdFire 5274/5275 processor support.
config [31mCONFIG_M528x[0m
bool "MCF528x"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_GENERIC_CLOCKEVENTS[0m
select [31mCONFIG_HAVE_CACHE_SPLIT[0m
select [31mCONFIG_HAVE_IPSBAR[0m
help
Motorola ColdFire 5280/5282 processor support.
config [31mCONFIG_M5307[0m
bool "MCF5307"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_COLDFIRE_SW_A7[0m
select [31mCONFIG_HAVE_CACHE_CB[0m
select [31mCONFIG_HAVE_MBAR[0m
select [31mCONFIG_CPU_NO_EFFICIENT_FFS[0m
help
Motorola ColdFire 5307 processor support.
config [31mCONFIG_M532x[0m
bool "MCF532x"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_M53xx[0m
select [31mCONFIG_HAVE_CACHE_CB[0m
help
Freescale (Motorola) ColdFire 532x processor support.
config [31mCONFIG_M537x[0m
bool "MCF537x"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_M53xx[0m
select [31mCONFIG_HAVE_CACHE_CB[0m
help
Freescale ColdFire 537x processor support.
config [31mCONFIG_M5407[0m
bool "MCF5407"
depends on ![31mCONFIG_MMU[0m
select [31mCONFIG_COLDFIRE_SW_A7[0m
select [31mCONFIG_HAVE_CACHE_CB[0m
select [31mCONFIG_HAVE_MBAR[0m
select [31mCONFIG_CPU_NO_EFFICIENT_FFS[0m
help
Motorola ColdFire 5407 processor support.
config [31mCONFIG_M547x[0m
bool "MCF547x"
select [31mCONFIG_M54xx[0m
select [31mCONFIG_MMU_COLDFIRE[0m if [31mCONFIG_MMU[0m
select [31mCONFIG_FPU[0m if [31mCONFIG_MMU[0m
select [31mCONFIG_HAVE_CACHE_CB[0m
select [31mCONFIG_HAVE_MBAR[0m
select [31mCONFIG_CPU_NO_EFFICIENT_FFS[0m
help
Freescale ColdFire 5470/5471/5472/5473/5474/5475 processor support.
config [31mCONFIG_M548x[0m
bool "MCF548x"
select [31mCONFIG_MMU_COLDFIRE[0m if [31mCONFIG_MMU[0m
select [31mCONFIG_FPU[0m if [31mCONFIG_MMU[0m
select [31mCONFIG_M54xx[0m
select [31mCONFIG_HAVE_CACHE_CB[0m
select [31mCONFIG_HAVE_MBAR[0m
select [31mCONFIG_CPU_NO_EFFICIENT_FFS[0m
help
Freescale ColdFire 5480/5481/5482/5483/5484/5485 processor support.
config [31mCONFIG_M5441x[0m
bool "MCF5441x"
select [31mCONFIG_MMU_COLDFIRE[0m if [31mCONFIG_MMU[0m
select [31mCONFIG_GENERIC_CLOCKEVENTS[0m
select [31mCONFIG_HAVE_CACHE_CB[0m
help
Freescale Coldfire 54410/54415/54416/54417/54418 processor support.
endchoice
config [31mCONFIG_M527x[0m
bool
config [31mCONFIG_M53xx[0m
bool
config [31mCONFIG_M54xx[0m
select [31mCONFIG_HAVE_PCI[0m
bool
endif # [31mCONFIG_COLDFIRE[0m
comment "Processor Specific Options"
config [31mCONFIG_M68KFPU_EMU[0m
bool "Math emulation support"
depends on [31mCONFIG_MMU[0m
help
At some point in the future, this will cause floating-point math
instructions to be emulated by the kernel on machines that lack a
floating-point math coprocessor. Thrill-seekers and chronically
sleep-deprived psychotic hacker types can say Y now, everyone else
should probably wait a while.
config [31mCONFIG_M68KFPU_EMU_EXTRAPREC[0m
bool "Math emulation extra precision"
depends on [31mCONFIG_M68KFPU_EMU[0m
help
The fpu uses normally a few bit more during calculations for
correct rounding, the emulator can (often) do the same but this
extra calculation can cost quite some time, so you can disable
it here. The emulator will then "only" calculate with a 64 bit
mantissa and round slightly incorrect, what is more than enough
for normal usage.
config [31mCONFIG_M68KFPU_EMU_ONLY[0m
bool "Math emulation only kernel"
depends on [31mCONFIG_M68KFPU_EMU[0m
help
This option prevents any floating-point instructions from being
compiled into the kernel, thereby the kernel doesn't save any
floating point context anymore during task switches, so this
kernel will only be usable on machines without a floating-point
math coprocessor. This makes the kernel a bit faster as no tests
needs to be executed whether a floating-point instruction in the
kernel should be executed or not.
config [31mCONFIG_ADVANCED[0m
bool "Advanced configuration options"
depends on [31mCONFIG_MMU[0m
---help---
This gives you access to some advanced options for the CPU. The
defaults should be fine for most users, but these options may make
it possible for you to improve performance somewhat if you know what
you are doing.
Note that the answer to this question won't directly affect the
kernel: saying N will just cause the configurator to skip all
the questions about these options.
Most users should say N to this question.
config [31mCONFIG_RMW_INSNS[0m
bool "Use read-modify-write instructions"
depends on [31mCONFIG_ADVANCED[0m
---help---
This allows to use certain instructions that work with indivisible
read-modify-write bus cycles. While this is faster than the
workaround of disabling interrupts, it can conflict with DMA
( = direct memory access) on many Amiga systems, and it is also said
to destabilize other machines. It is very likely that this will
cause serious problems on any Amiga or Atari Medusa if set. The only
configuration where it should work are 68030-based Ataris, where it
apparently improves performance. But you've been warned! Unless you
really know what you are doing, say N. Try Y only if you're quite
adventurous.
config [31mCONFIG_SINGLE_MEMORY_CHUNK[0m
bool "Use one physical chunk of memory only" if [31mCONFIG_ADVANCED[0m && ![31mCONFIG_SUN3[0m
depends on [31mCONFIG_MMU[0m
default y if [31mCONFIG_SUN3[0m
select [31mCONFIG_NEED_MULTIPLE_NODES[0m
help
Ignore all but the first contiguous chunk of physical memory for VM
purposes. This will save a few bytes kernel size and may speed up
some operations. Say N if not sure.
config [31mCONFIG_ARCH_DISCONTIGMEM_ENABLE[0m
def_bool [31mCONFIG_MMU[0m && ![31mCONFIG_SINGLE_MEMORY_CHUNK[0m
config [31mCONFIG_060_WRITETHROUGH[0m
bool "Use write-through caching for 68060 supervisor accesses"
depends on [31mCONFIG_ADVANCED[0m && [31mCONFIG_M68060[0m
---help---
The 68060 generally uses copyback caching of recently accessed data.
Copyback caching means that memory writes will be held in an on-chip
cache and only written back to memory some time later. Saying Y
here will force supervisor (kernel) accesses to use writethrough
caching. Writethrough caching means that data is written to memory
straight away, so that cache and memory data always agree.
Writethrough caching is less efficient, but is needed for some
drivers on 68060 based systems where the 68060 bus snooping signal
is hardwired on. The 53c710 [31mCONFIG_SCSI[0m driver is known to suffer from
this problem.
config [31mCONFIG_M68K_L2_CACHE[0m
bool
depends on [31mCONFIG_MAC[0m
default y
config [31mCONFIG_NODES_SHIFT[0m
int
default "3"
depends on ![31mCONFIG_SINGLE_MEMORY_CHUNK[0m
config [31mCONFIG_CPU_HAS_NO_BITFIELDS[0m
bool
config [31mCONFIG_CPU_HAS_NO_MULDIV64[0m
bool
config [31mCONFIG_CPU_HAS_NO_UNALIGNED[0m
bool
config [31mCONFIG_CPU_HAS_ADDRESS_SPACES[0m
bool
config [31mCONFIG_FPU[0m
bool
config [31mCONFIG_COLDFIRE_SW_A7[0m
bool
config [31mCONFIG_HAVE_CACHE_SPLIT[0m
bool
config [31mCONFIG_HAVE_CACHE_CB[0m
bool
config [31mCONFIG_HAVE_MBAR[0m
bool
config [31mCONFIG_HAVE_IPSBAR[0m
bool
config [31mCONFIG_CLOCK_FREQ[0m
int "Set the core clock frequency"
default "25000000" if [31mCONFIG_M5206[0m
default "54000000" if [31mCONFIG_M5206e[0m
default "166666666" if [31mCONFIG_M520x[0m
default "140000000" if [31mCONFIG_M5249[0m
default "150000000" if [31mCONFIG_M527x[0m || [31mCONFIG_M523x[0m
default "90000000" if [31mCONFIG_M5307[0m
default "50000000" if [31mCONFIG_M5407[0m
default "266000000" if [31mCONFIG_M54xx[0m
default "66666666"
depends on [31mCONFIG_COLDFIRE[0m
help
Define the CPU clock frequency in use. This is the core clock
frequency, it may or may not be the same as the external clock
crystal fitted to your board. Some processors have an internal
PLL and can have their frequency programmed at run time, others
use internal dividers. In general the kernel won't setup a PLL
if it is fitted (there are some exceptions). This value will be
specific to the exact CPU that you are using.
config [31mCONFIG_OLDMASK[0m
bool "Old mask 5307 (1H55J) silicon"
depends on [31mCONFIG_M5307[0m
help
Build support for the older revision ColdFire 5307 silicon.
Specifically this is the 1H55J mask revision.
if [31mCONFIG_HAVE_CACHE_SPLIT[0m
choice
prompt "Split Cache Configuration"
default [31mCONFIG_CACHE_I[0m
config [31mCONFIG_CACHE_I[0m
bool "Instruction"
help
Use all of the ColdFire CPU cache memory as an instruction cache.
config [31mCONFIG_CACHE_D[0m
bool "Data"
help
Use all of the ColdFire CPU cache memory as a data cache.
config [31mCONFIG_CACHE_BOTH[0m
bool "Both"
help
Split the ColdFire CPU cache, and use half as an instruction cache
and half as a data cache.
endchoice
endif
if [31mCONFIG_HAVE_CACHE_CB[0m
choice
prompt "Data cache mode"
default [31mCONFIG_CACHE_WRITETHRU[0m
config [31mCONFIG_CACHE_WRITETHRU[0m
bool "Write-through"
help
The ColdFire CPU cache is set into Write-through mode.
config [31mCONFIG_CACHE_COPYBACK[0m
bool "Copy-back"
help
The ColdFire CPU cache is set into Copy-back mode.
endchoice
endif