Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Replace CONFIG_4xx with CONFIG_44x

Replace 4xx usage with 44x, and replace 4xx_SOC with 44x.

Also, as pointed out by Christophe, if 44x || BOOKE can be simplified to
just test BOOKE, because 44x always selects BOOKE.

Retain the CONFIG_4xx symbol, as there are drivers that use it to mean
4xx || 44x, those will need updating before CONFIG_4xx can be removed.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240628121201.130802-6-mpe@ellerman.id.au

+13 -19
+1 -4
arch/powerpc/Kconfig
··· 490 490 491 491 config MATH_EMULATION 492 492 bool "Math emulation" 493 - depends on 4xx || PPC_8xx || PPC_MPC832x || BOOKE || PPC_MICROWATT 493 + depends on 44x || PPC_8xx || PPC_MPC832x || BOOKE || PPC_MICROWATT 494 494 select PPC_FPU_REGS 495 495 help 496 496 Some PowerPC chips designed for embedded applications do not have ··· 1107 1107 PPC4xx Clock Power Management (CPM) support (suspend/resume). 1108 1108 It also enables support for two different idle states (idle-wait 1109 1109 and idle-doze). 1110 - 1111 - config 4xx_SOC 1112 - bool 1113 1110 1114 1111 config FSL_LBC 1115 1112 bool "Freescale Local Bus support"
+1 -1
arch/powerpc/include/asm/cacheflush.h
··· 121 121 mb(); /* sync */ 122 122 } 123 123 124 - #ifdef CONFIG_4xx 124 + #ifdef CONFIG_44x 125 125 static inline void flush_instruction_cache(void) 126 126 { 127 127 iccci((void *)KERNELBASE);
+1 -1
arch/powerpc/include/asm/ppc_asm.h
··· 482 482 * and they must be used. 483 483 */ 484 484 485 - #if !defined(CONFIG_4xx) && !defined(CONFIG_PPC_8xx) 485 + #if !defined(CONFIG_44x) && !defined(CONFIG_PPC_8xx) 486 486 #define tlbia \ 487 487 li r4,1024; \ 488 488 mtctr r4; \
+2 -4
arch/powerpc/kernel/entry_32.S
··· 211 211 212 212 .globl fast_exception_return 213 213 fast_exception_return: 214 - #if !(defined(CONFIG_4xx) || defined(CONFIG_BOOKE)) 214 + #ifndef CONFIG_BOOKE 215 215 andi. r10,r9,MSR_RI /* check for recoverable interrupt */ 216 216 beq 3f /* if not, we've got problems */ 217 217 #endif ··· 365 365 rfi 366 366 _ASM_NOKPROBE_SYMBOL(interrupt_return) 367 367 368 - #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) 368 + #ifdef CONFIG_BOOKE 369 369 370 370 /* 371 371 * Returning from a critical interrupt in user mode doesn't need ··· 444 444 #define RESTORE_MMU_REGS 445 445 #endif 446 446 447 - #ifdef CONFIG_BOOKE 448 447 .globl ret_from_crit_exc 449 448 ret_from_crit_exc: 450 449 RESTORE_xSRR(SRR0,SRR1); ··· 468 469 RET_FROM_EXC_LEVEL(SPRN_MCSRR0, SPRN_MCSRR1, PPC_RFMCI) 469 470 _ASM_NOKPROBE_SYMBOL(ret_from_mcheck_exc) 470 471 #endif /* CONFIG_BOOKE */ 471 - #endif /* !(CONFIG_4xx || CONFIG_BOOKE) */
+1 -1
arch/powerpc/kernel/process.c
··· 1573 1573 if (trap == INTERRUPT_MACHINE_CHECK || 1574 1574 trap == INTERRUPT_DATA_STORAGE || 1575 1575 trap == INTERRUPT_ALIGNMENT) { 1576 - if (IS_ENABLED(CONFIG_4xx) || IS_ENABLED(CONFIG_BOOKE)) 1576 + if (IS_ENABLED(CONFIG_BOOKE)) 1577 1577 pr_cont("DEAR: "REG" ESR: "REG" ", regs->dear, regs->esr); 1578 1578 else 1579 1579 pr_cont("DAR: "REG" DSISR: %08lx ", regs->dar, regs->dsisr);
+2 -2
arch/powerpc/mm/fault.c
··· 368 368 * Define the correct "is_write" bit in error_code based 369 369 * on the processor family 370 370 */ 371 - #if (defined(CONFIG_4xx) || defined(CONFIG_BOOKE)) 371 + #ifdef CONFIG_BOOKE 372 372 #define page_fault_is_write(__err) ((__err) & ESR_DST) 373 373 #else 374 374 #define page_fault_is_write(__err) ((__err) & DSISR_ISSTORE) 375 375 #endif 376 376 377 - #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) 377 + #ifdef CONFIG_BOOKE 378 378 #define page_fault_is_bad(__err) (0) 379 379 #elif defined(CONFIG_PPC_8xx) 380 380 #define page_fault_is_bad(__err) ((__err) & DSISR_NOEXEC_OR_G)
+1 -1
arch/powerpc/mm/ptdump/Makefile
··· 2 2 3 3 obj-y += ptdump.o 4 4 5 - obj-$(CONFIG_4xx) += shared.o 5 + obj-$(CONFIG_44x) += shared.o 6 6 obj-$(CONFIG_PPC_8xx) += 8xx.o 7 7 obj-$(CONFIG_PPC_E500) += shared.o 8 8 obj-$(CONFIG_PPC_BOOK3S_32) += shared.o
+1 -1
arch/powerpc/platforms/4xx/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 obj-y += uic.o machine_check.o 3 - obj-$(CONFIG_4xx_SOC) += soc.o 3 + obj-$(CONFIG_44x) += soc.o 4 4 obj-$(CONFIG_PCI) += pci.o 5 5 obj-$(CONFIG_PPC4xx_HSTA_MSI) += hsta_msi.o 6 6 obj-$(CONFIG_PPC4xx_CPM) += cpm.o
+1 -2
arch/powerpc/platforms/Kconfig.cputype
··· 47 47 bool "AMCC 44x, 46x or 47x" 48 48 select PPC_DCR_NATIVE 49 49 select PPC_UDBG_16550 50 - select 4xx_SOC 51 50 select HAVE_PCI 52 51 select PHYS_64BIT 53 52 select PPC_KUEP ··· 563 564 564 565 config NOT_COHERENT_CACHE 565 566 bool 566 - depends on 4xx || PPC_8xx || PPC_MPC512x || \ 567 + depends on 44x || PPC_8xx || PPC_MPC512x || \ 567 568 GAMECUBE_COMMON || AMIGAONE 568 569 select ARCH_HAS_DMA_PREP_COHERENT 569 570 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
+2 -2
arch/powerpc/sysdev/Kconfig
··· 5 5 6 6 config PPC4xx_PCI_EXPRESS 7 7 bool 8 - depends on PCI && 4xx 8 + depends on PCI && 44x 9 9 10 10 config PPC4xx_HSTA_MSI 11 11 bool 12 12 depends on PCI_MSI 13 - depends on PCI && 4xx 13 + depends on PCI && 44x 14 14 15 15 config PPC_MSI_BITMAP 16 16 bool