Commit dfc3095c authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc: Remove CONFIG_FSL_BOOKE

PPC_85xx is PPC32 only.
PPC_85xx always selects E500 and is the only PPC32 that
selects E500.
FSL_BOOKE is selected when E500 and PPC32 are selected.

So FSL_BOOKE is redundant with PPC_85xx.

Remove FSL_BOOKE.

And rename four files accordingly.

cpu_setup_fsl_booke.S is not renamed because it is linked to
PPC_FSL_BOOK3E and not to FSL_BOOKE as suggested by its name.
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/08e3e15594e66d63b9e89c5b4f9c35153913c28f.1663606875.git.christophe.leroy@csgroup.eu
parent e320a76d
...@@ -135,7 +135,7 @@ config PPC ...@@ -135,7 +135,7 @@ config PPC
select ARCH_HAS_SCALED_CPUTIME if VIRT_CPU_ACCOUNTING_NATIVE && PPC_BOOK3S_64 select ARCH_HAS_SCALED_CPUTIME if VIRT_CPU_ACCOUNTING_NATIVE && PPC_BOOK3S_64
select ARCH_HAS_SET_MEMORY 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 || 40x) && !HIBERNATION
select ARCH_HAS_STRICT_KERNEL_RWX if FSL_BOOKE && !HIBERNATION && !RANDOMIZE_BASE 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_STRICT_MODULE_RWX if ARCH_HAS_STRICT_KERNEL_RWX
select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
select ARCH_HAS_UACCESS_FLUSHCACHE select ARCH_HAS_UACCESS_FLUSHCACHE
...@@ -548,7 +548,7 @@ config PPC64_SUPPORTS_MEMORY_FAILURE ...@@ -548,7 +548,7 @@ config PPC64_SUPPORTS_MEMORY_FAILURE
config KEXEC config KEXEC
bool "kexec system call" bool "kexec system call"
depends on (PPC_BOOK3S || FSL_BOOKE || (44x && !SMP)) || PPC_BOOK3E depends on (PPC_BOOK3S || PPC_85xx || (44x && !SMP)) || PPC_BOOK3E
select KEXEC_CORE select KEXEC_CORE
help help
kexec is a system call that implements the ability to shutdown your kexec is a system call that implements the ability to shutdown your
...@@ -583,7 +583,7 @@ config ARCH_HAS_KEXEC_PURGATORY ...@@ -583,7 +583,7 @@ config ARCH_HAS_KEXEC_PURGATORY
config RELOCATABLE config RELOCATABLE
bool "Build a relocatable kernel" bool "Build a relocatable kernel"
depends on PPC64 || (FLATMEM && (44x || FSL_BOOKE)) depends on PPC64 || (FLATMEM && (44x || PPC_85xx))
select NONSTATIC_KERNEL select NONSTATIC_KERNEL
help help
This builds a kernel image that is capable of running at the This builds a kernel image that is capable of running at the
...@@ -606,7 +606,7 @@ config RELOCATABLE ...@@ -606,7 +606,7 @@ config RELOCATABLE
config RANDOMIZE_BASE config RANDOMIZE_BASE
bool "Randomize the address of the kernel image" bool "Randomize the address of the kernel image"
depends on (FSL_BOOKE && FLATMEM && PPC32) depends on (PPC_85xx && FLATMEM && PPC32)
depends on RELOCATABLE depends on RELOCATABLE
help help
Randomizes the virtual address at which the kernel image is Randomizes the virtual address at which the kernel image is
...@@ -625,8 +625,8 @@ config RELOCATABLE_TEST ...@@ -625,8 +625,8 @@ config RELOCATABLE_TEST
config CRASH_DUMP config CRASH_DUMP
bool "Build a dump capture kernel" bool "Build a dump capture kernel"
depends on PPC64 || PPC_BOOK3S_32 || FSL_BOOKE || (44x && !SMP) depends on PPC64 || PPC_BOOK3S_32 || PPC_85xx || (44x && !SMP)
select RELOCATABLE if PPC64 || 44x || FSL_BOOKE select RELOCATABLE if PPC64 || 44x || PPC_85xx
help help
Build a kernel suitable for use as a dump capture kernel. Build a kernel suitable for use as a dump capture kernel.
The same kernel binary can be used as production kernel and dump The same kernel binary can be used as production kernel and dump
...@@ -815,7 +815,7 @@ config DATA_SHIFT_BOOL ...@@ -815,7 +815,7 @@ config DATA_SHIFT_BOOL
depends on ADVANCED_OPTIONS depends on ADVANCED_OPTIONS
depends on STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE depends on STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE
depends on PPC_BOOK3S_32 || (PPC_8xx && !PIN_TLB_DATA && !STRICT_KERNEL_RWX) || \ depends on PPC_BOOK3S_32 || (PPC_8xx && !PIN_TLB_DATA && !STRICT_KERNEL_RWX) || \
FSL_BOOKE PPC_85xx
help help
This option allows you to set the kernel data alignment. When This option allows you to set the kernel data alignment. When
RAM is mapped by blocks, the alignment needs to fit the size and RAM is mapped by blocks, the alignment needs to fit the size and
...@@ -828,13 +828,13 @@ config DATA_SHIFT ...@@ -828,13 +828,13 @@ config DATA_SHIFT
default 24 if STRICT_KERNEL_RWX && PPC64 default 24 if STRICT_KERNEL_RWX && PPC64
range 17 28 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_BOOK3S_32 range 17 28 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_BOOK3S_32
range 19 23 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_8xx range 19 23 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_8xx
range 20 24 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && FSL_BOOKE range 20 24 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_85xx
default 22 if STRICT_KERNEL_RWX && PPC_BOOK3S_32 default 22 if STRICT_KERNEL_RWX && PPC_BOOK3S_32
default 18 if (DEBUG_PAGEALLOC || KFENCE) && PPC_BOOK3S_32 default 18 if (DEBUG_PAGEALLOC || KFENCE) && PPC_BOOK3S_32
default 23 if STRICT_KERNEL_RWX && PPC_8xx default 23 if STRICT_KERNEL_RWX && PPC_8xx
default 23 if (DEBUG_PAGEALLOC || KFENCE) && PPC_8xx && PIN_TLB_DATA default 23 if (DEBUG_PAGEALLOC || KFENCE) && PPC_8xx && PIN_TLB_DATA
default 19 if (DEBUG_PAGEALLOC || KFENCE) && PPC_8xx default 19 if (DEBUG_PAGEALLOC || KFENCE) && PPC_8xx
default 24 if STRICT_KERNEL_RWX && FSL_BOOKE default 24 if STRICT_KERNEL_RWX && PPC_85xx
default PPC_PAGE_SHIFT default PPC_PAGE_SHIFT
help help
On Book3S 32 (603+), DBATs are used to map kernel text and rodata RO. On Book3S 32 (603+), DBATs are used to map kernel text and rodata RO.
...@@ -1150,7 +1150,7 @@ config LOWMEM_SIZE ...@@ -1150,7 +1150,7 @@ config LOWMEM_SIZE
config LOWMEM_CAM_NUM_BOOL config LOWMEM_CAM_NUM_BOOL
bool "Set number of CAMs to use to map low memory" bool "Set number of CAMs to use to map low memory"
depends on ADVANCED_OPTIONS && FSL_BOOKE depends on ADVANCED_OPTIONS && PPC_85xx
help help
This option allows you to set the maximum number of CAM slots that This option allows you to set the maximum number of CAM slots that
will be used to map low memory. There are a limited number of slots will be used to map low memory. There are a limited number of slots
...@@ -1161,7 +1161,7 @@ config LOWMEM_CAM_NUM_BOOL ...@@ -1161,7 +1161,7 @@ config LOWMEM_CAM_NUM_BOOL
Say N here unless you know what you are doing. Say N here unless you know what you are doing.
config LOWMEM_CAM_NUM config LOWMEM_CAM_NUM
depends on FSL_BOOKE depends on PPC_85xx
int "Number of CAMs to use to map low memory" if LOWMEM_CAM_NUM_BOOL int "Number of CAMs to use to map low memory" if LOWMEM_CAM_NUM_BOOL
default 3 if !STRICT_KERNEL_RWX default 3 if !STRICT_KERNEL_RWX
default 9 if DATA_SHIFT >= 24 default 9 if DATA_SHIFT >= 24
...@@ -1170,7 +1170,7 @@ config LOWMEM_CAM_NUM ...@@ -1170,7 +1170,7 @@ config LOWMEM_CAM_NUM
config DYNAMIC_MEMSTART config DYNAMIC_MEMSTART
bool "Enable page aligned dynamic load address for kernel" bool "Enable page aligned dynamic load address for kernel"
depends on ADVANCED_OPTIONS && FLATMEM && (FSL_BOOKE || 44x) depends on ADVANCED_OPTIONS && FLATMEM && (PPC_85xx || 44x)
select NONSTATIC_KERNEL select NONSTATIC_KERNEL
help help
This option enables the kernel to be loaded at any page aligned This option enables the kernel to be loaded at any page aligned
...@@ -1219,7 +1219,7 @@ config KERNEL_START ...@@ -1219,7 +1219,7 @@ config KERNEL_START
config PHYSICAL_START_BOOL config PHYSICAL_START_BOOL
bool "Set physical address where the kernel is loaded" bool "Set physical address where the kernel is loaded"
depends on ADVANCED_OPTIONS && FLATMEM && FSL_BOOKE depends on ADVANCED_OPTIONS && FLATMEM && PPC_85xx
help help
This gives the physical address where the kernel is loaded. This gives the physical address where the kernel is loaded.
...@@ -1232,7 +1232,7 @@ config PHYSICAL_START ...@@ -1232,7 +1232,7 @@ config PHYSICAL_START
config PHYSICAL_ALIGN config PHYSICAL_ALIGN
hex hex
default "0x04000000" if FSL_BOOKE default "0x04000000" if PPC_85xx
help help
This value puts the alignment restrictions on physical address This value puts the alignment restrictions on physical address
where kernel is loaded and run from. Kernel is compiled for an where kernel is loaded and run from. Kernel is compiled for an
......
...@@ -231,7 +231,7 @@ head-$(CONFIG_PPC_BOOK3S_32) := arch/powerpc/kernel/head_book3s_32.o ...@@ -231,7 +231,7 @@ head-$(CONFIG_PPC_BOOK3S_32) := arch/powerpc/kernel/head_book3s_32.o
head-$(CONFIG_PPC_8xx) := arch/powerpc/kernel/head_8xx.o head-$(CONFIG_PPC_8xx) := arch/powerpc/kernel/head_8xx.o
head-$(CONFIG_40x) := arch/powerpc/kernel/head_40x.o head-$(CONFIG_40x) := arch/powerpc/kernel/head_40x.o
head-$(CONFIG_44x) := arch/powerpc/kernel/head_44x.o head-$(CONFIG_44x) := arch/powerpc/kernel/head_44x.o
head-$(CONFIG_FSL_BOOKE) := arch/powerpc/kernel/head_fsl_booke.o head-$(CONFIG_PPC_85xx) := arch/powerpc/kernel/head_85xx.o
head-$(CONFIG_PPC64) += arch/powerpc/kernel/entry_64.o head-$(CONFIG_PPC64) += arch/powerpc/kernel/entry_64.o
head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#define _ASM_POWERPC_KEXEC_H #define _ASM_POWERPC_KEXEC_H
#ifdef __KERNEL__ #ifdef __KERNEL__
#if defined(CONFIG_FSL_BOOKE) || defined(CONFIG_44x) #if defined(CONFIG_PPC_85xx) || defined(CONFIG_44x)
/* /*
* On FSL-BookE we setup a 1:1 mapping which covers the first 2GiB of memory * On FSL-BookE we setup a 1:1 mapping which covers the first 2GiB of memory
......
...@@ -130,10 +130,10 @@ void unmap_kernel_page(unsigned long va); ...@@ -130,10 +130,10 @@ void unmap_kernel_page(unsigned long va);
#include <asm/nohash/32/pte-40x.h> #include <asm/nohash/32/pte-40x.h>
#elif defined(CONFIG_44x) #elif defined(CONFIG_44x)
#include <asm/nohash/32/pte-44x.h> #include <asm/nohash/32/pte-44x.h>
#elif defined(CONFIG_FSL_BOOKE) && defined(CONFIG_PTE_64BIT) #elif defined(CONFIG_PPC_85xx) && defined(CONFIG_PTE_64BIT)
#include <asm/nohash/pte-book3e.h> #include <asm/nohash/pte-book3e.h>
#elif defined(CONFIG_FSL_BOOKE) #elif defined(CONFIG_PPC_85xx)
#include <asm/nohash/32/pte-fsl-booke.h> #include <asm/nohash/32/pte-85xx.h>
#elif defined(CONFIG_PPC_8xx) #elif defined(CONFIG_PPC_8xx)
#include <asm/nohash/32/pte-8xx.h> #include <asm/nohash/32/pte-8xx.h>
#endif #endif
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_POWERPC_NOHASH_32_PTE_FSL_BOOKE_H #ifndef _ASM_POWERPC_NOHASH_32_PTE_85xx_H
#define _ASM_POWERPC_NOHASH_32_PTE_FSL_BOOKE_H #define _ASM_POWERPC_NOHASH_32_PTE_85xx_H
#ifdef __KERNEL__ #ifdef __KERNEL__
/* PTE bit definitions for Freescale BookE SW loaded TLB MMU based /* PTE bit definitions for Freescale BookE SW loaded TLB MMU based
...@@ -71,4 +71,4 @@ ...@@ -71,4 +71,4 @@
#define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_NOHASH_32_PTE_FSL_BOOKE_H */ #endif /* _ASM_POWERPC_NOHASH_32_PTE_FSL_85xx_H */
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
/* /*
* TLB flushing for software loaded TLB chips * TLB flushing for software loaded TLB chips
* *
* TODO: (CONFIG_FSL_BOOKE) determine if flush_tlb_range & * TODO: (CONFIG_PPC_85xx) determine if flush_tlb_range &
* flush_tlb_kernel_range are best implemented as tlbia vs * flush_tlb_kernel_range are best implemented as tlbia vs
* specific tlbie's * specific tlbie's
*/ */
......
...@@ -106,8 +106,8 @@ endif ...@@ -106,8 +106,8 @@ endif
obj-$(CONFIG_PPC_BOOK3S_32) += idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o obj-$(CONFIG_PPC_BOOK3S_32) += idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o
obj-$(CONFIG_TAU) += tau_6xx.o obj-$(CONFIG_TAU) += tau_6xx.o
obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o
ifdef CONFIG_FSL_BOOKE ifdef CONFIG_PPC_85xx
obj-$(CONFIG_HIBERNATION) += swsusp_booke.o obj-$(CONFIG_HIBERNATION) += swsusp_85xx.o
else else
obj-$(CONFIG_HIBERNATION) += swsusp_$(BITS).o obj-$(CONFIG_HIBERNATION) += swsusp_$(BITS).o
endif endif
...@@ -122,7 +122,7 @@ extra-$(CONFIG_PPC64) := head_64.o ...@@ -122,7 +122,7 @@ extra-$(CONFIG_PPC64) := head_64.o
extra-$(CONFIG_PPC_BOOK3S_32) := head_book3s_32.o extra-$(CONFIG_PPC_BOOK3S_32) := head_book3s_32.o
extra-$(CONFIG_40x) := head_40x.o extra-$(CONFIG_40x) := head_40x.o
extra-$(CONFIG_44x) := head_44x.o extra-$(CONFIG_44x) := head_44x.o
extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o extra-$(CONFIG_PPC_85xx) := head_85xx.o
extra-$(CONFIG_PPC_8xx) := head_8xx.o extra-$(CONFIG_PPC_8xx) := head_8xx.o
extra-y += vmlinux.lds extra-y += vmlinux.lds
......
...@@ -129,7 +129,7 @@ _GLOBAL(_start); ...@@ -129,7 +129,7 @@ _GLOBAL(_start);
/* /*
* For the second relocation, we already set the right tlb entries * For the second relocation, we already set the right tlb entries
* for the kernel space, so skip the code in fsl_booke_entry_mapping.S * for the kernel space, so skip the code in 85xx_entry_mapping.S
*/ */
cmpwi r19,1 cmpwi r19,1
beq set_ivor beq set_ivor
...@@ -159,7 +159,7 @@ _GLOBAL(__early_start) ...@@ -159,7 +159,7 @@ _GLOBAL(__early_start)
lwz r20,0(r20) lwz r20,0(r20)
#define ENTRY_MAPPING_BOOT_SETUP #define ENTRY_MAPPING_BOOT_SETUP
#include "fsl_booke_entry_mapping.S" #include "85xx_entry_mapping.S"
#undef ENTRY_MAPPING_BOOT_SETUP #undef ENTRY_MAPPING_BOOT_SETUP
set_ivor: set_ivor:
......
...@@ -47,7 +47,7 @@ static struct hard_trap_info ...@@ -47,7 +47,7 @@ static struct hard_trap_info
{ 0x0c00, 0x14 /* SIGCHLD */ }, /* system call */ { 0x0c00, 0x14 /* SIGCHLD */ }, /* system call */
#ifdef CONFIG_BOOKE_OR_40x #ifdef CONFIG_BOOKE_OR_40x
{ 0x2002, 0x05 /* SIGTRAP */ }, /* debug */ { 0x2002, 0x05 /* SIGTRAP */ }, /* debug */
#if defined(CONFIG_FSL_BOOKE) #if defined(CONFIG_PPC_85xx)
{ 0x2010, 0x08 /* SIGFPE */ }, /* spe unavailable */ { 0x2010, 0x08 /* SIGFPE */ }, /* spe unavailable */
{ 0x2020, 0x08 /* SIGFPE */ }, /* spe unavailable */ { 0x2020, 0x08 /* SIGFPE */ }, /* spe unavailable */
{ 0x2030, 0x08 /* SIGFPE */ }, /* spe fp data */ { 0x2030, 0x08 /* SIGFPE */ }, /* spe fp data */
...@@ -57,7 +57,7 @@ static struct hard_trap_info ...@@ -57,7 +57,7 @@ static struct hard_trap_info
{ 0x2900, 0x08 /* SIGFPE */ }, /* apu unavailable */ { 0x2900, 0x08 /* SIGFPE */ }, /* apu unavailable */
{ 0x3100, 0x0e /* SIGALRM */ }, /* fixed interval timer */ { 0x3100, 0x0e /* SIGALRM */ }, /* fixed interval timer */
{ 0x3200, 0x02 /* SIGINT */ }, /* watchdog */ { 0x3200, 0x02 /* SIGINT */ }, /* watchdog */
#else /* ! CONFIG_FSL_BOOKE */ #else /* ! CONFIG_PPC_85xx */
{ 0x1000, 0x0e /* SIGALRM */ }, /* prog interval timer */ { 0x1000, 0x0e /* SIGALRM */ }, /* prog interval timer */
{ 0x1010, 0x0e /* SIGALRM */ }, /* fixed interval timer */ { 0x1010, 0x0e /* SIGALRM */ }, /* fixed interval timer */
{ 0x1020, 0x02 /* SIGINT */ }, /* watchdog */ { 0x1020, 0x02 /* SIGINT */ }, /* watchdog */
...@@ -208,7 +208,7 @@ void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) ...@@ -208,7 +208,7 @@ void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p)
for (reg = 14; reg < 32; reg++) for (reg = 14; reg < 32; reg++)
PACK64(ptr, regs->gpr[reg]); PACK64(ptr, regs->gpr[reg]);
#ifdef CONFIG_FSL_BOOKE #ifdef CONFIG_PPC_85xx
#ifdef CONFIG_SPE #ifdef CONFIG_SPE
for (reg = 0; reg < 32; reg++) for (reg = 0; reg < 32; reg++)
PACK64(ptr, p->thread.evr[reg]); PACK64(ptr, p->thread.evr[reg]);
...@@ -234,7 +234,7 @@ void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) ...@@ -234,7 +234,7 @@ void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p)
#define GDB_SIZEOF_REG sizeof(unsigned long) #define GDB_SIZEOF_REG sizeof(unsigned long)
#define GDB_SIZEOF_REG_U32 sizeof(u32) #define GDB_SIZEOF_REG_U32 sizeof(u32)
#ifdef CONFIG_FSL_BOOKE #ifdef CONFIG_PPC_85xx
#define GDB_SIZEOF_FLOAT_REG sizeof(unsigned long) #define GDB_SIZEOF_FLOAT_REG sizeof(unsigned long)
#else #else
#define GDB_SIZEOF_FLOAT_REG sizeof(u64) #define GDB_SIZEOF_FLOAT_REG sizeof(u64)
...@@ -329,7 +329,7 @@ char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) ...@@ -329,7 +329,7 @@ char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)
if (regno >= 32 && regno < 64) { if (regno >= 32 && regno < 64) {
/* FP registers 32 -> 63 */ /* FP registers 32 -> 63 */
#if defined(CONFIG_FSL_BOOKE) && defined(CONFIG_SPE) #if defined(CONFIG_PPC_85xx) && defined(CONFIG_SPE)
if (current) if (current)
memcpy(mem, &current->thread.evr[regno-32], memcpy(mem, &current->thread.evr[regno-32],
dbg_reg_def[regno].size); dbg_reg_def[regno].size);
...@@ -355,7 +355,7 @@ int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) ...@@ -355,7 +355,7 @@ int dbg_set_reg(int regno, void *mem, struct pt_regs *regs)
if (regno >= 32 && regno < 64) { if (regno >= 32 && regno < 64) {
/* FP registers 32 -> 63 */ /* FP registers 32 -> 63 */
#if defined(CONFIG_FSL_BOOKE) && defined(CONFIG_SPE) #if defined(CONFIG_PPC_85xx) && defined(CONFIG_SPE)
memcpy(&current->thread.evr[regno-32], mem, memcpy(&current->thread.evr[regno-32], mem,
dbg_reg_def[regno].size); dbg_reg_def[regno].size);
#else #else
......
...@@ -2085,7 +2085,7 @@ DEFINE_INTERRUPT_HANDLER(altivec_assist_exception) ...@@ -2085,7 +2085,7 @@ DEFINE_INTERRUPT_HANDLER(altivec_assist_exception)
} }
#endif /* CONFIG_ALTIVEC */ #endif /* CONFIG_ALTIVEC */
#ifdef CONFIG_FSL_BOOKE #ifdef CONFIG_PPC_85xx
DEFINE_INTERRUPT_HANDLER(CacheLockingException) DEFINE_INTERRUPT_HANDLER(CacheLockingException)
{ {
unsigned long error_code = regs->dsisr; unsigned long error_code = regs->dsisr;
...@@ -2098,7 +2098,7 @@ DEFINE_INTERRUPT_HANDLER(CacheLockingException) ...@@ -2098,7 +2098,7 @@ DEFINE_INTERRUPT_HANDLER(CacheLockingException)
_exception(SIGILL, regs, ILL_PRVOPC, regs->nip); _exception(SIGILL, regs, ILL_PRVOPC, regs->nip);
return; return;
} }
#endif /* CONFIG_FSL_BOOKE */ #endif /* CONFIG_PPC_85xx */
#ifdef CONFIG_SPE #ifdef CONFIG_SPE
DEFINE_INTERRUPT_HANDLER(SPEFloatingPointException) DEFINE_INTERRUPT_HANDLER(SPEFloatingPointException)
......
...@@ -55,7 +55,7 @@ void default_machine_kexec(struct kimage *image) ...@@ -55,7 +55,7 @@ void default_machine_kexec(struct kimage *image)
reboot_code_buffer + KEXEC_CONTROL_PAGE_SIZE); reboot_code_buffer + KEXEC_CONTROL_PAGE_SIZE);
printk(KERN_INFO "Bye!\n"); printk(KERN_INFO "Bye!\n");
if (!IS_ENABLED(CONFIG_FSL_BOOKE) && !IS_ENABLED(CONFIG_44x)) if (!IS_ENABLED(CONFIG_PPC_85xx) && !IS_ENABLED(CONFIG_44x))
relocate_new_kernel(page_list, reboot_code_buffer_phys, image->start); relocate_new_kernel(page_list, reboot_code_buffer_phys, image->start);
/* now call it */ /* now call it */
......
...@@ -25,14 +25,14 @@ relocate_new_kernel: ...@@ -25,14 +25,14 @@ relocate_new_kernel:
/* r4 = reboot_code_buffer */ /* r4 = reboot_code_buffer */
/* r5 = start_address */ /* r5 = start_address */
#ifdef CONFIG_FSL_BOOKE #ifdef CONFIG_PPC_85xx
mr r29, r3 mr r29, r3
mr r30, r4 mr r30, r4
mr r31, r5 mr r31, r5
#define ENTRY_MAPPING_KEXEC_SETUP #define ENTRY_MAPPING_KEXEC_SETUP
#include <kernel/fsl_booke_entry_mapping.S> #include <kernel/85xx_entry_mapping.S>
#undef ENTRY_MAPPING_KEXEC_SETUP #undef ENTRY_MAPPING_KEXEC_SETUP
mr r3, r29 mr r3, r29
......
...@@ -223,7 +223,7 @@ _GLOBAL(kvmppc_resume_host) ...@@ -223,7 +223,7 @@ _GLOBAL(kvmppc_resume_host)
lwz r3, VCPU_HOST_PID(r4) lwz r3, VCPU_HOST_PID(r4)
mtspr SPRN_PID, r3 mtspr SPRN_PID, r3
#ifdef CONFIG_FSL_BOOKE #ifdef CONFIG_PPC_85xx
/* we cheat and know that Linux doesn't use PID1 which is always 0 */ /* we cheat and know that Linux doesn't use PID1 which is always 0 */
lis r3, 0 lis r3, 0
mtspr SPRN_PID1, r3 mtspr SPRN_PID1, r3
...@@ -406,7 +406,7 @@ lightweight_exit: ...@@ -406,7 +406,7 @@ lightweight_exit:
lwz r3, VCPU_SHADOW_PID(r4) lwz r3, VCPU_SHADOW_PID(r4)
mtspr SPRN_PID, r3 mtspr SPRN_PID, r3
#ifdef CONFIG_FSL_BOOKE #ifdef CONFIG_PPC_85xx
lwz r3, VCPU_SHADOW_PID1(r4) lwz r3, VCPU_SHADOW_PID1(r4)
mtspr SPRN_PID1, r3 mtspr SPRN_PID1, r3
#endif #endif
......
...@@ -85,12 +85,12 @@ void __init MMU_init(void) ...@@ -85,12 +85,12 @@ void __init MMU_init(void)
total_lowmem = total_memory = memblock_end_of_DRAM() - memstart_addr; total_lowmem = total_memory = memblock_end_of_DRAM() - memstart_addr;
lowmem_end_addr = memstart_addr + total_lowmem; lowmem_end_addr = memstart_addr + total_lowmem;
#ifdef CONFIG_FSL_BOOKE #ifdef CONFIG_PPC_85xx
/* Freescale Book-E parts expect lowmem to be mapped by fixed TLB /* Freescale Book-E parts expect lowmem to be mapped by fixed TLB
* entries, so we need to adjust lowmem to match the amount we can map * entries, so we need to adjust lowmem to match the amount we can map
* in the fixed entries */ * in the fixed entries */
adjust_total_lowmem(); adjust_total_lowmem();
#endif /* CONFIG_FSL_BOOKE */ #endif /* CONFIG_PPC_85xx */
if (total_lowmem > __max_low_memory) { if (total_lowmem > __max_low_memory) {
total_lowmem = __max_low_memory; total_lowmem = __max_low_memory;
......
...@@ -146,9 +146,9 @@ struct tlbcam { ...@@ -146,9 +146,9 @@ struct tlbcam {
extern struct tlbcam TLBCAM[NUM_TLBCAMS]; extern struct tlbcam TLBCAM[NUM_TLBCAMS];
#endif #endif
#if defined(CONFIG_PPC_BOOK3S_32) || defined(CONFIG_FSL_BOOKE) || defined(CONFIG_PPC_8xx) #if defined(CONFIG_PPC_BOOK3S_32) || defined(CONFIG_PPC_85xx) || defined(CONFIG_PPC_8xx)
/* 6xx have BATS */ /* 6xx have BATS */
/* FSL_BOOKE have TLBCAM */ /* PPC_85xx have TLBCAM */
/* 8xx have LTLB */ /* 8xx have LTLB */
phys_addr_t v_block_mapped(unsigned long va); phys_addr_t v_block_mapped(unsigned long va);
unsigned long p_block_mapped(phys_addr_t pa); unsigned long p_block_mapped(phys_addr_t pa);
......
...@@ -59,7 +59,7 @@ static struct { ...@@ -59,7 +59,7 @@ static struct {
phys_addr_t phys; phys_addr_t phys;
} tlbcam_addrs[NUM_TLBCAMS]; } tlbcam_addrs[NUM_TLBCAMS];
#ifdef CONFIG_FSL_BOOKE #ifdef CONFIG_PPC_85xx
/* /*
* Return PA for this VA if it is mapped by a CAM, or 0 * Return PA for this VA if it is mapped by a CAM, or 0
*/ */
......
...@@ -130,7 +130,7 @@ struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = { ...@@ -130,7 +130,7 @@ struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = {
.enc = BOOK3E_PAGESZ_1GB, .enc = BOOK3E_PAGESZ_1GB,
}, },
}; };
#endif /* CONFIG_FSL_BOOKE */ #endif /* CONFIG_PPC_85xx */
static inline int mmu_get_tsize(int psize) static inline int mmu_get_tsize(int psize)
{ {
......
...@@ -221,7 +221,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_476_DD2) ...@@ -221,7 +221,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_476_DD2)
blr blr
#endif /* CONFIG_PPC_47x */ #endif /* CONFIG_PPC_47x */
#elif defined(CONFIG_FSL_BOOKE) #elif defined(CONFIG_PPC_85xx)
/* /*
* FSL BookE implementations. * FSL BookE implementations.
* *
......
...@@ -324,11 +324,6 @@ config BOOKE_OR_40x ...@@ -324,11 +324,6 @@ config BOOKE_OR_40x
depends on BOOKE || 40x depends on BOOKE || 40x
default y default y
config FSL_BOOKE
bool
depends on E500 && PPC32
default y
# this is for common code between PPC32 & PPC64 FSL BOOKE # this is for common code between PPC32 & PPC64 FSL BOOKE
config PPC_FSL_BOOK3E config PPC_FSL_BOOK3E
bool bool
...@@ -337,7 +332,7 @@ config PPC_FSL_BOOK3E ...@@ -337,7 +332,7 @@ config PPC_FSL_BOOK3E
select PPC_SMP_MUXED_IPI select PPC_SMP_MUXED_IPI
select PPC_DOORBELL select PPC_DOORBELL
select PPC_KUEP select PPC_KUEP
default y if FSL_BOOKE default y if PPC_85xx
config PTE_64BIT config PTE_64BIT
bool bool
...@@ -485,7 +480,7 @@ config PPC_MMU_NOHASH ...@@ -485,7 +480,7 @@ config PPC_MMU_NOHASH
config PPC_BOOK3E_MMU config PPC_BOOK3E_MMU
def_bool y def_bool y
depends on FSL_BOOKE || PPC_BOOK3E depends on PPC_85xx || PPC_BOOK3E
config PPC_HAVE_PMU_SUPPORT config PPC_HAVE_PMU_SUPPORT
bool bool
...@@ -508,7 +503,7 @@ config FORCE_SMP ...@@ -508,7 +503,7 @@ config FORCE_SMP
select SMP select SMP
config SMP config SMP
depends on PPC_BOOK3S || PPC_BOOK3E || FSL_BOOKE || PPC_47x depends on PPC_BOOK3S || PPC_BOOK3E || PPC_85xx || PPC_47x
select GENERIC_IRQ_MIGRATION select GENERIC_IRQ_MIGRATION
bool "Symmetric multi-processing support" if !FORCE_SMP bool "Symmetric multi-processing support" if !FORCE_SMP
help help
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment