Skip to content

Commit 9aa4c37

Browse files
committed
Merge tag 'm68k-for-v6.13-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k
Pull m68k updates from Geert Uytterhoeven: - Revive SCSI and early console support on MVME147 - Fix early kernel parameters using static keys - Prevent and improve handling of kernel configurations that lack specific platform, CPU, or MMU support, to avoid build failures - Miscellaneous fixes and improvements - Defconfig updates * tag 'm68k-for-v6.13-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k: m68k: defconfig: Update defconfigs for v6.12-rc1 m68k: mvme147: Reinstate early console m68k: Make sure NR_IRQS is never zero m68k: Select M68020 as fallback for classic m68k: Move Sun 3 into a top-level platform option m68k: kernel: Use str_read_write() helper function m68k: Initialize jump labels early during setup_arch() m68k: mvme147: Fix SCSI controller IRQ numbers m68k: mvme147: Make mvme147_sched_init() __init
2 parents ae4336e + 647619b commit 9aa4c37

24 files changed

+102
-73
lines changed

arch/m68k/Kconfig

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,24 +84,23 @@ config MMU
8484
support by paged memory management. If unsure, say 'Y'.
8585

8686
config MMU_MOTOROLA
87-
bool
87+
def_bool MMU && M68KCLASSIC
8888
select HAVE_PAGE_SIZE_4KB
8989

9090
config MMU_COLDFIRE
91+
def_bool MMU && COLDFIRE
9192
select HAVE_PAGE_SIZE_8KB
92-
bool
9393

9494
config MMU_SUN3
95-
bool
95+
def_bool MMU && SUN3
9696
select HAVE_PAGE_SIZE_8KB
97-
depends on MMU && !MMU_MOTOROLA && !MMU_COLDFIRE
9897

9998
config ARCH_SUPPORTS_KEXEC
100-
def_bool M68KCLASSIC && MMU
99+
def_bool (M68KCLASSIC || SUN3) && MMU
101100

102101
config BOOTINFO_PROC
103102
bool "Export bootinfo in procfs"
104-
depends on KEXEC && M68KCLASSIC
103+
depends on KEXEC && (M68KCLASSIC || SUN3)
105104
help
106105
Say Y to export the bootinfo used to boot the kernel in a
107106
"bootinfo" file in procfs. This is useful with kexec.

arch/m68k/Kconfig.cpu

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
comment "Processor Type"
33

44
choice
5-
prompt "CPU family support"
5+
prompt "CPU/machine family support"
66
default M68KCLASSIC if MMU
77
default COLDFIRE if !MMU
88
help
@@ -19,8 +19,9 @@ choice
1919
processor, select COLDFIRE.
2020

2121
config M68KCLASSIC
22-
bool "Classic M68K CPU family support"
22+
bool "Classic M68K CPU/machine family support"
2323
select HAVE_ARCH_PFN_VALID
24+
select M68020 if MMU && !(M68030 || M68040 || M68060)
2425

2526
config COLDFIRE
2627
bool "Coldfire CPU family support"
@@ -32,13 +33,23 @@ config COLDFIRE
3233
select HAVE_LEGACY_CLK
3334
select HAVE_PAGE_SIZE_8KB if !MMU
3435

35-
endchoice
36+
config SUN3
37+
bool "Sun3 machine support"
38+
depends on MMU
39+
select HAVE_ARCH_PFN_VALID
40+
select LEGACY_TIMER_TICK
41+
select NO_DMA
42+
select M68020
43+
help
44+
This option enables support for the Sun 3 series of workstations
45+
(3/50, 3/60, 3/1xx, 3/2xx systems). These use a classic 68020 CPU
46+
but the custom memory management unit makes them incompatible with
47+
all other classic m68k machines, including Sun 3x.
3648

37-
if M68KCLASSIC
49+
endchoice
3850

3951
config M68000
40-
def_bool y
41-
depends on !MMU
52+
def_bool M68KCLASSIC && !MMU
4253
select CPU_HAS_NO_BITFIELDS
4354
select CPU_HAS_NO_CAS
4455
select CPU_HAS_NO_MULDIV64
@@ -56,7 +67,7 @@ config M68000
5667
a paging MMU.
5768

5869
config M68020
59-
bool "68020 support"
70+
bool "68020 support" if M68KCLASSIC
6071
depends on MMU
6172
select FPU
6273
select CPU_HAS_ADDRESS_SPACES
@@ -66,9 +77,10 @@ config M68020
6677
68851 MMU (Memory Management Unit) to run Linux/m68k, except on the
6778
Sun 3, which provides its own version.
6879

