]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
powerpc: Remove 40x from Kconfig and defconfig
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 28 Jun 2024 12:11:57 +0000 (22:11 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 28 Jun 2024 12:28:47 +0000 (22:28 +1000)
Remove 40x from Kconfig, making the code unreachable.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240628121201.130802-3-mpe@ellerman.id.au
arch/powerpc/Kconfig
arch/powerpc/Kconfig.debug
arch/powerpc/Makefile
arch/powerpc/configs/40x.config [deleted file]
arch/powerpc/platforms/Kconfig.cputype

index c88c6d46a5bc0127e29fa2179b58d8cb0409f149..16d625c71dfa0cb643d9fbe6c437af4f0c554172 100644 (file)
@@ -149,7 +149,7 @@ config PPC
        select ARCH_HAS_PTE_SPECIAL
        select ARCH_HAS_SCALED_CPUTIME          if VIRT_CPU_ACCOUNTING_NATIVE && PPC_BOOK3S_64
        select ARCH_HAS_SET_MEMORY
-       select ARCH_HAS_STRICT_KERNEL_RWX       if (PPC_BOOK3S || PPC_8xx || 40x) && !HIBERNATION
+       select ARCH_HAS_STRICT_KERNEL_RWX       if (PPC_BOOK3S || PPC_8xx) && !HIBERNATION
        select ARCH_HAS_STRICT_KERNEL_RWX       if PPC_85xx && !HIBERNATION && !RANDOMIZE_BASE
        select ARCH_HAS_STRICT_MODULE_RWX       if ARCH_HAS_STRICT_KERNEL_RWX
        select ARCH_HAS_SYSCALL_WRAPPER         if !SPU_BASE && !COMPAT
@@ -167,7 +167,7 @@ config PPC
        select ARCH_SPLIT_ARG64                 if PPC32
        select ARCH_STACKWALK
        select ARCH_SUPPORTS_ATOMIC_RMW
-       select ARCH_SUPPORTS_DEBUG_PAGEALLOC    if PPC_BOOK3S || PPC_8xx || 40x
+       select ARCH_SUPPORTS_DEBUG_PAGEALLOC    if PPC_BOOK3S || PPC_8xx
        select ARCH_USE_BUILTIN_BSWAP
        select ARCH_USE_CMPXCHG_LOCKREF         if PPC64
        select ARCH_USE_MEMTEST
@@ -389,7 +389,7 @@ config ARCH_SUSPEND_POSSIBLE
        def_bool y
        depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || \
                   (PPC_85xx && !PPC_E500MC) || PPC_86xx || PPC_PSERIES \
-                  || 44x || 40x
+                  || 44x
 
 config ARCH_SUSPEND_NONZERO_CPU
        def_bool y
@@ -443,7 +443,7 @@ config ARCH_SUPPORTS_UPROBES
 
 config PPC_ADV_DEBUG_REGS
        bool
-       depends on 40x || BOOKE
+       depends on BOOKE
        default y
 
 config PPC_ADV_DEBUG_IACS
@@ -1077,7 +1077,7 @@ config GENERIC_ISA_DMA
 config PPC_INDIRECT_PCI
        bool
        depends on PCI
-       default y if 40x || 44x
+       default y if 44x
 
 config SBUS
        bool
@@ -1102,7 +1102,7 @@ config FSL_PMC
 config PPC4xx_CPM
        bool
        default y
-       depends on SUSPEND && (44x || 40x)
+       depends on SUSPEND && 44x
        help
          PPC4xx Clock Power Management (CPM) support (suspend/resume).
          It also enables support for two different idle states (idle-wait
index 8c80b154e814ea5ebc5258aae394051a4b535c9a..3799ceceb04a388c9e1a4bf13c6c965a05ab65f3 100644 (file)
@@ -244,14 +244,6 @@ config PPC_EARLY_DEBUG_44x
          inbuilt serial port.  If you enable this, ensure you set
          PPC_EARLY_DEBUG_44x_PHYSLOW below to suit your target board.
 
-config PPC_EARLY_DEBUG_40x
-       bool "Early serial debugging for IBM/AMCC 40x CPUs"
-       depends on 40x
-       help
-         Select this to enable early debugging for IBM 40x chips via the
-         inbuilt serial port. This works on chips with a 16550 compatible
-         UART.
-
 config PPC_EARLY_DEBUG_CPM
        bool "Early serial debugging for Freescale CPM-based serial ports"
        depends on SERIAL_CPM=y
@@ -356,11 +348,6 @@ config PPC_EARLY_DEBUG_44x_PHYSHIGH
        depends on PPC_EARLY_DEBUG_44x
        default "0x1"
 
-config PPC_EARLY_DEBUG_40x_PHYSADDR
-       hex "Early debug UART physical address"
-       depends on PPC_EARLY_DEBUG_40x
-       default "0xef600300"
-
 config PPC_EARLY_DEBUG_CPM_ADDR
        hex "CPM UART early debug transmit descriptor address"
        depends on PPC_EARLY_DEBUG_CPM
index a8479c881cac82bf61cce9fe8338b182053cdc0e..bbfe4a1f06ef9db9b2f2e48e02096b1e0500a14b 100644 (file)
@@ -301,11 +301,6 @@ ppc32_allmodconfig:
        $(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/book3s_32.config \
                -f $(srctree)/Makefile allmodconfig
 
-generated_configs += ppc40x_allmodconfig
-ppc40x_allmodconfig:
-       $(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/40x.config \
-               -f $(srctree)/Makefile allmodconfig
-
 generated_configs += ppc44x_allmodconfig
 ppc44x_allmodconfig:
        $(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/44x.config \
diff --git a/arch/powerpc/configs/40x.config b/arch/powerpc/configs/40x.config
deleted file mode 100644 (file)
index 82a9d58..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-CONFIG_PPC64=n
-CONFIG_40x=y
index b2d8c0da2ad9dc92dbf6f7ca2f53e6c75fe3c247..2b686ee2dd2bb5d925c4e25ee24af377be1dd46b 100644 (file)
@@ -43,14 +43,6 @@ config PPC_8xx
        select HAVE_ARCH_VMAP_STACK
        select HUGETLBFS
 
-config 40x
-       bool "AMCC 40x"
-       select PPC_DCR_NATIVE
-       select PPC_UDBG_16550
-       select 4xx_SOC
-       select HAVE_PCI
-       select PPC_KUEP if PPC_KUAP
-
 config 44x
        bool "AMCC 44x, 46x or 47x"
        select PPC_DCR_NATIVE
@@ -194,11 +186,6 @@ config E6500_CPU
        depends on !CC_IS_CLANG
        select PPC_HAS_LBARX_LHARX
 
-config 405_CPU
-       bool "40x family"
-       depends on 40x
-       depends on !CC_IS_CLANG
-
 config 440_CPU
        bool "440 (44x family)"
        depends on 44x
@@ -340,7 +327,7 @@ config FSL_EMB_PERF_EVENT_E500
 
 config 4xx
        bool
-       depends on 40x || 44x
+       depends on 44x
        default y
 
 config BOOKE
@@ -350,7 +337,7 @@ config BOOKE
 
 config BOOKE_OR_40x
        bool
-       depends on BOOKE || 40x
+       depends on BOOKE
        default y
 
 config PTE_64BIT
@@ -495,8 +482,8 @@ config PPC_KERNEL_PCREL
          This option builds the kernel with the pc relative ABI model.
 
 config PPC_KUEP
-       bool "Kernel Userspace Execution Prevention" if !40x
-       default y if !40x
+       bool "Kernel Userspace Execution Prevention"
+       default y
        help
          Enable support for Kernel Userspace Execution Prevention (KUEP)