xref: /linux/arch/m68k/Kconfig (revision 35e340a47888e3574ee4e8ef7da3f73a32034e58)
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 && MMU && !COLDFIRE
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 GENERIC_PCI_IOMAP if PCI
28	select HAS_IOPORT if PCI || ISA || ATARI_ROM_ISA
29	select HAVE_ARCH_LIBGCC_H
30	select HAVE_ARCH_SECCOMP
31	select HAVE_ARCH_SECCOMP_FILTER
32	select HAVE_ARCH_TLB_REMOVE_TABLE if MMU_MOTOROLA
33	select HAVE_ASM_MODVERSIONS
34	select HAVE_DEBUG_BUGVERBOSE
35	select HAVE_EFFICIENT_UNALIGNED_ACCESS if !CPU_HAS_NO_UNALIGNED
36	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
37	select HAVE_MOD_ARCH_SPECIFIC
38	select HAVE_UID16
39	select MMU_GATHER_NO_RANGE if MMU
40	select MODULES_USE_ELF_REL
41	select MODULES_USE_ELF_RELA
42	select NO_DMA if !MMU && !COLDFIRE
43	select OLD_SIGACTION
44	select OLD_SIGSUSPEND3
45	select UACCESS_MEMCPY if !MMU
46	select ZONE_DMA
47
48config CPU_BIG_ENDIAN
49	def_bool y
50
51config ARCH_HAS_ILOG2_U32
52	bool
53
54config ARCH_HAS_ILOG2_U64
55	bool
56
57config GENERIC_HWEIGHT
58	bool
59	default y
60
61config GENERIC_CALIBRATE_DELAY
62	bool
63	default y
64
65config GENERIC_CSUM
66	bool
67
68config TIME_LOW_RES
69	bool
70	default y
71
72config NO_IOPORT_MAP
73	def_bool y
74
75config HZ
76	int
77	default 1000 if CLEOPATRA
78	default 100
79
80config PGTABLE_LEVELS
81	default 2 if SUN3 || COLDFIRE
82	default 3
83
84config MMU
85	bool "MMU-based Paged Memory Management Support"
86	default y
87	help
88	  Select if you want MMU-based virtualised addressing space
89	  support by paged memory management. If unsure, say 'Y'.
90
91config MMU_MOTOROLA
92	def_bool MMU && M68KCLASSIC
93	select HAVE_PAGE_SIZE_4KB
94
95config MMU_COLDFIRE
96	def_bool MMU && COLDFIRE
97	select HAVE_PAGE_SIZE_8KB
98
99config MMU_SUN3
100	def_bool MMU && SUN3
101	select HAVE_PAGE_SIZE_8KB
102
103config ARCH_SUPPORTS_KEXEC
104	def_bool (M68KCLASSIC || SUN3) && MMU
105
106config BOOTINFO_PROC
107	bool "Export bootinfo in procfs"
108	depends on KEXEC && (M68KCLASSIC || SUN3)
109	help
110	  Say Y to export the bootinfo used to boot the kernel in a
111	  "bootinfo" file in procfs.  This is useful with kexec.
112
113menu "Platform setup"
114
115source "arch/m68k/Kconfig.cpu"
116
117source "arch/m68k/Kconfig.machine"
118
119source "arch/m68k/Kconfig.bus"
120
121endmenu
122
123menu "Kernel Features"
124
125endmenu
126
127if !MMU
128menu "Power management options"
129
130config PM
131	bool "Power Management support"
132	help
133	  Support processor power management modes
134
135endmenu
136endif
137
138source "arch/m68k/Kconfig.devices"
139