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