Skip to contentSkip to conversation

Remove some PQ2/MPC82xx evaluation platforms

RFC PATCH Applied Paul Gortmaker 2 participants 5 messages Feb 24, 2023 – Apr 26, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Remove some PQ2/MPC82xx evaluation platforms

[This RFC is proposed for v6.4 and hence is based off linux-next.]

This series removes support for two PowerQUICC II (MPC82xx) Freescale processor family evaluation boards that were added to the kernel in approximately the 2003 era.

I couldn't easily find a reference picture, but there are line art sketches in the various manuals still available[1,2]. In any case, we've got one system with 32MB RAM and the other with 64MB. CPU speeds are also what one would expect for twenty year old platforms.

Again, this only removes evaluation platforms. There are still a couple MPC82xx OEM platforms remaining in the kernel. But given that they are similar in age and similarly resource constrained, they probably should be near the top of the removal consideration list once all the evaluation board support removals are in.

For comparison, in v2.6.27 (2008, 917f0af9e5a9) the WR SBC8260 support was implicitly retired by not being carried through the ppc --> powerpc device tree transition of that era.

Paul.

[1] https://www.nxp.com/design/qoriq-developer-resources/application-development-system-for-mpc8272:MPC8272ADS
[2] https://www.nxp.com/design/qoriq-developer-resources/mpc82xx-family-application-development-system:PQ2FADS_VR

Paul Gortmaker (3):
powerpc: drop MPC8272_ADS platform support
powerpc: drop PowerQUICC II Family ADS platform support
powerpc: drop MPC8272-ADS and PowerQUICC II FADS shared code.

 arch/powerpc/boot/Makefile                   |   2 -
 arch/powerpc/boot/dts/mpc8272ads.dts         | 263 -------------------
 arch/powerpc/boot/dts/pq2fads.dts            | 243 -----------------
 arch/powerpc/configs/mpc8272_ads_defconfig   |  79 ------
 arch/powerpc/configs/ppc6xx_defconfig        |   2 -
 arch/powerpc/configs/pq2fads_defconfig       |  80 ------
 arch/powerpc/include/asm/mpc8260.h           |   4 -
 arch/powerpc/platforms/82xx/Kconfig          |  27 --
 arch/powerpc/platforms/82xx/Makefile         |   3 -
 arch/powerpc/platforms/82xx/mpc8272_ads.c    | 213 ---------------
 arch/powerpc/platforms/82xx/pq2ads-pci-pic.c | 172 ------------
 arch/powerpc/platforms/82xx/pq2ads.h         |  40 ---
 arch/powerpc/platforms/82xx/pq2fads.c        | 191 --------------
 13 files changed, 1319 deletions(-)
 delete mode 100644 arch/powerpc/boot/dts/mpc8272ads.dts
 delete mode 100644 arch/powerpc/boot/dts/pq2fads.dts
 delete mode 100644 arch/powerpc/configs/mpc8272_ads_defconfig
 delete mode 100644 arch/powerpc/configs/pq2fads_defconfig
 delete mode 100644 arch/powerpc/platforms/82xx/mpc8272_ads.c
 delete mode 100644 arch/powerpc/platforms/82xx/pq2ads-pci-pic.c
 delete mode 100644 arch/powerpc/platforms/82xx/pq2ads.h
 delete mode 100644 arch/powerpc/platforms/82xx/pq2fads.c
Signature · 1 line
2.17.1
#3 lore raw

PATCH 3/3 powerpc: drop MPC8272-ADS and PowerQUICC II FADS shared code.

With the two platforms depending on this shared code, and no others, we can remove the orphaned code and Kconfigs

Cc Scott Wood <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
---
 arch/powerpc/include/asm/mpc8260.h           |   4 -
 arch/powerpc/platforms/82xx/Kconfig          |   6 -
 arch/powerpc/platforms/82xx/Makefile         |   1 -
 arch/powerpc/platforms/82xx/pq2ads-pci-pic.c | 172 -------------------
 arch/powerpc/platforms/82xx/pq2ads.h         |  40 -----
 5 files changed, 223 deletions(-)
 delete mode 100644 arch/powerpc/platforms/82xx/pq2ads-pci-pic.c
 delete mode 100644 arch/powerpc/platforms/82xx/pq2ads.h
arch/powerpc/include/asm/mpc8260.h +0 -4
index fd8c5707425b..155114bbd1a2 100644
@@ -13,10 +13,6 @@
 
 #ifdef CONFIG_8260
 
