xref: /openbmc/linux/arch/m68k/Kconfig (revision 9a32dd32)
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_CURRENT_STACK_POINTER
8	select ARCH_HAS_DMA_PREP_COHERENT if HAS_DMA && MMU && !COLDFIRE
9	select ARCH_HAS_SYNC_DMA_FOR_DEVICE if HAS_DMA
10	select ARCH_HAVE_NMI_SAFE_CMPXCHG if RMW_INSNS
11	select ARCH_MIGHT_HAVE_PC_PARPORT if ISA
12	select ARCH_NO_PREEMPT if !COLDFIRE
13	select ARCH_USE_MEMTEST if MMU_MOTOROLA
14	select ARCH_WANT_IPC_PARSE_VERSION
15	select BINFMT_FLAT_ARGVP_ENVP_ON_STACK
16	select DMA_DIRECT_REMAP if HAS_DMA && MMU && !COLDFIRE
17	select GENERIC_ATOMIC64
18	select GENERIC_CPU_DEVICES
19	select GENERIC_IOMAP
20	select GENERIC_IRQ_SHOW
21	select HAS_IOPORT if PCI || ISA || ATARI_ROM_ISA
22	select HAVE_ARCH_SECCOMP
23	select HAVE_ARCH_SECCOMP_FILTER
24	select HAVE_ASM_MODVERSIONS
25	select HAVE_DEBUG_BUGVERBOSE
26	select HAVE_EFFICIENT_UNALIGNED_ACCESS if !CPU_HAS_NO_UNALIGNED
27	select HAVE_MOD_ARCH_SPECIFIC
28	select HAVE_UID16
29	select MMU_GATHER_NO_RANGE if MMU
30	select MODULES_USE_ELF_REL
31	select MODULES_USE_ELF_RELA
32	select NO_DMA if !MMU && !COLDFIRE
33	select OLD_SIGACTION
34	select OLD_SIGSUSPEND3
35	select UACCESS_MEMCPY if !MMU
36	select ZONE_DMA
37
38config CPU_BIG_ENDIAN
39	def_bool y
40
41config ARCH_HAS_ILOG2_U32
42	bool
43
44config ARCH_HAS_ILOG2_U64
45	bool
46
47config GENERIC_HWEIGHT
48	bool
49	default y
50
51config GENERIC_CALIBRATE_DELAY
52	bool
53	default y
54
55config GENERIC_CSUM
56	bool
57
58config TIME_LOW_RES
59	bool
60	default y
61
62config NO_IOPORT_MAP
63	def_bool y
64
65config HZ
66	int
67	default 1000 if CLEOPATRA
68	default 100
69
70config PGTABLE_LEVELS
71	default 2 if SUN3 || COLDFIRE
72	default 3
73
74config MMU
75	bool "MMU-based Paged Memory Management Support"
76	default y
77	help
78	  Select if you want MMU-based virtualised addressing space
79	  support by paged memory management. If unsure, say 'Y'.
80
81config MMU_MOTOROLA
82	bool
83
84config MMU_COLDFIRE
85	bool
86
87config MMU_SUN3
88	bool
89	depends on MMU && !MMU_MOTOROLA && !MMU_COLDFIRE
90
91config KEXEC
92	bool "kexec system call"
93	depends on M68KCLASSIC && MMU
94	select KEXEC_CORE
95	help
96	  kexec is a system call that implements the ability to shutdown your
97	  current kernel, and to start another kernel.  It is like a reboot
98	  but it is independent of the system firmware.   And like a reboot
99	  you can start any kernel with it, not just Linux.
100
101	  The name comes from the similarity to the exec system call.
102
103	  It is an ongoing process to be certain the hardware in a machine
104	  is properly shutdown, so do not be surprised if this code does not
105	  initially work for you.  As of this writing the exact hardware
106	  interface is strongly in flux, so no good recommendation can be
107	  made.
108
109config BOOTINFO_PROC
110	bool "Export bootinfo in procfs"
111	depends on KEXEC && M68KCLASSIC
112	help
113	  Say Y to export the bootinfo used to boot the kernel in a
114	  "bootinfo" file in procfs.  This is useful with kexec.
115
116menu "Platform setup"
117
118source "arch/m68k/Kconfig.cpu"
119
120source "arch/m68k/Kconfig.machine"
121
122source "arch/m68k/Kconfig.bus"
123
124endmenu
125
126menu "Kernel Features"
127
128endmenu
129
130if !MMU
131menu "Power management options"
132
133config PM
134	bool "Power Management support"
135	help
136	  Support processor power management modes
137
138endmenu
139endif
140
141source "arch/m68k/Kconfig.devices"
142