blob: 372e4e69c43aca1b2bc9549ee203d69d0e32547e [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002config M68K
3 bool
4 default y
Yury Norov942fa982018-05-16 11:18:49 +03005 select ARCH_32BIT_OFF_T
Christoph Hellwigaef0f782019-06-13 09:08:57 +02006 select ARCH_HAS_BINFMT_FLAT
Christoph Hellwigf28a1f12019-07-08 10:51:01 -07007 select ARCH_HAS_DMA_PREP_COHERENT if HAS_DMA && MMU && !COLDFIRE
Christoph Hellwig9eb8be62018-06-20 10:19:45 +02008 select ARCH_HAS_SYNC_DMA_FOR_DEVICE if HAS_DMA
Geert Uytterhoevendc072012020-08-26 14:52:59 +02009 select ARCH_HAVE_NMI_SAFE_CMPXCHG if RMW_INSNS
Mark Salter1a7f6be2013-10-07 22:10:21 -040010 select ARCH_MIGHT_HAVE_PC_PARPORT if ISA
Christoph Hellwig87a4c372018-07-31 13:39:32 +020011 select ARCH_NO_PREEMPT if !COLDFIRE
Geert Uytterhoevendc072012020-08-26 14:52:59 +020012 select ARCH_WANT_IPC_PARSE_VERSION
Christoph Hellwigbdd15a22019-06-13 09:08:51 +020013 select BINFMT_FLAT_ARGVP_ENVP_ON_STACK
Christoph Hellwig34dc63a2019-06-25 11:01:34 +020014 select DMA_DIRECT_REMAP if HAS_DMA && MMU && !COLDFIRE
Geert Uytterhoevendc072012020-08-26 14:52:59 +020015 select GENERIC_ATOMIC64
16 select GENERIC_CPU_DEVICES
17 select GENERIC_IOMAP
18 select GENERIC_IRQ_SHOW
19 select GENERIC_STRNCPY_FROM_USER if MMU
20 select GENERIC_STRNLEN_USER if MMU
Greg Ungerer66d857b2011-03-22 13:39:27 +100021 select HAVE_AOUT if MMU
Masahiro Yamada2ff2b7e2019-08-19 14:54:20 +090022 select HAVE_ASM_MODVERSIONS
Catalin Marinas9b2a60c2012-10-08 16:28:13 -070023 select HAVE_DEBUG_BUGVERBOSE
Finn Thaine571c582014-03-06 10:29:27 +110024 select HAVE_FUTEX_CMPXCHG if MMU && FUTEX
Geert Uytterhoevendc072012020-08-26 14:52:59 +020025 select HAVE_IDE
David Howells786d35d2012-09-28 14:31:03 +093026 select HAVE_MOD_ARCH_SPECIFIC
Geert Uytterhoevendc072012020-08-26 14:52:59 +020027 select HAVE_UID16
28 select MMU_GATHER_NO_RANGE if MMU
David Howells786d35d2012-09-28 14:31:03 +093029 select MODULES_USE_ELF_REL
30 select MODULES_USE_ELF_RELA
Geert Uytterhoevendc072012020-08-26 14:52:59 +020031 select NO_DMA if !MMU && !COLDFIRE
Al Viro8be433a2012-12-25 19:29:01 -050032 select OLD_SIGACTION
Geert Uytterhoevendc072012020-08-26 14:52:59 +020033 select OLD_SIGSUSPEND3
Christoph Hellwig5e6e9852020-09-03 16:22:35 +020034 select SET_FS
Linus Torvaldsd3876ff2020-10-19 18:12:44 -070035 select UACCESS_MEMCPY if !MMU
Geert Uytterhoevendc072012020-08-26 14:52:59 +020036 select VIRT_TO_BUS
Linus Torvalds1da177e2005-04-16 15:20:36 -070037
Babu Moger4c97a0c2017-09-08 16:14:22 -070038config CPU_BIG_ENDIAN
39 def_bool y
40
David Howellsf0d1b0b2006-12-08 02:37:49 -080041config ARCH_HAS_ILOG2_U32
42 bool
David Howellsf0d1b0b2006-12-08 02:37:49 -080043
44config ARCH_HAS_ILOG2_U64
45 bool
David Howellsf0d1b0b2006-12-08 02:37:49 -080046
Akinobu Mitaba1a5b32006-03-26 01:39:27 -080047config GENERIC_HWEIGHT
48 bool
49 default y
50
Linus Torvalds1da177e2005-04-16 15:20:36 -070051config GENERIC_CALIBRATE_DELAY
52 bool
53 default y
54
Greg Ungerer7f73baf2011-10-18 15:49:19 +100055config GENERIC_CSUM
56 bool
57
Ingo Molnar06027bd2006-02-14 13:53:15 -080058config TIME_LOW_RES
59 bool
60 default y
61
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070062config NO_IOPORT_MAP
Al Viro5ea81762007-02-11 15:41:31 +000063 def_bool y
64
Greg Ungerer66d857b2011-03-22 13:39:27 +100065config ZONE_DMA
66 bool
67 default y
Greg Ungerer171d8092011-05-17 16:45:00 +100068
H. Peter Anvinbdc80782008-02-08 04:21:26 -080069config HZ
70 int
Greg Ungerer66d857b2011-03-22 13:39:27 +100071 default 1000 if CLEOPATRA
H. Peter Anvinbdc80782008-02-08 04:21:26 -080072 default 100
73
Kirill A. Shutemov980d5b72015-04-14 15:45:48 -070074config PGTABLE_LEVELS
75 default 2 if SUN3 || COLDFIRE
76 default 3
77
Greg Ungerer66d857b2011-03-22 13:39:27 +100078config MMU
79 bool "MMU-based Paged Memory Management Support"
80 default y
81 help
82 Select if you want MMU-based virtualised addressing space
83 support by paged memory management. If unsure, say 'Y'.
84
Greg Ungerer0e152d82011-06-20 15:49:09 +100085config MMU_MOTOROLA
86 bool
Linus Torvalds1da177e2005-04-16 15:20:36 -070087
Greg Ungerer0e6782c2011-10-18 16:26:11 +100088config MMU_COLDFIRE
89 bool
90
Greg Ungerer0e152d82011-06-20 15:49:09 +100091config MMU_SUN3
92 bool
Greg Ungerer0e6782c2011-10-18 16:26:11 +100093 depends on MMU && !MMU_MOTOROLA && !MMU_COLDFIRE
Greg Ungerer0e152d82011-06-20 15:49:09 +100094
Geert Uytterhoeven7d5f5fa2013-08-20 22:51:47 +020095config KEXEC
96 bool "kexec system call"
97 depends on M68KCLASSIC
Dave Young2965faa2015-09-09 15:38:55 -070098 select KEXEC_CORE
Geert Uytterhoeven7d5f5fa2013-08-20 22:51:47 +020099 help
100 kexec is a system call that implements the ability to shutdown your
101 current kernel, and to start another kernel. It is like a reboot
102 but it is independent of the system firmware. And like a reboot
103 you can start any kernel with it, not just Linux.
104
105 The name comes from the similarity to the exec system call.
106
107 It is an ongoing process to be certain the hardware in a machine
108 is properly shutdown, so do not be surprised if this code does not
109 initially work for you. As of this writing the exact hardware
110 interface is strongly in flux, so no good recommendation can be
111 made.
112
Geert Uytterhoeven7bc1e4d2013-08-21 22:36:32 +0200113config BOOTINFO_PROC
114 bool "Export bootinfo in procfs"
115 depends on KEXEC && M68KCLASSIC
116 help
117 Say Y to export the bootinfo used to boot the kernel in a
118 "bootinfo" file in procfs. This is useful with kexec.
119
Greg Ungerer0e152d82011-06-20 15:49:09 +1000120menu "Platform setup"
121
Masahiro Yamada8636a1f2018-12-11 20:01:04 +0900122source "arch/m68k/Kconfig.cpu"
Greg Ungerer0e152d82011-06-20 15:49:09 +1000123
Masahiro Yamada8636a1f2018-12-11 20:01:04 +0900124source "arch/m68k/Kconfig.machine"
Greg Ungerer0e152d82011-06-20 15:49:09 +1000125
Masahiro Yamada8636a1f2018-12-11 20:01:04 +0900126source "arch/m68k/Kconfig.bus"
Greg Ungerer0e152d82011-06-20 15:49:09 +1000127
128endmenu
129
130menu "Kernel Features"
131
Greg Ungerer66d857b2011-03-22 13:39:27 +1000132endmenu
Linus Torvalds1da177e2005-04-16 15:20:36 -0700133
Greg Ungerer66d857b2011-03-22 13:39:27 +1000134if !MMU
135menu "Power management options"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700136
Greg Ungerer66d857b2011-03-22 13:39:27 +1000137config PM
Greg Ungerer0e152d82011-06-20 15:49:09 +1000138 bool "Power Management support"
139 help
140 Support processor power management modes
Linus Torvalds1da177e2005-04-16 15:20:36 -0700141
142endmenu
Greg Ungerer66d857b2011-03-22 13:39:27 +1000143endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700144
Greg Ungerer0e152d82011-06-20 15:49:09 +1000145source "arch/m68k/Kconfig.devices"