powerpc: Change CONFIG_E500 to CONFIG_PPC_E500
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 19 Sep 2022 17:01:35 +0000 (19:01 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 13:00:13 +0000 (23:00 +1000)
It will be used outside arch/powerpc, make it clear its a
powerpc configuration item.

And we already have CONFIG_PPC_E500MC, so that will make
it more consistent.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/e63b22083c11c4300f4a82d3123a46e5fdd54fa6.1663606876.git.christophe.leroy@csgroup.eu
18 files changed:
arch/powerpc/Makefile
arch/powerpc/include/asm/cputable.h
arch/powerpc/include/asm/kgdb.h
arch/powerpc/include/asm/mmu.h
arch/powerpc/include/asm/reg_booke.h
arch/powerpc/include/asm/synch.h
arch/powerpc/include/asm/vdso/timebase.h
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/cpu_setup_fsl_booke.S
arch/powerpc/kernel/entry_32.S
arch/powerpc/kernel/head_85xx.S
arch/powerpc/kernel/head_booke.h
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/traps.c
arch/powerpc/kvm/Kconfig
arch/powerpc/platforms/Kconfig.cputype
arch/powerpc/sysdev/fsl_pci.c
arch/powerpc/sysdev/fsl_rio.c

index f6d477c4aa64a18bd78a501d6325ea6333076c8e..cb01832385d074a2f205259b45aa07ff814de92c 100644 (file)
@@ -210,7 +210,7 @@ KBUILD_CFLAGS               += $(call cc-option,-mno-string)
 cpu-as-$(CONFIG_40x)           += -Wa,-m405
 cpu-as-$(CONFIG_44x)           += -Wa,-m440
 cpu-as-$(CONFIG_ALTIVEC)       += $(call as-option,-Wa$(comma)-maltivec)
-cpu-as-$(CONFIG_E500)          += -Wa,-me500
+cpu-as-$(CONFIG_PPC_E500)              += -Wa,-me500
 
 # When using '-many -mpower4' gas will first try and find a matching power4
 # mnemonic and failing that it will allow any valid mnemonic that GAS knows
index 27875f0b7bc7dcb98e16231f31d176065fb81fe8..757dbded11dcfa3c9de381cb10ee49821091f5ba 100644 (file)
@@ -510,7 +510,7 @@ enum {
 #elif defined(CONFIG_44x)
            CPU_FTRS_44X | CPU_FTRS_440x6 |
 #endif
-#ifdef CONFIG_E500
+#ifdef CONFIG_PPC_E500
            CPU_FTRS_E500 | CPU_FTRS_E500_2 |
 #endif
 #ifdef CONFIG_PPC_E500MC
@@ -584,7 +584,7 @@ enum {
 #elif defined(CONFIG_44x)
            CPU_FTRS_44X & CPU_FTRS_440x6 &
 #endif
-#ifdef CONFIG_E500
+#ifdef CONFIG_PPC_E500
            CPU_FTRS_E500 & CPU_FTRS_E500_2 &
 #endif
 #ifdef CONFIG_PPC_E500MC
index a9e098a3b881f29f0d18d6c96a6f4f4a31376173..715c18b7533463fa545766ab142ebbc216b026ea 100644 (file)
@@ -52,7 +52,7 @@ static inline void arch_kgdb_breakpoint(void)
 /* On non-E500 family PPC32 we determine the size by picking the last
  * register we need, but on E500 we skip sections so we list what we
  * need to store, and add it up. */
-#ifndef CONFIG_E500
+#ifndef CONFIG_PPC_E500
 #define MAXREG                 (PT_FPSCR+1)
 #else
 /* 32 GPRs (8 bytes), nip, msr, ccr, link, ctr, xer, acc (8 bytes), spefscr*/
index 860d0290ca4def85a6527d9214f07c5859ffb4cc..5b46da9ba7f699eb5a22762f4d07c571f3aabc0f 100644 (file)
@@ -162,7 +162,7 @@ enum {
 #elif defined(CONFIG_44x)
                MMU_FTR_TYPE_44x |
 #endif
-#ifdef CONFIG_E500
+#ifdef CONFIG_PPC_E500
                MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS | MMU_FTR_USE_TLBILX |
 #endif
 #ifdef CONFIG_PPC_BOOK3S_32
@@ -211,7 +211,7 @@ enum {
 #elif defined(CONFIG_44x)
 #define MMU_FTRS_ALWAYS                MMU_FTR_TYPE_44x
 #endif
-#ifdef CONFIG_E500
+#ifdef CONFIG_PPC_E500
 #define MMU_FTRS_ALWAYS                MMU_FTR_TYPE_FSL_E
 #endif
 
index 17b8dcd9a40dedf137c1842bbbc6fe504e3e83d0..af56980b6cdbea124382ab335be85cf488ac04d4 100644 (file)
 #define PPC47x_MCSR_FPR        0x00800000 /* FPR parity error */
 #define PPC47x_MCSR_IPR        0x00400000 /* Imprecise Machine Check Exception */
 
-#ifdef CONFIG_E500
+#ifdef CONFIG_PPC_E500
 /* All e500 */
 #define MCSR_MCP       0x80000000UL /* Machine Check Input Pin */
 #define MCSR_ICPERR    0x40000000UL /* I-Cache Parity Error */
 #endif
 
 /* Bit definitions for the HID1 */
-#ifdef CONFIG_E500
+#ifdef CONFIG_PPC_E500
 /* e500v1/v2 */
 #define HID1_PLL_CFG_MASK 0xfc000000   /* PLL_CFG input pins */
 #define HID1_RFXE      0x00020000      /* Read fault exception enable */
 #define TCR_FIE                0x00800000      /* FIT Interrupt Enable */
 #define TCR_ARE                0x00400000      /* Auto Reload Enable */
 
-#ifdef CONFIG_E500
+#ifdef CONFIG_PPC_E500
 #define TCR_GET_WP(tcr)  ((((tcr) & 0xC0000000) >> 30) | \
                              (((tcr) & 0x1E0000) >> 15))
 #else
index 7130176d8cb8826dfac2770dc303bc352fcdb4bf..b0b4c64870d77c75123ee2396359699553cc816b 100644 (file)
@@ -44,7 +44,7 @@ static inline void ppc_after_tlbiel_barrier(void)
 
 #if defined(__powerpc64__)
 #    define LWSYNC     lwsync
-#elif defined(CONFIG_E500)
+#elif defined(CONFIG_PPC_E500)
 #    define LWSYNC                                     \
        START_LWSYNC_SECTION(96);                       \
        sync;                                           \
index 891c9d5eaabe10e494013271491ff3a72a813b6a..e9245f86a46cfba4d0173af0aac9a12528d94887 100644 (file)
@@ -12,7 +12,7 @@
  * We use __powerpc64__ here because we want the compat VDSO to use the 32-bit
  * version below in the else case of the ifdef.
  */
-#if defined(__powerpc64__) && (defined(CONFIG_PPC_CELL) || defined(CONFIG_E500))
+#if defined(__powerpc64__) && (defined(CONFIG_PPC_CELL) || defined(CONFIG_PPC_E500))
 #define mftb()         ({unsigned long rval;                           \
                        asm volatile(                                   \
                                "90:    mfspr %0, %2;\n"                \
index 4483cae7dc9f77f5713cd4f0c4741f97627d572b..33dafd12e81d7248eab54a0d50339b3b04430e75 100644 (file)
@@ -101,7 +101,7 @@ obj-$(CONFIG_CRASH_DUMP)    += crash_dump.o
 obj-$(CONFIG_FA_DUMP)          += fadump.o
 obj-$(CONFIG_PRESERVE_FA_DUMP) += fadump.o
 ifdef CONFIG_PPC32
-obj-$(CONFIG_E500)             += idle_e500.o
+obj-$(CONFIG_PPC_E500)         += idle_e500.o
 endif
 obj-$(CONFIG_PPC_BOOK3S_32)    += idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o
 obj-$(CONFIG_TAU)              += tau_6xx.o
index 4bf33f1b4193cf8c56fd2e85e654227f428269a2..058336079069c98aee7b0390b5fa52238e837811 100644 (file)
@@ -108,7 +108,7 @@ _GLOBAL(__setup_cpu_e6500)
 #endif /* CONFIG_PPC_E500MC */
 
 #ifdef CONFIG_PPC32
-#ifdef CONFIG_E500
+#ifdef CONFIG_PPC_E500
 #ifndef CONFIG_PPC_E500MC
 _GLOBAL(__setup_cpu_e500v1)
 _GLOBAL(__setup_cpu_e500v2)
@@ -156,7 +156,7 @@ _GLOBAL(__setup_cpu_e5500)
        mtlr    r5
        blr
 #endif /* CONFIG_PPC_E500MC */
-#endif /* CONFIG_E500 */
+#endif /* CONFIG_PPC_E500 */
 #endif /* CONFIG_PPC32 */
 
 #ifdef CONFIG_PPC_BOOK3E_64
index 1d599df6f16906054531c6b54d6a9d50a432796c..e6d5fe3a8585847bb20ad2023ba9e36a5d6f72ec 100644 (file)
@@ -49,7 +49,7 @@
  */
        .align  12
 
-#if defined(CONFIG_PPC_BOOK3S_32) || defined(CONFIG_E500)
+#if defined(CONFIG_PPC_BOOK3S_32) || defined(CONFIG_PPC_E500)
        .globl  prepare_transfer_to_handler
 prepare_transfer_to_handler:
        /* if from kernel, check interrupted DOZE/NAP mode */
@@ -71,7 +71,7 @@ prepare_transfer_to_handler:
        lwz     r2, GPR2(r11)
        b       fast_exception_return
 _ASM_NOKPROBE_SYMBOL(prepare_transfer_to_handler)
-#endif /* CONFIG_PPC_BOOK3S_32 || CONFIG_E500 */
+#endif /* CONFIG_PPC_BOOK3S_32 || CONFIG_PPC_E500 */
 
 #if defined(CONFIG_PPC_KUEP) && defined(CONFIG_PPC_BOOK3S_32)
        .globl  __kuep_lock
index 48b168b5dc5760fd3e6c7c5091846aa4ea691399..52c0ab416326a8ee543b91292f9acf52d4801c7d 100644 (file)
@@ -912,7 +912,7 @@ get_phys_addr:
  * Global functions
  */
 
-#ifdef CONFIG_E500
+#ifdef CONFIG_PPC_E500
 #ifndef CONFIG_PPC_E500MC
 /* Adjust or setup IVORs for e500v1/v2 */
 _GLOBAL(__setup_e500_ivors)
@@ -955,7 +955,7 @@ _GLOBAL(__setup_ehv_ivors)
        sync
        blr
 #endif /* CONFIG_PPC_E500MC */
-#endif /* CONFIG_E500 */
+#endif /* CONFIG_PPC_E500 */
 
 #ifdef CONFIG_SPE
 /*
index bb6d5d0fc4ac8eb9c45ca795738344150f878868..a2f82ced6e4aacc9a84b9348375810344313eb86 100644 (file)
@@ -103,7 +103,7 @@ END_BTB_FLUSH_SECTION
 .endm
 
 .macro prepare_transfer_to_handler
-#ifdef CONFIG_E500
+#ifdef CONFIG_PPC_E500
        andi.   r12,r9,MSR_PR
        bne     777f
        bl      prepare_transfer_to_handler
index 8132617893035cfa04ae18b81e6399c691bf7740..b761cc1a403c3df4af9858758a5f635b546b0e58 100644 (file)
@@ -207,7 +207,7 @@ void __init setup_power_save(void)
                ppc_md.power_save = ppc6xx_idle;
 #endif
 
-#ifdef CONFIG_E500
+#ifdef CONFIG_PPC_E500
        if (cpu_has_feature(CPU_FTR_CAN_DOZE) ||
            cpu_has_feature(CPU_FTR_CAN_NAP))
                ppc_md.power_save = e500_idle;
index f181c434289eebacdfd28b3fb8a9bb364594f525..62ec50a7a8ef0b7c7609bedbaa2cd67da964e2fe 100644 (file)
@@ -600,7 +600,7 @@ static inline int check_io_access(struct pt_regs *regs)
 
 #define inst_length(reason)    (((reason) & REASON_PREFIXED) ? 8 : 4)
 
-#if defined(CONFIG_E500)
+#if defined(CONFIG_PPC_E500)
 int machine_check_e500mc(struct pt_regs *regs)
 {
        unsigned long mcsr = mfspr(SPRN_MCSR);
index dcb398d5e0093f69c53db0c9f07b76653aac5b67..61cdd782d3c5ec6cec8b70e9799644a6df7e2414 100644 (file)
@@ -189,7 +189,7 @@ config KVM_EXIT_TIMING
 
 config KVM_E500V2
        bool "KVM support for PowerPC E500v2 processors"
-       depends on E500 && !PPC_E500MC
+       depends on PPC_E500 && !PPC_E500MC
        select KVM
        select KVM_MMIO
        select MMU_NOTIFIER
@@ -220,7 +220,7 @@ config KVM_E500MC
 
 config KVM_MPIC
        bool "KVM in-kernel MPIC emulation"
-       depends on KVM && E500
+       depends on KVM && PPC_E500
        select HAVE_KVM_IRQCHIP
        select HAVE_KVM_IRQFD
        select HAVE_KVM_IRQ_ROUTING
index d63b6386a974e8329b2f0c05db016ae5ee63db1e..5b065186ace5f7db1318e24a9b8bfe36c0e4e593 100644 (file)
@@ -33,7 +33,7 @@ config PPC_BOOK3S_32
 
 config PPC_85xx
        bool "Freescale 85xx"
-       select E500
+       select PPC_E500
 
 config PPC_8xx
        bool "Freescale 8xx"
@@ -108,7 +108,7 @@ config PPC_BOOK3S_64
 config PPC_BOOK3E_64
        bool "Embedded processors"
        select PPC_FSL_BOOK3E
-       select E500
+       select PPC_E500
        select PPC_E500MC
        select PPC_FPU # Make it a choice ?
        select PPC_SMP_MUXED_IPI
@@ -175,11 +175,11 @@ config POWER9_CPU
 
 config E5500_CPU
        bool "Freescale e5500"
-       depends on PPC64 && E500
+       depends on PPC64 && PPC_E500
 
 config E6500_CPU
        bool "Freescale e6500"
-       depends on PPC64 && E500
+       depends on PPC64 && PPC_E500
 
 config 405_CPU
        bool "40x family"
@@ -257,7 +257,7 @@ config PPC_BOOK3S
        def_bool y
        depends on PPC_BOOK3S_32 || PPC_BOOK3S_64
 
-config E500
+config PPC_E500
        select FSL_EMB_PERFMON
        select PPC_FSL_BOOK3E
        bool
@@ -266,7 +266,7 @@ config PPC_E500MC
        bool "e500mc Support"
        select PPC_FPU
        select COMMON_CLK
-       depends on E500
+       depends on PPC_E500
        help
          This must be enabled for running on e500mc (and derivatives
          such as e5500/e6500), and must be disabled for running on
@@ -289,7 +289,7 @@ config PPC_FPU
 
 config FSL_EMB_PERFMON
        bool "Freescale Embedded Perfmon"
-       depends on E500 || PPC_83xx
+       depends on PPC_E500 || PPC_83xx
        help
          This is the Performance Monitor support found on the e500 core
          and some e300 cores (c3 and c4).  Select this only if your
@@ -302,7 +302,7 @@ config FSL_EMB_PERF_EVENT
 
 config FSL_EMB_PERF_EVENT_E500
        bool
-       depends on FSL_EMB_PERF_EVENT && E500
+       depends on FSL_EMB_PERF_EVENT && PPC_E500
        default y
 
 config 4xx
@@ -312,7 +312,7 @@ config 4xx
 
 config BOOKE
        bool
-       depends on E500 || 44x || PPC_BOOK3E_64
+       depends on PPC_E500 || 44x || PPC_BOOK3E_64
        default y
 
 config BOOKE_OR_40x
@@ -332,12 +332,12 @@ config PPC_FSL_BOOK3E
 
 config PTE_64BIT
        bool
-       depends on 44x || E500 || PPC_86xx
+       depends on 44x || PPC_E500 || PPC_86xx
        default y if PHYS_64BIT
 
 config PHYS_64BIT
-       bool 'Large physical address support' if E500 || PPC_86xx
-       depends on (44x || E500 || PPC_86xx) && !PPC_83xx && !PPC_82xx
+       bool 'Large physical address support' if PPC_E500 || PPC_86xx
+       depends on (44x || PPC_E500 || PPC_86xx) && !PPC_83xx && !PPC_82xx
        select PHYS_ADDR_T_64BIT
        help
          This option enables kernel support for larger than 32-bit physical
@@ -384,7 +384,7 @@ config VSX
 
 config SPE_POSSIBLE
        def_bool y
-       depends on E500 && !PPC_E500MC
+       depends on PPC_E500 && !PPC_E500MC
 
 config SPE
        bool "SPE Support"
index 1ef7400ef244d588d4cc7fba26ce0319772bca36..974d3db6faab237dc7d56ce5a89eb0420e8e8c31 100644 (file)
@@ -943,7 +943,7 @@ u64 fsl_pci_immrbar_base(struct pci_controller *hose)
        return 0;
 }
 
-#ifdef CONFIG_E500
+#ifdef CONFIG_PPC_E500
 static int mcheck_handle_load(struct pt_regs *regs, u32 inst)
 {
        unsigned int rd, ra, rb, d;
index 4647c6074f3b8f949ff1406bc5462938c65f69b0..c8f044d62fe2e8d7418ef200ae0f859c50e7bc51 100644 (file)
@@ -98,7 +98,7 @@ resource_size_t rio_law_start;
 struct fsl_rio_dbell *dbell;
 struct fsl_rio_pw *pw;
 
-#ifdef CONFIG_E500
+#ifdef CONFIG_PPC_E500
 int fsl_rio_mcheck_exception(struct pt_regs *regs)
 {
        const struct exception_table_entry *entry;