xref: /linux/arch/m68k/Kconfig (revision f96a974170b749e3a56844e25b31d46a7233b6f6)
1# SPDX-License-Identifier: GPL-2.0
2config M68K
3	bool
4	default y
5	select ARCH_32BIT_OFF_T
6	select ARCH_HAS_BINFMT_FLAT
7	select ARCH_HAS_CPU_CACHE_ALIASING
8	select ARCH_HAS_CPU_FINALIZE_INIT if MMU
9	select ARCH_HAS_CURRENT_STACK_POINTER
10	select ARCH_HAS_DMA_PREP_COHERENT if M68K_NONCOHERENT_DMA && !COLDFIRE
11	select ARCH_HAS_SYNC_DMA_FOR_DEVICE if M68K_NONCOHERENT_DMA
12	select ARCH_HAVE_NMI_SAFE_CMPXCHG if RMW_INSNS
13	select ARCH_MIGHT_HAVE_PC_PARPORT if ISA
14	select ARCH_NO_PREEMPT if !COLDFIRE
15	select ARCH_USE_MEMTEST if MMU_MOTOROLA
16	select ARCH_WANT_IPC_PARSE_VERSION
17	select BINFMT_FLAT_ARGVP_ENVP_ON_STACK
18	select DMA_DIRECT_REMAP if M68K_NONCOHERENT_DMA && !COLDFIRE
19	select GENERIC_ATOMIC64
20	select GENERIC_CPU_DEVICES
21	select GENERIC_IOMAP if HAS_IOPORT
22	select GENERIC_IRQ_SHOW
23	select GENERIC_LIB_ASHLDI3
24	select GENERIC_LIB_ASHRDI3
25	select GENERIC_LIB_LSHRDI3
26	select GENERIC_LIB_MULDI3
27	select HAS_IOPORT if PCI || ISA || ATARI_ROM_ISA
28	select HAVE_ARCH_LIBGCC_H
29	select HAVE_ARCH_SECCOMP
30	select HAVE_ARCH_SECCOMP_FILTER
31	select HAVE_ASM_MODVERSIONS
32	select HAVE_DEBUG_BUGVERBOSE
33	select HAVE_EFFICIENT_UNALIGNED_ACCESS if !CPU_HAS_NO_UNALIGNED
34	select HAVE_MOD_ARCH_SPECIFIC
35	select HAVE_UID16
36	select MMU_GATHER_NO_RANGE if MMU
37	select MODULES_USE_ELF_REL
38	select MODULES_USE_ELF_RELA
39	select NO_DMA if !MMU && !COLDFIRE
40	select OLD_SIGACTION
41	select OLD_SIGSUSPEND3
42	select UACCESS_MEMCPY if !MMU
43	select ZONE_DMA
44
45config CPU_BIG_ENDIAN
46	def_bool y
47
48config ARCH_HAS_ILOG2_U32
49	bool
50
51config ARCH_HAS_ILOG2_U64
52	bool
53
54config GENERIC_HWEIGHT
55	bool
56	default y
57
58config GENERIC_CALIBRATE_DELAY
59	bool
60	default y
61
62config GENERIC_CSUM
63	bool
64
65config TIME_LOW_RES
66	bool
67	default y
68
69config NO_IOPORT_MAP
70	def_bool y
71
72config HZ
73	int
74	default 1000 if CLEOPATRA
75	default 100
76
77config PGTABLE_LEVELS
78	default 2 if SUN3 || COLDFIRE
79	default 3
80
81config MMU
82	bool "MMU-based Paged Memory Management Support"
83	default y
84	help
85	  Select if you want MMU-based virtualised addressing space
86	  support by paged memory management. If unsure, say 'Y'.
87
88config MMU_MOTOROLA
89	def_bool MMU && M68KCLASSIC
90	select HAVE_PAGE_SIZE_4KB
91
92config MMU_COLDFIRE
93	def_bool MMU && COLDFIRE
94	select HAVE_PAGE_SIZE_8KB
95
96config MMU_SUN3
97	def_bool MMU && SUN3
98	select HAVE_PAGE_SIZE_8KB
99
100config ARCH_SUPPORTS_KEXEC
101	def_bool (M68KCLASSIC || SUN3) && MMU
102
103config BOOTINFO_PROC
104	bool "Export bootinfo in procfs"
105	depends on KEXEC && (M68KCLASSIC || SUN3)
106	help
107	  Say Y to export the bootinfo used to boot the kernel in a
108	  "bootinfo" file in procfs.  This is useful with kexec.
109
110menu "Platform setup"
111
112source "arch/m68k/Kconfig.cpu"
113
114source "arch/m68k/Kconfig.machine"
115
116source "arch/m68k/Kconfig.bus"
117
118endmenu
119
120menu "Kernel Features"
121
122endmenu
123
124if !MMU
125menu "Power management options"
126
127config PM
128	bool "Power Management support"
129	help
130	  Support processor power management modes
131
132endmenu
133endif
134
135source "arch/m68k/Kconfig.devices"
136