johpow01 | a3810e8 | 2021-05-18 15:23:31 -0500 | [diff] [blame] | 1 | /* |
Harrison Mutai | e5249fe | 2022-12-09 12:14:25 +0000 | [diff] [blame] | 2 | * Copyright (c) 2023, Arm Limited. All rights reserved. |
johpow01 | a3810e8 | 2021-05-18 15:23:31 -0500 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <arch.h> |
| 8 | #include <asm_macros.S> |
| 9 | #include <common/bl_common.h> |
| 10 | #include <cortex_a510.h> |
| 11 | #include <cpu_macros.S> |
| 12 | #include <plat_macros.S> |
| 13 | |
| 14 | /* Hardware handled coherency */ |
| 15 | #if HW_ASSISTED_COHERENCY == 0 |
johpow01 | de7b524 | 2022-01-04 16:15:18 -0600 | [diff] [blame] | 16 | #error "Cortex-A510 must be compiled with HW_ASSISTED_COHERENCY enabled" |
johpow01 | a3810e8 | 2021-05-18 15:23:31 -0500 | [diff] [blame] | 17 | #endif |
| 18 | |
| 19 | /* 64-bit only core */ |
| 20 | #if CTX_INCLUDE_AARCH32_REGS == 1 |
johpow01 | de7b524 | 2022-01-04 16:15:18 -0600 | [diff] [blame] | 21 | #error "Cortex-A510 supports only AArch64. Compile with CTX_INCLUDE_AARCH32_REGS=0" |
johpow01 | a3810e8 | 2021-05-18 15:23:31 -0500 | [diff] [blame] | 22 | #endif |
| 23 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 24 | workaround_reset_start cortex_a510, ERRATUM(1922240), ERRATA_A510_1922240 |
johpow01 | de7b524 | 2022-01-04 16:15:18 -0600 | [diff] [blame] | 25 | /* Apply the workaround by setting IMP_CMPXACTLR_EL1[11:10] = 0b11. */ |
Jayanth Dodderi Chidanand | 399472c | 2023-04-11 21:58:21 +0100 | [diff] [blame] | 26 | sysreg_bitfield_insert CORTEX_A510_CMPXACTLR_EL1, CORTEX_A510_CMPXACTLR_EL1_SNPPREFERUNIQUE_DISABLE, \ |
| 27 | CORTEX_A510_CMPXACTLR_EL1_SNPPREFERUNIQUE_SHIFT, CORTEX_A510_CMPXACTLR_EL1_SNPPREFERUNIQUE_WIDTH |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 28 | workaround_reset_end cortex_a510, ERRATUM(1922240) |
johpow01 | de7b524 | 2022-01-04 16:15:18 -0600 | [diff] [blame] | 29 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 30 | check_erratum_ls cortex_a510, ERRATUM(1922240), CPU_REV(0, 0) |
johpow01 | de7b524 | 2022-01-04 16:15:18 -0600 | [diff] [blame] | 31 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 32 | workaround_reset_start cortex_a510, ERRATUM(2041909), ERRATA_A510_2041909 |
johpow01 | 5a99300 | 2022-01-11 17:54:41 -0600 | [diff] [blame] | 33 | /* Apply workaround */ |
| 34 | mov x0, xzr |
| 35 | msr S3_6_C15_C4_0, x0 |
| 36 | isb |
| 37 | |
| 38 | mov x0, #0x8500000 |
| 39 | msr S3_6_C15_C4_2, x0 |
| 40 | |
| 41 | mov x0, #0x1F700000 |
| 42 | movk x0, #0x8, lsl #32 |
| 43 | msr S3_6_C15_C4_3, x0 |
| 44 | |
| 45 | mov x0, #0x3F1 |
| 46 | movk x0, #0x110, lsl #16 |
| 47 | msr S3_6_C15_C4_1, x0 |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 48 | workaround_reset_end cortex_a510, ERRATUM(2041909) |
johpow01 | 5a99300 | 2022-01-11 17:54:41 -0600 | [diff] [blame] | 49 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 50 | check_erratum_range cortex_a510, ERRATUM(2041909), CPU_REV(0, 2), CPU_REV(0, 2) |
johpow01 | 5a99300 | 2022-01-11 17:54:41 -0600 | [diff] [blame] | 51 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 52 | workaround_reset_start cortex_a510, ERRATUM(2042739), ERRATA_A510_2042739 |
Jayanth Dodderi Chidanand | 16e5ca2 | 2023-04-11 11:42:53 +0100 | [diff] [blame] | 53 | /* Apply the workaround by disabling ReadPreferUnique. */ |
Jayanth Dodderi Chidanand | 399472c | 2023-04-11 21:58:21 +0100 | [diff] [blame] | 54 | sysreg_bitfield_insert CORTEX_A510_CPUECTLR_EL1, CORTEX_A510_CPUECTLR_EL1_READPREFERUNIQUE_DISABLE, \ |
| 55 | CORTEX_A510_CPUECTLR_EL1_READPREFERUNIQUE_SHIFT, CORTEX_A510_CPUECTLR_EL1_READPREFERUNIQUE_WIDTH |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 56 | workaround_reset_end cortex_a510, ERRATUM(2042739) |
Jayanth Dodderi Chidanand | 16e5ca2 | 2023-04-11 11:42:53 +0100 | [diff] [blame] | 57 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 58 | check_erratum_ls cortex_a510, ERRATUM(2042739), CPU_REV(0, 2) |
Jayanth Dodderi Chidanand | 16e5ca2 | 2023-04-11 11:42:53 +0100 | [diff] [blame] | 59 | |
Sona Mathew | d273f76 | 2023-10-12 12:04:53 -0500 | [diff] [blame] | 60 | workaround_reset_start cortex_a510, ERRATUM(2080326), ERRATA_A510_2080326 |
| 61 | /* Apply workaround */ |
| 62 | mov x0, #1 |
| 63 | msr S3_6_C15_C4_0, x0 |
| 64 | isb |
| 65 | |
| 66 | mov x0, #0x0100 |
| 67 | movk x0, #0x0E08, lsl #16 |
| 68 | msr S3_6_C15_C4_2, x0 |
| 69 | |
| 70 | mov x0, #0x0300 |
| 71 | movk x0, #0x0F1F, lsl #16 |
| 72 | movk x0, #0x0008, lsl #32 |
| 73 | msr S3_6_C15_C4_3, x0 |
| 74 | |
| 75 | mov x0, #0x03F1 |
| 76 | movk x0, #0x00C0, lsl #16 |
| 77 | msr S3_6_C15_C4_1, x0 |
| 78 | |
| 79 | isb |
| 80 | workaround_reset_end cortex_a510, ERRATUM(2080326) |
| 81 | |
| 82 | check_erratum_range cortex_a510, ERRATUM(2080326), CPU_REV(0, 2), CPU_REV(0, 2) |
| 83 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 84 | workaround_reset_start cortex_a510, ERRATUM(2172148), ERRATA_A510_2172148 |
Jayanth Dodderi Chidanand | 16e5ca2 | 2023-04-11 11:42:53 +0100 | [diff] [blame] | 85 | /* |
| 86 | * Force L2 allocation of transient lines by setting |
| 87 | * CPUECTLR_EL1.RSCTL=0b01 and CPUECTLR_EL1.NTCTL=0b01. |
| 88 | */ |
| 89 | mrs x0, CORTEX_A510_CPUECTLR_EL1 |
| 90 | mov x1, #1 |
| 91 | bfi x0, x1, #CORTEX_A510_CPUECTLR_EL1_RSCTL_SHIFT, #2 |
| 92 | bfi x0, x1, #CORTEX_A510_CPUECTLR_EL1_NTCTL_SHIFT, #2 |
| 93 | msr CORTEX_A510_CPUECTLR_EL1, x0 |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 94 | workaround_reset_end cortex_a510, ERRATUM(2172148) |
johpow01 | 3ba9cb2 | 2022-02-13 21:00:10 -0600 | [diff] [blame] | 95 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 96 | check_erratum_ls cortex_a510, ERRATUM(2172148), CPU_REV(1, 0) |
johpow01 | 3ba9cb2 | 2022-02-13 21:00:10 -0600 | [diff] [blame] | 97 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 98 | workaround_reset_start cortex_a510, ERRATUM(2218950), ERRATA_A510_2218950 |
johpow01 | 3ead295 | 2022-02-14 20:19:08 -0600 | [diff] [blame] | 99 | /* Set bit 18 in CPUACTLR_EL1 */ |
Jayanth Dodderi Chidanand | 399472c | 2023-04-11 21:58:21 +0100 | [diff] [blame] | 100 | sysreg_bitfield_insert CORTEX_A510_CPUACTLR_EL1, CORTEX_A510_CPUACTLR_EL1_ALIAS_LOADSTORE_DISABLE, \ |
| 101 | CORTEX_A510_CPUACTLR_EL1_ALIAS_LOADSTORE_SHIFT, CORTEX_A510_CPUACTLR_EL1_ALIAS_LOADSTORE_WIDTH |
johpow01 | 3ead295 | 2022-02-14 20:19:08 -0600 | [diff] [blame] | 102 | |
| 103 | /* Set bit 25 in CMPXACTLR_EL1 */ |
Jayanth Dodderi Chidanand | 399472c | 2023-04-11 21:58:21 +0100 | [diff] [blame] | 104 | sysreg_bitfield_insert CORTEX_A510_CMPXACTLR_EL1, CORTEX_A510_CMPXACTLR_EL1_ALIAS_LOADSTORE_DISABLE, \ |
| 105 | CORTEX_A510_CMPXACTLR_EL1_ALIAS_LOADSTORE_SHIFT, CORTEX_A510_CMPXACTLR_EL1_ALIAS_LOADSTORE_WIDTH |
| 106 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 107 | workaround_reset_end cortex_a510, ERRATUM(2218950) |
johpow01 | 3ead295 | 2022-02-14 20:19:08 -0600 | [diff] [blame] | 108 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 109 | check_erratum_ls cortex_a510, ERRATUM(2218950), CPU_REV(1, 0) |
johpow01 | 3ead295 | 2022-02-14 20:19:08 -0600 | [diff] [blame] | 110 | |
johpow01 | ac55c01 | 2022-02-15 22:55:22 -0600 | [diff] [blame] | 111 | /* -------------------------------------------------- |
Jayanth Dodderi Chidanand | 16e5ca2 | 2023-04-11 11:42:53 +0100 | [diff] [blame] | 112 | * This workaround is not a typical errata fix. MPMM |
| 113 | * is disabled here, but this conflicts with the BL31 |
| 114 | * MPMM support. So in addition to simply disabling |
| 115 | * the feature, a flag is set in the MPMM library |
| 116 | * indicating that it should not be enabled even if |
| 117 | * ENABLE_MPMM=1. |
johpow01 | ac55c01 | 2022-02-15 22:55:22 -0600 | [diff] [blame] | 118 | * -------------------------------------------------- |
| 119 | */ |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 120 | workaround_reset_start cortex_a510, ERRATUM(2250311), ERRATA_A510_2250311 |
Jayanth Dodderi Chidanand | 16e5ca2 | 2023-04-11 11:42:53 +0100 | [diff] [blame] | 121 | /* Disable MPMM */ |
| 122 | mrs x0, CPUMPMMCR_EL3 |
| 123 | bfm x0, xzr, #0, #0 /* bfc instruction does not work in GCC */ |
| 124 | msr CPUMPMMCR_EL3, x0 |
| 125 | |
| 126 | #if ENABLE_MPMM && IMAGE_BL31 |
| 127 | /* If ENABLE_MPMM is set, tell the runtime lib to skip enabling it. */ |
| 128 | bl mpmm_errata_disable |
| 129 | #endif |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 130 | workaround_reset_end cortex_a510, ERRATUM(2250311) |
johpow01 | ac55c01 | 2022-02-15 22:55:22 -0600 | [diff] [blame] | 131 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 132 | check_erratum_ls cortex_a510, ERRATUM(2250311), CPU_REV(1, 0) |
Jayanth Dodderi Chidanand | 16e5ca2 | 2023-04-11 11:42:53 +0100 | [diff] [blame] | 133 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 134 | workaround_reset_start cortex_a510, ERRATUM(2288014), ERRATA_A510_2288014 |
Jayanth Dodderi Chidanand | 16e5ca2 | 2023-04-11 11:42:53 +0100 | [diff] [blame] | 135 | /* Apply the workaround by setting IMP_CPUACTLR_EL1[18] = 0b1. */ |
Jayanth Dodderi Chidanand | 399472c | 2023-04-11 21:58:21 +0100 | [diff] [blame] | 136 | sysreg_bitfield_insert CORTEX_A510_CPUACTLR_EL1, CORTEX_A510_CPUACTLR_EL1_DATA_CORRUPT_DISABLE, \ |
| 137 | CORTEX_A510_CPUACTLR_EL1_DATA_CORRUPT_SHIFT, CORTEX_A510_CPUACTLR_EL1_DATA_CORRUPT_WIDTH |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 138 | workaround_reset_end cortex_a510, ERRATUM(2288014) |
Jayanth Dodderi Chidanand | 16e5ca2 | 2023-04-11 11:42:53 +0100 | [diff] [blame] | 139 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 140 | check_erratum_ls cortex_a510, ERRATUM(2288014), CPU_REV(1, 0) |
Akram Ahmad | a85254e | 2022-07-21 14:01:33 +0100 | [diff] [blame] | 141 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 142 | workaround_reset_start cortex_a510, ERRATUM(2347730), ERRATA_A510_2347730 |
Akram Ahmad | a85254e | 2022-07-21 14:01:33 +0100 | [diff] [blame] | 143 | /* |
| 144 | * Set CPUACTLR_EL1[17] to 1'b1, which disables |
| 145 | * specific microarchitectural clock gating |
| 146 | * behaviour. |
| 147 | */ |
Jayanth Dodderi Chidanand | 399472c | 2023-04-11 21:58:21 +0100 | [diff] [blame] | 148 | sysreg_bit_set CORTEX_A510_CPUACTLR_EL1, CORTEX_A510_CPUACTLR_EL1_BIT_17 |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 149 | workaround_reset_end cortex_a510, ERRATUM(2347730) |
Akram Ahmad | a85254e | 2022-07-21 14:01:33 +0100 | [diff] [blame] | 150 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 151 | check_erratum_ls cortex_a510, ERRATUM(2347730), CPU_REV(1, 1) |
Akram Ahmad | 60accba | 2022-07-22 16:20:44 +0100 | [diff] [blame] | 152 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 153 | workaround_reset_start cortex_a510, ERRATUM(2371937), ERRATA_A510_2371937 |
Akram Ahmad | 60accba | 2022-07-22 16:20:44 +0100 | [diff] [blame] | 154 | /* |
| 155 | * Cacheable atomic operations can be forced |
| 156 | * to be executed near by setting |
| 157 | * IMP_CPUECTLR_EL1.ATOM=0b010. ATOM is found |
| 158 | * in [40:38] of CPUECTLR_EL1. |
| 159 | */ |
Jayanth Dodderi Chidanand | 399472c | 2023-04-11 21:58:21 +0100 | [diff] [blame] | 160 | sysreg_bitfield_insert CORTEX_A510_CPUECTLR_EL1, CORTEX_A510_CPUECTLR_EL1_ATOM_EXECALLINSTRNEAR, \ |
| 161 | CORTEX_A510_CPUECTLR_EL1_ATOM_SHIFT, CORTEX_A510_CPUECTLR_EL1_ATOM_WIDTH |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 162 | workaround_reset_end cortex_a510, ERRATUM(2371937) |
Akram Ahmad | 60accba | 2022-07-22 16:20:44 +0100 | [diff] [blame] | 163 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 164 | check_erratum_ls cortex_a510, ERRATUM(2371937), CPU_REV(1, 1) |
Akram Ahmad | 60accba | 2022-07-22 16:20:44 +0100 | [diff] [blame] | 165 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 166 | workaround_reset_start cortex_a510, ERRATUM(2666669), ERRATA_A510_2666669 |
Jayanth Dodderi Chidanand | 399472c | 2023-04-11 21:58:21 +0100 | [diff] [blame] | 167 | sysreg_bit_set CORTEX_A510_CPUACTLR_EL1, CORTEX_A510_CPUACTLR_EL1_BIT_38 |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 168 | workaround_reset_end cortex_a510, ERRATUM(2666669) |
Akram Ahmad | 89034d6 | 2022-09-21 13:59:56 +0100 | [diff] [blame] | 169 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 170 | check_erratum_ls cortex_a510, ERRATUM(2666669), CPU_REV(1, 1) |
Akram Ahmad | 89034d6 | 2022-09-21 13:59:56 +0100 | [diff] [blame] | 171 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 172 | .global erratum_cortex_a510_2684597_wa |
| 173 | workaround_runtime_start cortex_a510, ERRATUM(2684597), ERRATA_A510_2684597, CORTEX_A510_MIDR |
Andre Przywara | 744043c | 2023-03-23 11:50:32 +0000 | [diff] [blame] | 174 | /* |
| 175 | * Many assemblers do not yet understand the "tsb csync" mnemonic, |
| 176 | * so use the equivalent hint instruction. |
| 177 | */ |
| 178 | hint #18 /* tsb csync */ |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 179 | workaround_runtime_end cortex_a510, ERRATUM(2684597) |
| 180 | |
| 181 | check_erratum_ls cortex_a510, ERRATUM(2684597), CPU_REV(1, 2) |
| 182 | |
| 183 | /* |
| 184 | * ERRATA_DSU_2313941 : |
| 185 | * The errata is defined in dsu_helpers.S but applies to cortex_a510 |
| 186 | * as well. Henceforth creating symbolic names to the already existing errata |
| 187 | * workaround functions to get them registered under the Errata Framework. |
Harrison Mutai | e5249fe | 2022-12-09 12:14:25 +0000 | [diff] [blame] | 188 | */ |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 189 | .equ check_erratum_cortex_a510_2313941, check_errata_dsu_2313941 |
| 190 | .equ erratum_cortex_a510_2313941_wa, errata_dsu_2313941_wa |
| 191 | add_erratum_entry cortex_a510, ERRATUM(2313941), ERRATA_DSU_2313941, APPLY_AT_RESET |
Harrison Mutai | e5249fe | 2022-12-09 12:14:25 +0000 | [diff] [blame] | 192 | |
johpow01 | a3810e8 | 2021-05-18 15:23:31 -0500 | [diff] [blame] | 193 | /* ---------------------------------------------------- |
| 194 | * HW will do the cache maintenance while powering down |
| 195 | * ---------------------------------------------------- |
| 196 | */ |
| 197 | func cortex_a510_core_pwr_dwn |
| 198 | /* --------------------------------------------------- |
| 199 | * Enable CPU power down bit in power control register |
| 200 | * --------------------------------------------------- |
| 201 | */ |
Jayanth Dodderi Chidanand | 399472c | 2023-04-11 21:58:21 +0100 | [diff] [blame] | 202 | sysreg_bit_set CORTEX_A510_CPUPWRCTLR_EL1, CORTEX_A510_CPUPWRCTLR_EL1_CORE_PWRDN_BIT |
johpow01 | a3810e8 | 2021-05-18 15:23:31 -0500 | [diff] [blame] | 203 | isb |
| 204 | ret |
| 205 | endfunc cortex_a510_core_pwr_dwn |
| 206 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 207 | errata_report_shim cortex_a510 |
johpow01 | de7b524 | 2022-01-04 16:15:18 -0600 | [diff] [blame] | 208 | |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 209 | cpu_reset_func_start cortex_a510 |
johpow01 | a3810e8 | 2021-05-18 15:23:31 -0500 | [diff] [blame] | 210 | /* Disable speculative loads */ |
| 211 | msr SSBS, xzr |
Jayanth Dodderi Chidanand | 5818c7a | 2023-04-11 15:15:31 +0100 | [diff] [blame] | 212 | cpu_reset_func_end cortex_a510 |
johpow01 | a3810e8 | 2021-05-18 15:23:31 -0500 | [diff] [blame] | 213 | |
| 214 | /* --------------------------------------------- |
| 215 | * This function provides Cortex-A510 specific |
| 216 | * register information for crash reporting. |
| 217 | * It needs to return with x6 pointing to |
| 218 | * a list of register names in ascii and |
| 219 | * x8 - x15 having values of registers to be |
| 220 | * reported. |
| 221 | * --------------------------------------------- |
| 222 | */ |
| 223 | .section .rodata.cortex_a510_regs, "aS" |
| 224 | cortex_a510_regs: /* The ascii list of register names to be reported */ |
| 225 | .asciz "cpuectlr_el1", "" |
| 226 | |
| 227 | func cortex_a510_cpu_reg_dump |
| 228 | adr x6, cortex_a510_regs |
| 229 | mrs x8, CORTEX_A510_CPUECTLR_EL1 |
| 230 | ret |
| 231 | endfunc cortex_a510_cpu_reg_dump |
| 232 | |
| 233 | declare_cpu_ops cortex_a510, CORTEX_A510_MIDR, \ |
| 234 | cortex_a510_reset_func, \ |
| 235 | cortex_a510_core_pwr_dwn |