Commit 21bdd68
committed
cpu: armv8: Add Cortex-A5x/A7x CPU support and enhance driver functionality
Extend the ARMv8 CPU driver with the following improvements:
1. Add compatible strings for modern ARM Cortex-A cores:
- arm,cortex-a53
- arm,cortex-a55
- arm,cortex-a72
- arm,cortex-a73
- arm,cortex-a75
- arm,cortex-a76
2. Implement human-readable CPU name detection by reading the MIDR
register and mapping known part numbers to descriptive names.
3. Add clock frequency reporting via the clk framework. The driver
now probes for an optional clock and reports the CPU frequency
in cpu_get_info() when available.
4. Implement get_vendor() callback returning "ARM" as the vendor.
5. Implement is_current() callback that compares the MPIDR register
value against the device tree "reg" property to identify if this
CPU device corresponds to the currently executing CPU.
6. Add private data structure to track per-CPU state including the
optional clock reference.
These changes enable proper CPU enumeration and information display
on SoCs using Cortex-A5x and Cortex-A7x cores, which are common in
modern Rockchip, NXP, and other ARM-based platforms.
Change-Id: 6372f41d-a192-4117-9c1a-b5c75db2617a batch-01
Signed-off-by: Anton Burticica <mouse@ya.ru>1 parent cb2e54d commit 21bdd68
1 file changed
+102
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
17 | 30 | | |
18 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
19 | 46 | | |
20 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
21 | 50 | | |
22 | | - | |
| 51 | + | |
23 | 52 | | |
24 | | - | |
| 53 | + | |
25 | 54 | | |
26 | 55 | | |
27 | | - | |
28 | | - | |
| 56 | + | |
29 | 57 | | |
30 | | - | |
31 | | - | |
| 58 | + | |
32 | 59 | | |
33 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
34 | 67 | | |
35 | 68 | | |
36 | 69 | | |
37 | 70 | | |
38 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
39 | 106 | | |
40 | 107 | | |
41 | 108 | | |
| |||
130 | 197 | | |
131 | 198 | | |
132 | 199 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
137 | 206 | | |
138 | 207 | | |
139 | | - | |
140 | | - | |
141 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
142 | 217 | | |
143 | 218 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
151 | 228 | | |
0 commit comments