80+
if M68KCLASSIC && MMU
81+
6982
config M68030
7083
bool "68030 support"
71-
depends on MMU && !MMU_SUN3
7284
select FPU
7385
select CPU_HAS_ADDRESS_SPACES
7486
help
@@ -78,7 +90,6 @@ config M68030
7890

7991
config M68040
8092
bool "68040 support"
81-
depends on MMU && !MMU_SUN3
8293
select FPU
8394
select CPU_HAS_ADDRESS_SPACES
8495
help
@@ -89,13 +100,14 @@ config M68040
89100

90101
config M68060
91102
bool "68060 support"
92-
depends on MMU && !MMU_SUN3
93103
select FPU
94104
select CPU_HAS_ADDRESS_SPACES
95105
help
96106
If you anticipate running this kernel on a computer with a MC68060
97107
processor, say Y. Otherwise, say N.
98108

109+
endif # M68KCLASSIC
110+
99111
config M68328
100112
bool
101113
depends on !MMU
@@ -117,8 +129,6 @@ config M68VZ328
117129
help
118130
Motorola 68VZ328 processor support.
119131

120-
endif # M68KCLASSIC
121-
122132
if COLDFIRE
123133

124134
choice
@@ -325,7 +335,7 @@ comment "Processor Specific Options"
325335

326336
config M68KFPU_EMU
327337
bool "Math emulation support"
328-
depends on M68KCLASSIC && FPU
338+
depends on (M68KCLASSIC || SUN3) && FPU
329339
help
330340
At some point in the future, this will cause floating-point math
331341
instructions to be emulated by the kernel on machines that lack a

arch/m68k/Kconfig.machine

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ if M68KCLASSIC
66
config AMIGA
77
bool "Amiga support"
88
depends on MMU
9-
select MMU_MOTOROLA if MMU
109
select LEGACY_TIMER_TICK
1110
help
1211
This option enables support for the Amiga series of computers. If
@@ -16,7 +15,6 @@ config AMIGA
1615
config ATARI
1716
bool "Atari support"
1817
depends on MMU
19-
select MMU_MOTOROLA if MMU
2018
select HAVE_ARCH_NVRAM_OPS
2119
select LEGACY_TIMER_TICK
2220
help
@@ -31,7 +29,6 @@ config ATARI_KBD_CORE
3129
config MAC
3230
bool "Macintosh support"
3331
depends on MMU
34-
select MMU_MOTOROLA if MMU
3532
select HAVE_ARCH_NVRAM_OPS
3633
select HAVE_PATA_PLATFORM
3734
select LEGACY_TIMER_TICK
@@ -44,7 +41,6 @@ config MAC
4441
config APOLLO
4542
bool "Apollo support"
4643
depends on MMU
47-
select MMU_MOTOROLA if MMU
4844
select LEGACY_TIMER_TICK
4945
help
5046
Say Y here if you want to run Linux on an MC680x0-based Apollo
@@ -53,7 +49,6 @@ config APOLLO
5349
config VME
5450
bool "VME (Motorola and BVM) support"
5551
depends on MMU
56-
select MMU_MOTOROLA if MMU
5752
help
5853
Say Y here if you want to build a kernel for a 680x0 based VME
5954
board. Boards currently supported include Motorola boards MVME147,
@@ -97,7 +92,6 @@ config BVME6000
9792
config HP300
9893
bool "HP9000/300 and HP9000/400 support"
9994
depends on MMU
100-
select MMU_MOTOROLA if MMU
10195
select LEGACY_TIMER_TICK
10296
help
10397
This option enables support for the HP9000/300 and HP9000/400 series
@@ -110,7 +104,6 @@ config SUN3X
110104
bool "Sun3x support"
111105
depends on MMU
112106
select LEGACY_TIMER_TICK
113-
select MMU_MOTOROLA if MMU
114107
select M68030
115108
help
116109
This option enables support for the Sun 3x series of workstations.
@@ -124,7 +117,6 @@ config SUN3X
124117
config Q40
125118
bool "Q40/Q60 support"
126119
depends on MMU
127-
select MMU_MOTOROLA if MMU
128120
select LEGACY_TIMER_TICK
129121
help
130122
The Q40 is a Motorola 68040-based successor to the Sinclair QL
@@ -133,22 +125,6 @@ config Q40
133125
Q60. Select your CPU below. For 68LC060 don't forget to enable FPU
134126
emulation.
135127

