Skip to content

Commit

Permalink
powerpc/platforms: Move files from 4xx to 44x
Browse files Browse the repository at this point in the history
Only 44x uses 4xx now, so only keep one directory.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
  • Loading branch information
chleroy authored and intel-lab-lkp committed Dec 9, 2020
1 parent 4e35f2a commit 27cc6cb
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 33 deletions.
9 changes: 8 additions & 1 deletion arch/powerpc/platforms/44x/Makefile
@@ -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
ifneq ($(CONFIG_PPC4xx_CPM),y)
obj-y += idle.o
endif
Expand All @@ -12,3 +12,10 @@ obj-$(CONFIG_CANYONLANDS)+= canyonlands.o
obj-$(CONFIG_CURRITUCK) += ppc476.o
obj-$(CONFIG_AKEBONO) += ppc476.o
obj-$(CONFIG_FSP2) += fsp2.o

obj-$(CONFIG_4xx_SOC) += soc.o
obj-$(CONFIG_PCI) += pci.o
obj-$(CONFIG_PPC4xx_HSTA_MSI) += hsta_msi.o
obj-$(CONFIG_PPC4xx_MSI) += msi.o
obj-$(CONFIG_PPC4xx_CPM) += cpm.o
obj-$(CONFIG_PPC4xx_GPIO) += gpio.o
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions arch/powerpc/platforms/44x/machine_check.c
Expand Up @@ -9,6 +9,20 @@
#include <asm/reg.h>
#include <asm/cacheflush.h>

int machine_check_4xx(struct pt_regs *regs)
{
unsigned long reason = regs->dsisr;

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->dsisr;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions arch/powerpc/platforms/4xx/Makefile

This file was deleted.

23 changes: 0 additions & 23 deletions arch/powerpc/platforms/4xx/machine_check.c

This file was deleted.

2 changes: 1 addition & 1 deletion arch/powerpc/platforms/Makefile
Expand Up @@ -4,7 +4,7 @@ obj-$(CONFIG_FSL_ULI1575) += fsl_uli1575.o

obj-$(CONFIG_PPC_PMAC) += powermac/
obj-$(CONFIG_PPC_CHRP) += chrp/
obj-$(CONFIG_44x) += 4xx/ 44x/
obj-$(CONFIG_44x) += 44x/
obj-$(CONFIG_PPC_MPC512x) += 512x/
obj-$(CONFIG_PPC_MPC52xx) += 52xx/
obj-$(CONFIG_PPC_8xx) += 8xx/
Expand Down

0 comments on commit 27cc6cb

Please sign in to comment.