blob: 774c35f47eeab5affbfba83c375452165cae16ba [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
Greg Ungerer66d857b2011-03-22 13:39:27 +100019 select HAVE_AOUT if MMU
Masahiro Yamada2ff2b7e2019-08-19 14:54:20 +090020 select HAVE_ASM_MODVERSIONS
Catalin Marinas9b2a60c2012-10-08 16:28:13 -070021 select HAVE_DEBUG_BUGVERBOSE
Arnd Bergmann3aec1db2021-05-08 00:07:49 +020022 select HAVE_EFFICIENT_UNALIGNED_ACCESS if !CPU_HAS_NO_UNALIGNED
Finn Thaine571c582014-03-06 10:29:27 +110023 select HAVE_FUTEX_CMPXCHG if MMU && FUTEX
David Howells786d35d2012-09-28 14:31:03 +093024 select HAVE_MOD_ARCH_SPECIFIC
Geert Uytterhoevendc072012020-08-26 14:52:59 +020025 select HAVE_UID16
26 select MMU_GATHER_NO_RANGE if MMU
David Howells786d35d2012-09-28 14:31:03 +093027 select MODULES_USE_ELF_REL
28 select MODULES_USE_ELF_RELA
Geert Uytterhoevendc072012020-08-26 14:52:59 +020029 select NO_DMA if !MMU && !COLDFIRE
Al Viro8be433a2012-12-25 19:29:01 -050030 select OLD_SIGACTION
Geert Uytterhoevendc072012020-08-26 14:52:59 +020031 select OLD_SIGSUSPEND3
Christoph Hellwig5e6e9852020-09-03 16:22:35 +020032 select SET_FS
Linus Torvaldsd3876ff2020-10-19 18:12:44 -070033 select UACCESS_MEMCPY if !MMU
Geert Uytterhoevendc072012020-08-26 14:52:59 +020034 select VIRT_TO_BUS
Kefeng Wang63703f32021-06-30 18:52:20 -070035 select ZONE_DMA
Linus Torvalds1da177e2005-04-16 15:20:36 -070036
Babu Moger4c97a0c2017-09-08 16:14:22 -070037config CPU_BIG_ENDIAN
38 def_bool y
39
David Howellsf0d1b0b2006-12-08 02:37:49 -080040config ARCH_HAS_ILOG2_U32
41 bool
David Howellsf0d1b0b2006-12-08 02:37:49 -080042
43config ARCH_HAS_ILOG2_U64
44 bool
David Howellsf0d1b0b2006-12-08 02:37:49 -080045
Akinobu Mitaba1a5b32006-03-26 01:39:27 -080046config GENERIC_HWEIGHT
47 bool
48 default y
49
Linus Torvalds1da177e2005-04-16 15:20:36 -070050config GENERIC_CALIBRATE_DELAY
51 bool
52 default y
53
Greg Ungerer7f73baf2011-10-18 15:49:19 +100054config GENERIC_CSUM
55 bool
56
Ingo Molnar06027bd2006-02-14 13:53:15 -080057config TIME_LOW_RES
58 bool
59 default y
60
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070061config NO_IOPORT_MAP
Al Viro5ea81762007-02-11 15:41:31 +000062 def_bool y
63
H. Peter Anvinbdc80782008-02-08 04:21:26 -080064config HZ
65 int
Greg Ungerer66d857b2011-03-22 13:39:27 +100066 default 1000 if CLEOPATRA
H. Peter Anvinbdc80782008-02-08 04:21:26 -080067 default 100
68
Kirill A. Shutemov980d5b72015-04-14 15:45:48 -070069config PGTABLE_LEVELS
70 default 2 if SUN3 || COLDFIRE
71 default 3
72
Greg Ungerer66d857b2011-03-22 13:39:27 +100073config 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
Greg Ungerer0e152d82011-06-20 15:49:09 +100080config MMU_MOTOROLA
81 bool
Linus Torvalds1da177e2005-04-16 15:20:36 -070082
Greg Ungerer0e6782c2011-10-18 16:26:11 +100083config MMU_COLDFIRE
84 bool
85
Greg Ungerer0e152d82011-06-20 15:49:09 +100086config MMU_SUN3
87 bool
Greg Ungerer0e6782c2011-10-18 16:26:11 +100088 depends on MMU && !MMU_MOTOROLA && !MMU_COLDFIRE
Greg Ungerer0e152d82011-06-20 15:49:09 +100089
Geert Uytterhoeven7d5f5fa2013-08-20 22:51:47 +020090config KEXEC
91 bool "kexec system call"
92 depends on M68KCLASSIC
Dave Young2965faa2015-09-09 15:38:55 -070093 select KEXEC_CORE
Geert Uytterhoeven7d5f5fa2013-08-20 22:51:47 +020094 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
Geert Uytterhoeven7bc1e4d2013-08-21 22:36:32 +0200108config 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
Greg Ungerer0e152d82011-06-20 15:49:09 +1000115menu "Platform setup"
116
Masahiro Yamada8636a1f2018-12-11 20:01:04 +0900117source "arch/m68k/Kconfig.cpu"
Greg Ungerer0e152d82011-06-20 15:49:09 +1000118
Masahiro Yamada8636a1f2018-12-11 20:01:04 +0900119source "arch/m68k/Kconfig.machine"
Greg Ungerer0e152d82011-06-20 15:49:09 +1000120
Masahiro Yamada8636a1f2018-12-11 20:01:04 +0900121source "arch/m68k/Kconfig.bus"
Greg Ungerer0e152d82011-06-20 15:49:09 +1000122
123endmenu
124
125menu "Kernel Features"
126
Greg Ungerer66d857b2011-03-22 13:39:27 +1000127endmenu
Linus Torvalds1da177e2005-04-16 15:20:36 -0700128
Greg Ungerer66d857b2011-03-22 13:39:27 +1000129if !MMU
130menu "Power management options"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700131
Greg Ungerer66d857b2011-03-22 13:39:27 +1000132config PM
Greg Ungerer0e152d82011-06-20 15:49:09 +1000133 bool "Power Management support"
134 help
135 Support processor power management modes
Linus Torvalds1da177e2005-04-16 15:20:36 -0700136
137endmenu
Greg Ungerer66d857b2011-03-22 13:39:27 +1000138endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700139
Greg Ungerer0e152d82011-06-20 15:49:09 +1000140source "arch/m68k/Kconfig.devices"