136-
config SUN3
137-
bool "Sun3 support"
138-
depends on MMU
139-
depends on !MMU_MOTOROLA
140-
select MMU_SUN3 if MMU
141-
select LEGACY_TIMER_TICK
142-
select NO_DMA
143-
select M68020
144-
help
145-
This option enables support for the Sun 3 series of workstations
146-
(3/50, 3/60, 3/1xx, 3/2xx systems). Enabling this option requires
147-
that all other hardware types must be disabled, as Sun 3 kernels
148-
are incompatible with all other m68k targets (including Sun 3x!).
149-
150-
If you don't want to compile a kernel exclusively for a Sun 3, say N.
151-
152128
config VIRT
153129
bool "Virtual M68k Machine support"
154130
depends on MMU
@@ -157,7 +133,6 @@ config VIRT
157133
select GOLDFISH_TIMER
158134
select GOLDFISH_TTY
159135
select M68040
160-
select MMU_MOTOROLA if MMU
161136
select RTC_CLASS
162137
select RTC_DRV_GOLDFISH
163138
select TTY

arch/m68k/configs/amiga_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ CONFIG_KUNIT_ALL_TESTS=m
620620
CONFIG_TEST_DHRY=m
621621
CONFIG_TEST_MIN_HEAP=m
622622
CONFIG_TEST_DIV64=m
623+
CONFIG_TEST_MULDIV64=m
623624
CONFIG_REED_SOLOMON_TEST=m
624625
CONFIG_ATOMIC64_SELFTEST=m
625626
CONFIG_ASYNC_RAID6_TEST=m

arch/m68k/configs/apollo_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ CONFIG_KUNIT_ALL_TESTS=m
577577
CONFIG_TEST_DHRY=m
578578
CONFIG_TEST_MIN_HEAP=m
579579
CONFIG_TEST_DIV64=m
580+
CONFIG_TEST_MULDIV64=m
580581
CONFIG_REED_SOLOMON_TEST=m
581582
CONFIG_ATOMIC64_SELFTEST=m
582583
CONFIG_ASYNC_RAID6_TEST=m

arch/m68k/configs/atari_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ CONFIG_KUNIT_ALL_TESTS=m
597597
CONFIG_TEST_DHRY=m
598598
CONFIG_TEST_MIN_HEAP=m
599599
CONFIG_TEST_DIV64=m
600+
CONFIG_TEST_MULDIV64=m
600601
CONFIG_REED_SOLOMON_TEST=m
601602
CONFIG_ATOMIC64_SELFTEST=m
602603
CONFIG_ASYNC_RAID6_TEST=m

arch/m68k/configs/bvme6000_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ CONFIG_KUNIT_ALL_TESTS=m
569569
CONFIG_TEST_DHRY=m
570570
CONFIG_TEST_MIN_HEAP=m
571571
CONFIG_TEST_DIV64=m
572+
CONFIG_TEST_MULDIV64=m
572573
CONFIG_REED_SOLOMON_TEST=m
573574
CONFIG_ATOMIC64_SELFTEST=m
574575
CONFIG_ASYNC_RAID6_TEST=m

arch/m68k/configs/hp300_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ CONFIG_KUNIT_ALL_TESTS=m
579579
CONFIG_TEST_DHRY=m
580580
CONFIG_TEST_MIN_HEAP=m
581581
CONFIG_TEST_DIV64=m
582+
CONFIG_TEST_MULDIV64=m
582583
CONFIG_REED_SOLOMON_TEST=m
583584
CONFIG_ATOMIC64_SELFTEST=m
584585
CONFIG_ASYNC_RAID6_TEST=m

arch/m68k/configs/mac_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ CONFIG_KUNIT_ALL_TESTS=m
596596
CONFIG_TEST_DHRY=m
597597
CONFIG_TEST_MIN_HEAP=m
598598
CONFIG_TEST_DIV64=m
599+
CONFIG_TEST_MULDIV64=m
599600
CONFIG_REED_SOLOMON_TEST=m
600601
CONFIG_ATOMIC64_SELFTEST=m
601602
CONFIG_ASYNC_RAID6_TEST=m

arch/m68k/configs/multi_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ CONFIG_KUNIT_ALL_TESTS=m
682682
CONFIG_TEST_DHRY=m
683683
CONFIG_TEST_MIN_HEAP=m
684684
CONFIG_TEST_DIV64=m
685+
CONFIG_TEST_MULDIV64=m
685686
CONFIG_REED_SOLOMON_TEST=m
686687
CONFIG_ATOMIC64_SELFTEST=m
687688
CONFIG_ASYNC_RAID6_TEST=m

0 commit comments

Comments
 (0)