-#if defined(CONFIG_PQ2ADS) || defined (CONFIG_PQ2FADS)
-#include <platforms/82xx/pq2ads.h>
-#endif
-
 #ifdef CONFIG_PCI_8260
 #include <platforms/82xx/m82xx_pci.h>
 #endif
arch/powerpc/platforms/82xx/Kconfig +0 -6
index 62a057c6a356..4eb372bdab70 100644
@@ -28,9 +28,6 @@ config MGCOGE
 
 endif
 
-config PQ2ADS
-	bool
-
 config 8260
 	bool
 	depends on PPC_BOOK3S_32
@@ -46,6 +43,3 @@ config 8272
 	help
 	  The MPC8272 CPM has a different internal dpram setup than other CPM2
 	  devices
-
-config PQ2_ADS_PCI_PIC
-	bool
arch/powerpc/platforms/82xx/Makefile +0 -1
index a4257f057401..4fa43a5cd582 100644
@@ -3,6 +3,5 @@
 # Makefile for the PowerPC 82xx linux kernel.
 #
 obj-$(CONFIG_CPM2) += pq2.o
-obj-$(CONFIG_PQ2_ADS_PCI_PIC) += pq2ads-pci-pic.o
 obj-$(CONFIG_EP8248E) += ep8248e.o
 obj-$(CONFIG_MGCOGE) += km82xx.o
arch/powerpc/platforms/82xx/pq2ads-pci-pic.c deleted +0 -172

172 lines not on this page · raw message

arch/powerpc/platforms/82xx/pq2ads.h deleted +0 -40
deleted file mode 100644
index 9d0bf744945c..000000000000
@@ -1,40 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * PQ2/mpc8260 board-specific stuff
- *
- * A collection of structures, addresses, and values associated with
- * the Freescale MPC8260ADS/MPC8266ADS-PCI boards.
- * Copied from the RPX-Classic and SBS8260 stuff.
- *
- * Author: Vitaly Bordug <[email protected]>
- *
- * Originally written by Dan Malek for Motorola MPC8260 family
- *
- * Copyright (c) 2001 Dan Malek <[email protected]>
- * Copyright (c) 2006 MontaVista Software, Inc.
- */
-
-#ifdef __KERNEL__
-#ifndef __MACH_ADS8260_DEFS
-#define __MACH_ADS8260_DEFS
-
-#include <linux/seq_file.h>
-
-/* The ADS8260 has 16, 32-bit wide control/status registers, accessed
- * only on word boundaries.
- * Not all are used (yet), or are interesting to us (yet).
- */
-
-/* Things of interest in the CSR.
- */
-#define BCSR0_LED0		((uint)0x02000000)      /* 0 == on */
-#define BCSR0_LED1		((uint)0x01000000)      /* 0 == on */
-#define BCSR1_FETHIEN		((uint)0x08000000)      /* 0 == enable*/
-#define BCSR1_FETH_RST		((uint)0x04000000)      /* 0 == reset */
-#define BCSR1_RS232_EN1		((uint)0x02000000)      /* 0 ==enable */
-#define BCSR1_RS232_EN2		((uint)0x01000000)      /* 0 ==enable */
-#define BCSR3_FETHIEN2		((uint)0x10000000)      /* 0 == enable*/
-#define BCSR3_FETH2_RST		((uint)0x80000000)      /* 0 == reset */
-
-#endif /* __MACH_ADS8260_DEFS */
-#endif /* __KERNEL__ */
Signature · 1 line
2.17.1
#2 lore raw

PATCH 2/3 powerpc: drop PowerQUICC II Family ADS platform support

In reply to Paul Gortmaker

Based on documentation revision dates, this MPC82xx pq2fads system predates the MPC8272-ADS variant by about a year and only has 1/2 the amount of RAM (32MB) -- largely making it useless with a modern v6.x kernel from today.

Similar to the MPC8272-ADS the pq2fads also supported other 82xx CPU variants, had 8MB flash, and like the 8272 ADS platform, was on a fairly large PCB in order to have space for breakout connectors for all features.

These 82xx platforms are two decades old, and originally made for a small group of industry related people in order to assist in new OEM board designs. Given that, it makes sense to remove support today.

