]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
powerpc/platforms: Move files from 4xx to 44x
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 28 Jun 2024 12:12:01 +0000 (22:12 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 28 Jun 2024 12:28:48 +0000 (22:28 +1000)
Only 44x uses 4xx now, so only keep one directory.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240628121201.130802-7-mpe@ellerman.id.au
12 files changed:
arch/powerpc/platforms/44x/Makefile
arch/powerpc/platforms/44x/cpm.c [moved from arch/powerpc/platforms/4xx/cpm.c with 100% similarity]
arch/powerpc/platforms/44x/gpio.c [moved from arch/powerpc/platforms/4xx/gpio.c with 100% similarity]
arch/powerpc/platforms/44x/hsta_msi.c [moved from arch/powerpc/platforms/4xx/hsta_msi.c with 100% similarity]
arch/powerpc/platforms/44x/machine_check.c
arch/powerpc/platforms/44x/pci.c [moved from arch/powerpc/platforms/4xx/pci.c with 100% similarity]
arch/powerpc/platforms/44x/pci.h [moved from arch/powerpc/platforms/4xx/pci.h with 100% similarity]
arch/powerpc/platforms/44x/soc.c [moved from arch/powerpc/platforms/4xx/soc.c with 100% similarity]
arch/powerpc/platforms/44x/uic.c [moved from arch/powerpc/platforms/4xx/uic.c with 100% similarity]
arch/powerpc/platforms/4xx/Makefile [deleted file]
arch/powerpc/platforms/4xx/machine_check.c [deleted file]
arch/powerpc/platforms/Makefile

index 5ba031f57652032684fcacbc6a10b394a8e1de9e..ca7b1bb442d9889743701dfcb458a41f0d08de7e 100644 (file)
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
-obj-y  += misc_44x.o machine_check.o
+obj-y  += misc_44x.o machine_check.o uic.o soc.o
 ifneq ($(CONFIG_PPC4xx_CPM),y)
 obj-y  += idle.o
 endif
@@ -12,3 +12,7 @@ obj-$(CONFIG_CANYONLANDS)+= canyonlands.o
 obj-$(CONFIG_CURRITUCK)        += ppc476.o
 obj-$(CONFIG_AKEBONO)  += ppc476.o
 obj-$(CONFIG_FSP2)     += fsp2.o
+obj-$(CONFIG_PCI)              += pci.o
+obj-$(CONFIG_PPC4xx_HSTA_MSI)  += hsta_msi.o
+obj-$(CONFIG_PPC4xx_CPM)       += cpm.o
+obj-$(CONFIG_PPC4xx_GPIO)      += gpio.o
index 5d19daacd78ad11997677969f3d29f2c4970bd72..85ff33a8d9b61071295fc88b2ef2758bee9cb4b8 100644 (file)
@@ -9,6 +9,21 @@
 #include <asm/reg.h>
 #include <asm/cacheflush.h>
 
+int machine_check_4xx(struct pt_regs *regs)
+{
+       unsigned long reason = regs->esr;
+
+       if (reason & ESR_IMCP) {
+               printk("Instruction");
+               mtspr(SPRN_ESR, reason & ~ESR_IMCP);
+       } else
+               printk("Data");
+
+       printk(" machine check in kernel mode.\n");
+
+       return 0;
+}
+
 int machine_check_440A(struct pt_regs *regs)
 {
        unsigned long reason = regs->esr;
diff --git a/arch/powerpc/platforms/4xx/Makefile b/arch/powerpc/platforms/4xx/Makefile
deleted file mode 100644 (file)
index 7f57c35..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-obj-y                          += uic.o machine_check.o
-obj-$(CONFIG_44x)              += soc.o
-obj-$(CONFIG_PCI)              += pci.o
-obj-$(CONFIG_PPC4xx_HSTA_MSI)  += hsta_msi.o
-obj-$(CONFIG_PPC4xx_CPM)       += cpm.o
-obj-$(CONFIG_PPC4xx_GPIO)      += gpio.o
diff --git a/arch/powerpc/platforms/4xx/machine_check.c b/arch/powerpc/platforms/4xx/machine_check.c
deleted file mode 100644 (file)
index a905da1..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- */
-
-#include <linux/kernel.h>
-#include <linux/printk.h>
-#include <linux/ptrace.h>
-
-#include <asm/reg.h>
-
-int machine_check_4xx(struct pt_regs *regs)
-{
-       unsigned long reason = regs->esr;
-
-       if (reason & ESR_IMCP) {
-               printk("Instruction");
-               mtspr(SPRN_ESR, reason & ~ESR_IMCP);
-       } else
-               printk("Data");
-       printk(" machine check in kernel mode.\n");
-
-       return 0;
-}
index d1a417b301b66e298a8df2dad444a4ff71ccc61c..786d374bff31705b64b3c549e0bfb2a6c1a686c2 100644 (file)
@@ -4,7 +4,6 @@ obj-$(CONFIG_FSL_ULI1575)       += fsl_uli1575.o
 
 obj-$(CONFIG_PPC_PMAC)         += powermac/
 obj-$(CONFIG_PPC_CHRP)         += chrp/
-obj-$(CONFIG_4xx)              += 4xx/
 obj-$(CONFIG_44x)              += 44x/
 obj-$(CONFIG_PPC_MPC512x)      += 512x/
 obj-$(CONFIG_PPC_MPC52xx)      += 52xx/