arch: m68k: remove incomplete, unusable Apollo hardware support
Subsystems (3)
PATCH 1/1 arch: m68k: remove incomplete, unusable Apollo hardware support
The m68k architecture contains very incomplete support for running on Apollo Domain hardware. There are only timer, console, and framebuffer drivers, and no storage or network drivers, so there is no way to practically use it. It is not even capable of rebooting by itself (see dn_dummy_reset() in arch/m68k/apollo/config.c).
arch/m68k/apollo has only received tree-wide changes and fixes by inspection in the entire Git history (since Linux 2.6.12-rc2), so there is clearly no interest in completing support for Apollo hardware. Remove it to reduce future maintenance workload.
There are no uses of the removed <asm/bootinfo-apollo.h> UAPI header or the constants removed from the <asm/bootinfo.h> UAPI header on GitHub or Debian Code Search.
--- arch/m68k/Kbuild | 1 - arch/m68k/Kconfig.devices | 4 +- arch/m68k/Kconfig.machine | 8 - arch/m68k/apollo/Makefile | 6 - arch/m68k/apollo/apollo.h | 4 - arch/m68k/apollo/config.c | 240 -------- arch/m68k/apollo/dn_ints.c | 50 -- arch/m68k/configs/apollo_defconfig | 595 ------------------- arch/m68k/configs/multi_defconfig | 1 - arch/m68k/include/asm/apollohw.h | 90 --- arch/m68k/include/asm/config.h | 2 - arch/m68k/include/asm/irq.h | 2 - arch/m68k/include/asm/setup.h | 32 +- arch/m68k/include/uapi/asm/bootinfo-apollo.h | 29 - arch/m68k/include/uapi/asm/bootinfo.h | 5 +- arch/m68k/kernel/head.S | 70 +-- arch/m68k/kernel/setup_mm.c | 9 - drivers/video/fbdev/Kconfig | 8 - drivers/video/fbdev/Makefile | 1 - drivers/video/fbdev/dnfb.c | 307 ---------- 20 files changed, 19 insertions(+), 1445 deletions(-) delete mode 100644 arch/m68k/apollo/Makefile delete mode 100644 arch/m68k/apollo/apollo.h delete mode 100644 arch/m68k/apollo/config.c delete mode 100644 arch/m68k/apollo/dn_ints.c delete mode 100644 arch/m68k/configs/apollo_defconfig delete mode 100644 arch/m68k/include/asm/apollohw.h delete mode 100644 arch/m68k/include/uapi/asm/bootinfo-apollo.h delete mode 100644 drivers/video/fbdev/dnfb.c
arch/m68k/Kbuild +0 -1
@@ -5,7 +5,6 @@ obj-$(CONFIG_AMIGA) += amiga/ obj-$(CONFIG_ATARI) += atari/ obj-$(CONFIG_MAC) += mac/ obj-$(CONFIG_HP300) += hp300/ -obj-$(CONFIG_APOLLO) += apollo/ obj-$(CONFIG_MVME147) += mvme147/ obj-$(CONFIG_MVME16x) += mvme16x/ obj-$(CONFIG_BVME6000) += bvme6000/
arch/m68k/Kconfig.devices +2 -2
@@ -9,8 +9,8 @@ config ARCH_MAY_HAVE_PC_FDC menu "Platform devices" config HEARTBEAT - bool "Use power LED as a heartbeat" if AMIGA || APOLLO || ATARI || Q40 - default y if !AMIGA && !APOLLO && !ATARI && !Q40 && HP300 + bool "Use power LED as a heartbeat" if AMIGA || ATARI || Q40 + default y if !AMIGA && !ATARI && !Q40 && HP300 help Use the power-on LED on your machine as a load meter. The exact behavior is platform-dependent, but normally the flash frequency is
arch/m68k/Kconfig.machine +0 -8
@@ -38,14 +38,6 @@ config MAC browse the documentation available at <http://www.mac.linux-m68k.org/>; otherwise say N. -config APOLLO - bool "Apollo support" - depends on MMU - select LEGACY_TIMER_TICK - help - Say Y here if you want to run Linux on an MC680x0-based Apollo - Domain workstation such as the DN3500. - config VME bool "VME (Motorola and BVM) support" depends on MMU
arch/m68k/apollo/Makefile deleted +0 -6
@@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -# -# Makefile for Linux arch/m68k/apollo source directory -# - -obj-y := config.o dn_ints.o
arch/m68k/apollo/apollo.h deleted +0 -4
@@ -1,4 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ - -/* dn_ints.c */ -void dn_init_IRQ (void );
arch/m68k/apollo/config.c deleted +0 -240
240 lines not on this page · raw message
arch/m68k/apollo/dn_ints.c deleted +0 -50
50 lines not on this page · raw message
arch/m68k/configs/apollo_defconfig deleted +0 -595
595 lines not on this page · raw message
arch/m68k/configs/multi_defconfig +0 -1
@@ -19,7 +19,6 @@ CONFIG_M68KFPU_EMU=y CONFIG_AMIGA=y CONFIG_ATARI=y CONFIG_MAC=y -CONFIG_APOLLO=y CONFIG_VME=y CONFIG_MVME147=y CONFIG_MVME16x=y
arch/m68k/include/asm/apollohw.h deleted +0 -90
90 lines not on this page · raw message
arch/m68k/include/asm/config.h +0 -2
@@ -9,7 +9,6 @@#define _M68K_CONFIG_Hextern int amiga_parse_bootinfo (const struct bi_record *record); -extern int apollo_parse_bootinfo (const struct bi_record *record);extern int atari_parse_bootinfo (const struct bi_record *record);extern int bvme6000_parse_bootinfo (const struct bi_record *record);extern int hp300_parse_bootinfo (const struct bi_record *record);
@@ -20,7 +19,6 @@ extern int q40_parse_bootinfo(const struct bi_record *record);extern int virt_parse_bootinfo (const struct bi_record *record);extern void config_amiga (void ); -extern void config_apollo (void );extern void config_atari (void );extern void config_bvme6000 (void );extern void config_hp300 (void );
arch/m68k/include/asm/irq.h +0 -2
@@ -26,8 +26,6 @@#define NR_IRQS 43#elif defined(CONFIG_AMIGA ) || !defined(CONFIG_MMU )#define NR_IRQS 32 -#elif defined(CONFIG_APOLLO ) -#define NR_IRQS 24#else /* CONFIG_HP300 etc. */ #define NR_IRQS 8#endif
arch/m68k/include/asm/setup.h +9 -23
@@ -34,7 +34,7 @@ extern unsigned long m68k_machtype;#if !defined(CONFIG_AMIGA )# define MACH_IS_AMIGA (0) -#elif defined(CONFIG_ATARI ) || defined(CONFIG_MAC ) || defined(CONFIG_APOLLO ) \ +#elif defined(CONFIG_ATARI ) || defined(CONFIG_MAC ) \ || defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000 ) \ || defined(CONFIG_HP300 ) || defined(CONFIG_Q40 ) \ || defined(CONFIG_SUN3X ) || defined(CONFIG_MVME147 ) \
@@ -48,7 +48,7 @@ extern unsigned long m68k_machtype;#if !defined(CONFIG_ATARI )# define MACH_IS_ATARI (0) -#elif defined(CONFIG_AMIGA ) || defined(CONFIG_MAC ) || defined(CONFIG_APOLLO ) \ +#elif defined(CONFIG_AMIGA ) || defined(CONFIG_MAC ) \ || defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000 ) \ || defined(CONFIG_HP300 ) || defined(CONFIG_Q40 ) \ || defined(CONFIG_SUN3X ) || defined(CONFIG_MVME147 ) \
@@ -62,7 +62,7 @@ extern unsigned long m68k_machtype;#if !defined(CONFIG_MAC )# define MACH_IS_MAC (0) -#elif defined(CONFIG_AMIGA ) || defined(CONFIG_ATARI ) || defined(CONFIG_APOLLO ) \ +#elif defined(CONFIG_AMIGA ) || defined(CONFIG_ATARI ) \ || defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000 ) \ || defined(CONFIG_HP300 ) || defined(CONFIG_Q40 ) \ || defined(CONFIG_SUN3X ) || defined(CONFIG_MVME147 ) \
@@ -82,24 +82,10 @@ extern unsigned long m68k_machtype;#define MACH_IS_SUN3 (0)#endif -#if !defined (CONFIG_APOLLO ) -# define MACH_IS_APOLLO (0) -#elif defined(CONFIG_AMIGA ) || defined(CONFIG_MAC ) || defined(CONFIG_ATARI ) \ - || defined(CONFIG_MVME16x) || defined(CONFIG_BVME6000 ) \ - || defined(CONFIG_HP300 ) || defined(CONFIG_Q40 ) \ - || defined(CONFIG_SUN3X ) || defined(CONFIG_MVME147 ) \ - || defined(CONFIG_VIRT ) -# define MACH_IS_APOLLO (m68k_machtype == MACH_APOLLO) -#else -# define MACH_APOLLO_ONLY -# define MACH_IS_APOLLO (1) -# define MACH_TYPE (MACH_APOLLO) -#endif -#if !defined (CONFIG_MVME147 )# define MACH_IS_MVME147 (0)#elif defined(CONFIG_AMIGA ) || defined(CONFIG_MAC ) || defined(CONFIG_ATARI ) \ - || defined(CONFIG_APOLLO ) || defined(CONFIG_BVME6000 ) \ + || defined(CONFIG_BVME6000 ) \ || defined(CONFIG_HP300 ) || defined(CONFIG_Q40 ) \ || defined(CONFIG_SUN3X ) || defined(CONFIG_MVME16x) \ || defined(CONFIG_VIRT )
@@ -113,7 +99,7 @@ extern unsigned long m68k_machtype;#if !defined (CONFIG_MVME16x)# define MACH_IS_MVME16x (0)#elif defined(CONFIG_AMIGA ) || defined(CONFIG_MAC ) || defined(CONFIG_ATARI ) \ - || defined(CONFIG_APOLLO ) || defined(CONFIG_BVME6000 ) \ + || defined(CONFIG_BVME6000 ) \ || defined(CONFIG_HP300 ) || defined(CONFIG_Q40 ) \ || defined(CONFIG_SUN3X ) || defined(CONFIG_MVME147 ) \ || defined(CONFIG_VIRT )
@@ -127,7 +113,7 @@ extern unsigned long m68k_machtype;#if !defined (CONFIG_BVME6000 )# define MACH_IS_BVME6000 (0)#elif defined(CONFIG_AMIGA ) || defined(CONFIG_MAC ) || defined(CONFIG_ATARI ) \ - || defined(CONFIG_APOLLO ) || defined(CONFIG_MVME16x) \ + || defined(CONFIG_MVME16x) \ || defined(CONFIG_HP300 ) || defined(CONFIG_Q40 ) \ || defined(CONFIG_SUN3X ) || defined(CONFIG_MVME147 ) \ || defined(CONFIG_VIRT )
@@ -141,7 +127,7 @@ extern unsigned long m68k_machtype;#if !defined (CONFIG_HP300 )# define MACH_IS_HP300 (0)#elif defined(CONFIG_AMIGA ) || defined(CONFIG_MAC ) || defined(CONFIG_ATARI ) \ - || defined(CONFIG_APOLLO ) || defined(CONFIG_MVME16x) \ + || defined(CONFIG_MVME16x) \ || defined(CONFIG_BVME6000 ) || defined(CONFIG_Q40 ) \ || defined(CONFIG_SUN3X ) || defined(CONFIG_MVME147 ) \ || defined(CONFIG_VIRT )
@@ -169,7 +155,7 @@ extern unsigned long m68k_machtype;#if !defined (CONFIG_SUN3X )# define MACH_IS_SUN3X (0)#elif defined(CONFIG_AMIGA ) || defined(CONFIG_MAC ) || defined(CONFIG_ATARI ) \ - || defined(CONFIG_APOLLO ) || defined(CONFIG_MVME16x) \ + || defined(CONFIG_MVME16x) \ || defined(CONFIG_BVME6000 ) || defined(CONFIG_HP300 ) \ || defined(CONFIG_Q40 ) || defined(CONFIG_MVME147 ) \ || defined(CONFIG_VIRT )
@@ -183,7 +169,7 @@ extern unsigned long m68k_machtype;#if !defined(CONFIG_VIRT )# define MACH_IS_VIRT (0)#elif defined(CONFIG_AMIGA ) || defined(CONFIG_MAC ) || defined(CONFIG_ATARI ) \ - || defined(CONFIG_APOLLO ) || defined(CONFIG_MVME16x) \ + || defined(CONFIG_MVME16x) \ || defined(CONFIG_BVME6000 ) || defined(CONFIG_HP300 ) \ || defined(CONFIG_Q40 ) || defined(CONFIG_SUN3X ) \ || defined(CONFIG_MVME147 )
arch/m68k/include/uapi/asm/bootinfo-apollo.h deleted +0 -29
@@ -1,29 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* -** asm/bootinfo-apollo.h -- Apollo-specific boot information definitions -*/ - -#ifndef _UAPI_ASM_M68K_BOOTINFO_APOLLO_H -#define _UAPI_ASM_M68K_BOOTINFO_APOLLO_H - - -/* -* Apollo-specific tags -*/ - -#define BI_APOLLO_MODEL 0x8000/* model (__be32) */ - - -/* -* Apollo models (BI_APOLLO_MODEL) -*/ - -#define APOLLO_UNKNOWN 0 -#define APOLLO_DN3000 1 -#define APOLLO_DN3010 2 -#define APOLLO_DN3500 3 -#define APOLLO_DN4000 4 -#define APOLLO_DN4500 5 - - -#endif /* _UAPI_ASM_M68K_BOOTINFO_APOLLO_H */
arch/m68k/include/uapi/asm/bootinfo.h +2 -3
@@ -80,7 +80,7 @@ struct mem_info {#define MACH_AMIGA 1#define MACH_ATARI 2#define MACH_MAC 3 -#define MACH_APOLLO 4 +/* 4 was MACH_APOLLO */ #define MACH_SUN3 5#define MACH_MVME147 6#define MACH_MVME16x 7
@@ -134,7 +134,7 @@ struct mem_info {#define MMUB_68030 1/* Internal MMU */ #define MMUB_68040 2/* Internal MMU */ #define MMUB_68060 3/* Internal MMU */ -#define MMUB_APOLLO 4/* Custom Apollo */ +/* 4 was MMUB_APOLLO */ #define MMUB_SUN3 5/* Custom Sun-3 */ #define MMUB_COLDFIRE 6/* Internal MMU */
@@ -143,7 +143,6 @@ struct mem_info {#define MMU_68040 (1 << MMUB_68040)#define MMU_68060 (1 << MMUB_68060)#define MMU_SUN3 (1 << MMUB_SUN3) -#define MMU_APOLLO (1 << MMUB_APOLLO)#define MMU_COLDFIRE (1 << MMUB_COLDFIRE)
arch/m68k/kernel/head.S +6 -64
140 lines not on this page · raw message
arch/m68k/kernel/setup_mm.c +0 -9
@@ -178,8 +178,6 @@ static void __init m68k_parse_bootinfo(const struct bi_record *record) unknown =mvme147_parse_bootinfo (record); else if (MACH_IS_HP300) unknown =hp300_parse_bootinfo (record); - else if (MACH_IS_APOLLO) - unknown =apollo_parse_bootinfo (record); else if (MACH_IS_VIRT) unknown =virt_parse_bootinfo (record); else
@@ -275,11 +273,6 @@ void __init setup_arch(char **cmdline_p)config_sun3 ();break ;#endif -#ifdef CONFIG_APOLLO -case MACH_APOLLO : -config_apollo (); -break ; -#endif #ifdef CONFIG_MVME147 case MACH_MVME147 :config_mvme147 ();
@@ -433,8 +426,6 @@ static int show_cpuinfo(struct seq_file *m, void *v) mmu ="68060" ; else if (m68k_mmutype & MMU_SUN3) mmu ="Sun-3" ; - else if (m68k_mmutype & MMU_APOLLO) - mmu ="Apollo" ; else if (m68k_mmutype & MMU_COLDFIRE) mmu ="ColdFire" ; else
drivers/video/fbdev/Kconfig +0 -8
@@ -184,14 +184,6 @@ config FB_CYBER2000_I2C Integraphics CyberPro 20x0 and 5000 VGA chips. This is used on the Netwinder machines for the SAA7111 video capture. -config FB_APOLLO - bool - depends on (FB = y) && APOLLO - default y - select FB_CFB_FILLRECT - select FB_CFB_IMAGEBLIT - select FB_IOMEM_FOPS - config FB_Q40 bool depends on (FB = y) && Q40
drivers/video/fbdev/Makefile +0 -1
@@ -63,7 +63,6 @@ obj-$(CONFIG_FB_HGA) += hgafb.o obj-$(CONFIG_FB_XVR500) += sunxvr500.o obj-$(CONFIG_FB_XVR2500) += sunxvr2500.o obj-$(CONFIG_FB_XVR1000) += sunxvr1000.o -obj-$(CONFIG_FB_APOLLO) += dnfb.o obj-$(CONFIG_FB_Q40) += q40fb.o obj-$(CONFIG_FB_TGA) += tgafb.o obj-$(CONFIG_FB_HP300) += hpfb.o
drivers/video/fbdev/dnfb.c deleted +0 -307
307 lines not on this page · raw message
Signature · 1 line
2.43.0
Hi--
Quoted 38 lines · Ethan Nelson-Moore
The m68k architecture contains very incomplete support for running on Apollo Domain hardware. There are only timer, console, and framebuffer drivers, and no storage or network drivers, so there is no way to practically use it. It is not even capable of rebooting by itself (see
dn_dummy_reset()inarch/m68k/apollo/config.c).
arch/m68k/apollohas only received tree-wide changes and fixes by inspection in the entire Git history (since Linux 2.6.12-rc2), so there is clearly no interest in completing support for Apollo hardware. Remove it to reduce future maintenance workload.There are no uses of the removed <
asm/bootinfo-apollo.h> UAPI header or the constants removed from the <asm/bootinfo.h> UAPI header on GitHub or Debian Code Search.Signed-off-by Ethan Nelson-Moore <[email protected]>--- arch/m68k/Kbuild | 1 - arch/m68k/Kconfig.devices | 4 +- arch/m68k/Kconfig.machine | 8 - arch/m68k/apollo/Makefile | 6 - arch/m68k/apollo/apollo.h | 4 - arch/m68k/apollo/config.c | 240 -------- arch/m68k/apollo/dn_ints.c | 50 -- arch/m68k/configs/apollo_defconfig | 595 ------------------- arch/m68k/configs/multi_defconfig | 1 - arch/m68k/include/asm/apollohw.h | 90 --- arch/m68k/include/asm/config.h | 2 - arch/m68k/include/asm/irq.h | 2 - arch/m68k/include/asm/setup.h | 32 +- arch/m68k/include/uapi/asm/bootinfo-apollo.h | 29 - arch/m68k/include/uapi/asm/bootinfo.h | 5 +- arch/m68k/kernel/head.S | 70 +-- arch/m68k/kernel/setup_mm.c | 9 - drivers/video/fbdev/Kconfig | 8 - drivers/video/fbdev/Makefile | 1 - drivers/video/fbdev/dnfb.c | 307 ---------- 20 files changed, 19 insertions(+), 1445 deletions(-)
Quoted 8 lines
delete mode 100644 arch/m68k/apollo/Makefile delete mode 100644 arch/m68k/apollo/apollo.h delete mode 100644 arch/m68k/apollo/config.c delete mode 100644 arch/m68k/apollo/dn_ints.c delete mode 100644 arch/m68k/configs/apollo_defconfig delete mode 100644 arch/m68k/include/asm/apollohw.h delete mode 100644 arch/m68k/include/uapi/asm/bootinfo-apollo.h delete mode 100644 drivers/video/fbdev/dnfb.c
There is an M68K maintainer who should be Cc-ed on this patch. (now done)
Signature · 1 line
~Randy
Hi, Randy,
Quoted 2 lines · Randy Dunlap
There is an M68K maintainer who should be Cc-ed on this patch. (now done)
I already did this in my first email - this email does not have anyone CC'd because it is just sent to linux-api because I forgot to do so initially.
The original email with linux-m68k and maintainers included is here:
https://lore.kernel.org/all/[email protected]/
Ethan
Quoted 11 lines · Ethan Nelson-Moore
Hi, Randy,
Quoted 2 lines · Randy Dunlap
There is an M68K maintainer who should be Cc-ed on this patch. (now done)
I already did this in my first email - this email does not have anyone CC'd because it is just sent to linux-api because I forgot to do so initially.
The original email with linux-m68k and maintainers included is here:
https://lore.kernel.org/all/[email protected]/
Got it. Thanks.
Signature · 1 line
~Randy