Cc Scott Wood <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
---
 arch/powerpc/boot/Makefile             |   1 -
 arch/powerpc/boot/dts/pq2fads.dts      | 243 -------------------------
 arch/powerpc/configs/ppc6xx_defconfig  |   1 -
 arch/powerpc/configs/pq2fads_defconfig |  80 --------
 arch/powerpc/platforms/82xx/Kconfig    |  10 -
 arch/powerpc/platforms/82xx/Makefile   |   1 -
 arch/powerpc/platforms/82xx/pq2fads.c  | 191 -------------------
 7 files changed, 527 deletions(-)
 delete mode 100644 arch/powerpc/boot/dts/pq2fads.dts
 delete mode 100644 arch/powerpc/configs/pq2fads_defconfig
 delete mode 100644 arch/powerpc/platforms/82xx/pq2fads.c
arch/powerpc/boot/Makefile +0 -1
index 38ee7e58f8e7..f8733b90fdc2 100644
@@ -327,7 +327,6 @@ image-$(CONFIG_PPC_LITE5200)		+= cuImage.lite5200b
 image-$(CONFIG_PPC_MEDIA5200)		+= cuImage.media5200
 
 # Board ports in arch/powerpc/platform/82xx/Kconfig
-image-$(CONFIG_PQ2FADS)			+= cuImage.pq2fads
 image-$(CONFIG_EP8248E)			+= dtbImage.ep8248e
 
 # Board ports in arch/powerpc/platform/83xx/Kconfig
arch/powerpc/boot/dts/pq2fads.dts deleted +0 -243

243 lines not on this page · raw message

arch/powerpc/configs/ppc6xx_defconfig +0 -1
index 6dfe8f90228f..f6a3b87199db 100644
@@ -38,7 +38,6 @@ CONFIG_PPC_MPC52xx=y
 CONFIG_PPC_EFIKA=y
 CONFIG_PPC_MPC5200_BUGFIX=y
 CONFIG_PPC_82xx=y
-CONFIG_PQ2FADS=y
 CONFIG_EP8248E=y
 CONFIG_MGCOGE=y
 CONFIG_PPC_83xx=y
arch/powerpc/configs/pq2fads_defconfig deleted +0 -80

80 lines not on this page · raw message

arch/powerpc/platforms/82xx/Kconfig +0 -10
index 6de033c82960..62a057c6a356 100644
@@ -5,16 +5,6 @@ menuconfig PPC_82xx
 
 if PPC_82xx
 
-config PQ2FADS
-	bool "Freescale PQ2FADS"
-	select DEFAULT_UIMAGE
-	select PQ2ADS
-	select 8260
-	select FSL_SOC
-	select PQ2_ADS_PCI_PIC if PCI
-	help
-	  This option enables support for the PQ2FADS board
-
 config EP8248E
 	bool "Embedded Planet EP8248E (a.k.a. CWH-PPC-8248N-VE)"
 	select 8272
arch/powerpc/platforms/82xx/Makefile +0 -1
index 5426a1479006..a4257f057401 100644
@@ -4,6 +4,5 @@
 #
 obj-$(CONFIG_CPM2) += pq2.o
 obj-$(CONFIG_PQ2_ADS_PCI_PIC) += pq2ads-pci-pic.o
-obj-$(CONFIG_PQ2FADS) += pq2fads.o
 obj-$(CONFIG_EP8248E) += ep8248e.o
 obj-$(CONFIG_MGCOGE) += km82xx.o
arch/powerpc/platforms/82xx/pq2fads.c deleted +0 -191

191 lines not on this page · raw message

Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/3 powerpc: drop MPC8272_ADS platform support

In reply to Paul Gortmaker

The MPC8272-ADS also supported other 82xx CPU variants, had 64MB RAM, 8MB flash, and like the 85xx ADS platforms, was on a fairly large PCB in order to have space for breakout connectors for all the features.

These 82xx platforms are two decades old, and originally made for a small group of industry related people in order to assist in new OEM board designs. Given that, it makes sense to remove support today.

Cc Scott Wood <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
---
 arch/powerpc/boot/Makefile                 |   1 -
 arch/powerpc/boot/dts/mpc8272ads.dts       | 263 ---------------------
 arch/powerpc/configs/mpc8272_ads_defconfig |  79 -------
 arch/powerpc/configs/ppc6xx_defconfig      |   1 -
 arch/powerpc/platforms/82xx/Kconfig        |  11 -
 arch/powerpc/platforms/82xx/Makefile       |   1 -
 arch/powerpc/platforms/82xx/mpc8272_ads.c  | 213 -----------------
 7 files changed, 569 deletions(-)
 delete mode 100644 arch/powerpc/boot/dts/mpc8272ads.dts
 delete mode 100644 arch/powerpc/configs/mpc8272_ads_defconfig
 delete mode 100644 arch/powerpc/platforms/82xx/mpc8272_ads.c
