1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org)
5 * Modifications for ppc64:
6 * Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com>
10 #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
11 PPC_FEATURE_HAS_FPU | PPC_FEATURE_64 | \
14 #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
18 static struct cpu_spec cpu_specs[] __initdata = {
21 .pvr_mask = 0xffff0000,
22 .pvr_value = 0x80230000,
24 .cpu_features = CPU_FTRS_E500MC,
25 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
26 .cpu_user_features2 = PPC_FEATURE2_ISEL,
27 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS | MMU_FTR_USE_TLBILX,
31 .cpu_setup = __setup_cpu_e500mc,
32 .machine_check = machine_check_e500mc,
33 .platform = "ppce500mc",
34 .cpu_down_flush = cpu_down_flush_e500mc,
36 #endif /* CONFIG_PPC32 */
38 .pvr_mask = 0xffff0000,
39 .pvr_value = 0x80240000,
41 .cpu_features = CPU_FTRS_E5500,
42 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
43 .cpu_user_features2 = PPC_FEATURE2_ISEL,
44 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS | MMU_FTR_USE_TLBILX,
48 .cpu_setup = __setup_cpu_e5500,
50 .cpu_restore = __restore_cpu_e5500,
52 .machine_check = machine_check_e500mc,
53 .platform = "ppce5500",
54 .cpu_down_flush = cpu_down_flush_e5500,
57 .pvr_mask = 0xffff0000,
58 .pvr_value = 0x80400000,
60 .cpu_features = CPU_FTRS_E6500,
61 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU |
62 PPC_FEATURE_HAS_ALTIVEC_COMP,
63 .cpu_user_features2 = PPC_FEATURE2_ISEL,
64 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS | MMU_FTR_USE_TLBILX,
68 .cpu_setup = __setup_cpu_e6500,
70 .cpu_restore = __restore_cpu_e6500,
72 .machine_check = machine_check_e500mc,
73 .platform = "ppce6500",
74 .cpu_down_flush = cpu_down_flush_e6500,