]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: make Apple part names human-friendly
authorJames Calligeros <jcalligeros99@gmail.com>
Sat, 9 Jul 2022 04:52:35 +0000 (14:52 +1000)
committerJames Calligeros <jcalligeros99@gmail.com>
Sat, 9 Jul 2022 04:52:35 +0000 (14:52 +1000)
The internal Apple model numbers for the SoCs are somewhat
confusing given that they are mostly similar and differ by only
one or two digits. Instead, use the public nomenclature for these
chips to avoid ambiguity and beautify the output.

Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
sys-utils/lscpu-arm.c

index 7986fa3f2dc4cff9ae6bd030ca9400fd7d615222..a26601553a47fb085416080cd0c255f9ef6c6c32 100644 (file)
@@ -159,14 +159,14 @@ static const struct id_part marvell_part[] = {
 };
 
 static const struct id_part apple_part[] = {
-    { 0x020, "Icestorm-T8101" },
-    { 0x021, "Firestorm-T8101" },
-    { 0x022, "Icestorm-T8103" },
-    { 0x023, "Firestorm-T8103" },
-    { 0x030, "Blizzard-T8110" },
-    { 0x031, "Avalanche-T8110" },
-    { 0x032, "Blizzard-T8112" },
-    { 0x033, "Avalanche-T8112" },
+    { 0x020, "Icestorm (A14)" },
+    { 0x021, "Firestorm (A14)" },
+    { 0x022, "Icestorm (M1)" },
+    { 0x023, "Firestorm (M1)" },
+    { 0x030, "Blizzard (A15)" },
+    { 0x031, "Avalanche (A15)" },
+    { 0x032, "Blizzard (M2)" },
+    { 0x033, "Avalanche (M2)" },
     { -1, "unknown" },
 };