arch/powerpc/boot/Makefile +0 -1
index e236ab395335..38ee7e58f8e7 100644
@@ -327,7 +327,6 @@ image-$(CONFIG_PPC_LITE5200)		+= cuImage.lite5200b
 image-$(CONFIG_PPC_MEDIA5200)		+= cuImage.media5200
 
 # Board ports in arch/powerpc/platform/82xx/Kconfig
-image-$(CONFIG_MPC8272_ADS)		+= cuImage.mpc8272ads
 image-$(CONFIG_PQ2FADS)			+= cuImage.pq2fads
 image-$(CONFIG_EP8248E)			+= dtbImage.ep8248e
 
arch/powerpc/boot/dts/mpc8272ads.dts deleted +0 -263

263 lines not on this page · raw message

arch/powerpc/configs/mpc8272_ads_defconfig deleted +0 -79

79 lines not on this page · raw message

arch/powerpc/configs/ppc6xx_defconfig +0 -1
index a1f6c5f39ccf..6dfe8f90228f 100644
@@ -38,7 +38,6 @@ CONFIG_PPC_MPC52xx=y
 CONFIG_PPC_EFIKA=y
 CONFIG_PPC_MPC5200_BUGFIX=y
 CONFIG_PPC_82xx=y
-CONFIG_MPC8272_ADS=y
 CONFIG_PQ2FADS=y
 CONFIG_EP8248E=y
 CONFIG_MGCOGE=y
arch/powerpc/platforms/82xx/Kconfig +0 -11
index 1af81de1c4e6..6de033c82960 100644
@@ -5,17 +5,6 @@ menuconfig PPC_82xx
 
 if PPC_82xx
 
-config MPC8272_ADS
-	bool "Freescale MPC8272 ADS"
-	select DEFAULT_UIMAGE
-	select PQ2ADS
-	select 8272
-	select 8260
-	select FSL_SOC
-	select PQ2_ADS_PCI_PIC if PCI
-	help
-	  This option enables support for the MPC8272 ADS board
-
 config PQ2FADS
 	bool "Freescale PQ2FADS"
 	select DEFAULT_UIMAGE
arch/powerpc/platforms/82xx/Makefile +0 -1
index 8d713c601bf2..5426a1479006 100644
@@ -2,7 +2,6 @@
 #
 # Makefile for the PowerPC 82xx linux kernel.
 #
-obj-$(CONFIG_MPC8272_ADS) += mpc8272_ads.o
 obj-$(CONFIG_CPM2) += pq2.o
 obj-$(CONFIG_PQ2_ADS_PCI_PIC) += pq2ads-pci-pic.o
 obj-$(CONFIG_PQ2FADS) += pq2fads.o
arch/powerpc/platforms/82xx/mpc8272_ads.c deleted +0 -213

213 lines not on this page · raw message

Signature · 1 line
2.17.1
#4 lore raw
In reply to Paul Gortmaker
Quoted 6 lines · Paul Gortmaker

[This RFC is proposed for v6.4 and hence is based off linux-next.]

This series removes support for two PowerQUICC II (MPC82xx) Freescale processor family evaluation boards that were added to the kernel in approximately the 2003 era.

Quoted 6 lines

I couldn't easily find a reference picture, but there are line art sketches in the various manuals still available[1,2]. In any case, we've got one system with 32MB RAM and the other with 64MB. CPU speeds are also what one would expect for twenty year old platforms.

[...]

Applied to powerpc/next.

[1/3] powerpc: drop MPC8272_ADS platform support

      https://git.kernel.org/powerpc/c/33777a4e9bb93f66ac2511d99ec66ab50f1a04bc
[2/3] powerpc: drop PowerQUICC II Family ADS platform support
      https://git.kernel.org/powerpc/c/859b21a008ebcc7fd876f50738f63750d46b5296
[3/3] powerpc: drop MPC8272-ADS and PowerQUICC II FADS shared code.
      https://git.kernel.org/powerpc/c/ad46ad2d853daf082f742c9654da84e3d2a46765

cheers