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