Skip to content

Commit e939da8

Browse files
committed
powerpc: Remove 40x from Kconfig and defconfig
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
1 parent 839ff58 commit e939da8

5 files changed

Lines changed: 10 additions & 43 deletions

File tree

arch/powerpc/Kconfig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ config PPC
149149
select ARCH_HAS_PTE_SPECIAL
150150
select ARCH_HAS_SCALED_CPUTIME if VIRT_CPU_ACCOUNTING_NATIVE && PPC_BOOK3S_64
151151
select ARCH_HAS_SET_MEMORY
152-
select ARCH_HAS_STRICT_KERNEL_RWX if (PPC_BOOK3S || PPC_8xx || 40x) && !HIBERNATION
152+
select ARCH_HAS_STRICT_KERNEL_RWX if (PPC_BOOK3S || PPC_8xx) && !HIBERNATION
153153
select ARCH_HAS_STRICT_KERNEL_RWX if PPC_85xx && !HIBERNATION && !RANDOMIZE_BASE
154154
select ARCH_HAS_STRICT_MODULE_RWX if ARCH_HAS_STRICT_KERNEL_RWX
155155
select ARCH_HAS_SYSCALL_WRAPPER if !SPU_BASE && !COMPAT
@@ -167,7 +167,7 @@ config PPC
167167
select ARCH_SPLIT_ARG64 if PPC32
168168
select ARCH_STACKWALK
169169
select ARCH_SUPPORTS_ATOMIC_RMW
170-
select ARCH_SUPPORTS_DEBUG_PAGEALLOC if PPC_BOOK3S || PPC_8xx || 40x
170+
select ARCH_SUPPORTS_DEBUG_PAGEALLOC if PPC_BOOK3S || PPC_8xx
171171
select ARCH_USE_BUILTIN_BSWAP
172172
select ARCH_USE_CMPXCHG_LOCKREF if PPC64
173173
select ARCH_USE_MEMTEST
@@ -389,7 +389,7 @@ config ARCH_SUSPEND_POSSIBLE
389389
def_bool y
390390
depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || \
391391
(PPC_85xx && !PPC_E500MC) || PPC_86xx || PPC_PSERIES \
392-
|| 44x || 40x
392+
|| 44x
393393

394394
config ARCH_SUSPEND_NONZERO_CPU
395395
def_bool y
@@ -443,7 +443,7 @@ config ARCH_SUPPORTS_UPROBES
443443

444444
config PPC_ADV_DEBUG_REGS
445445
bool
446-
depends on 40x || BOOKE
446+
depends on BOOKE
447447
default y
448448

449449
config PPC_ADV_DEBUG_IACS
@@ -1077,7 +1077,7 @@ config GENERIC_ISA_DMA
10771077
config PPC_INDIRECT_PCI
10781078
bool
10791079
depends on PCI
1080-
default y if 40x || 44x
1080+
default y if 44x
10811081

10821082
config SBUS
10831083
bool
@@ -1102,7 +1102,7 @@ config FSL_PMC
11021102
config PPC4xx_CPM
11031103
bool
11041104
default y
1105-
depends on SUSPEND && (44x || 40x)
1105+
depends on SUSPEND && 44x
11061106
help
11071107
PPC4xx Clock Power Management (CPM) support (suspend/resume).
11081108
It also enables support for two different idle states (idle-wait

arch/powerpc/Kconfig.debug

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,6 @@ config PPC_EARLY_DEBUG_44x
244244
inbuilt serial port. If you enable this, ensure you set
245245
PPC_EARLY_DEBUG_44x_PHYSLOW below to suit your target board.
246246

247-
config PPC_EARLY_DEBUG_40x
248-
bool "Early serial debugging for IBM/AMCC 40x CPUs"
249-
depends on 40x
250-
help
251-
Select this to enable early debugging for IBM 40x chips via the
252-
inbuilt serial port. This works on chips with a 16550 compatible
253-
UART.
254-
255247
config PPC_EARLY_DEBUG_CPM
256248
bool "Early serial debugging for Freescale CPM-based serial ports"
257249
depends on SERIAL_CPM=y
@@ -356,11 +348,6 @@ config PPC_EARLY_DEBUG_44x_PHYSHIGH
356348
depends on PPC_EARLY_DEBUG_44x
357349
default "0x1"
358350

359-
config PPC_EARLY_DEBUG_40x_PHYSADDR
360-
hex "Early debug UART physical address"
361-
depends on PPC_EARLY_DEBUG_40x
362-
default "0xef600300"
363-
364351
config PPC_EARLY_DEBUG_CPM_ADDR
365352
hex "CPM UART early debug transmit descriptor address"
366353
depends on PPC_EARLY_DEBUG_CPM

arch/powerpc/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,6 @@ ppc32_allmodconfig:
301301
$(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/book3s_32.config \
302302
-f $(srctree)/Makefile allmodconfig
303303

304-
generated_configs += ppc40x_allmodconfig
305-
ppc40x_allmodconfig:
306-
$(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/40x.config \
307-
-f $(srctree)/Makefile allmodconfig
308-
309304
generated_configs += ppc44x_allmodconfig
310305
ppc44x_allmodconfig:
311306
$(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/44x.config \

arch/powerpc/configs/40x.config

Lines changed: 0 additions & 2 deletions
This file was deleted.

arch/powerpc/platforms/Kconfig.cputype

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@ config PPC_8xx
4343
select HAVE_ARCH_VMAP_STACK
4444
select HUGETLBFS
4545

46-
config 40x
47-
bool "AMCC 40x"
48-
select PPC_DCR_NATIVE
49-
select PPC_UDBG_16550
50-
select 4xx_SOC
51-
select HAVE_PCI
52-
select PPC_KUEP if PPC_KUAP
53-
5446
config 44x
5547
bool "AMCC 44x, 46x or 47x"
5648
select PPC_DCR_NATIVE
@@ -194,11 +186,6 @@ config E6500_CPU
194186
depends on !CC_IS_CLANG
195187
select PPC_HAS_LBARX_LHARX
196188

197-
config 405_CPU
198-
bool "40x family"
199-
depends on 40x
200-
depends on !CC_IS_CLANG
201-
202189
config 440_CPU
203190
bool "440 (44x family)"
204191
depends on 44x
@@ -340,7 +327,7 @@ config FSL_EMB_PERF_EVENT_E500
340327

341328
config 4xx
342329
bool
343-
depends on 40x || 44x
330+
depends on 44x
344331
default y
345332

346333
config BOOKE
@@ -350,7 +337,7 @@ config BOOKE
350337

351338
config BOOKE_OR_40x
352339
bool
353-
depends on BOOKE || 40x
340+
depends on BOOKE
354341
default y
355342

356343
config PTE_64BIT
@@ -495,8 +482,8 @@ config PPC_KERNEL_PCREL
495482
This option builds the kernel with the pc relative ABI model.
496483

497484
config PPC_KUEP
498-
bool "Kernel Userspace Execution Prevention" if !40x
499-
default y if !40x
485+
bool "Kernel Userspace Execution Prevention"
486+
default y
500487
help
501488
Enable support for Kernel Userspace Execution Prevention (KUEP)
502489

0 commit comments

Comments
 (0)