From: kettenis Date: Fri, 9 Sep 2022 18:15:30 +0000 (+0000) Subject: Recognize Qualcomm Krys 400 series cores. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=db366cea1a9531bd38951edbe028764dae59eae8;p=openbsd Recognize Qualcomm Krys 400 series cores. ok jsg@ --- diff --git a/sys/arch/arm64/arm64/cpu.c b/sys/arch/arm64/arm64/cpu.c index 24b7fedaa31..096bbc2ae1e 100644 --- a/sys/arch/arm64/arm64/cpu.c +++ b/sys/arch/arm64/arm64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.68 2022/08/24 22:01:16 kettenis Exp $ */ +/* $OpenBSD: cpu.c,v 1.69 2022/09/09 18:15:30 kettenis Exp $ */ /* * Copyright (c) 2016 Dale Rahn @@ -48,6 +48,7 @@ #define CPU_IMPL_ARM 0x41 #define CPU_IMPL_CAVIUM 0x43 #define CPU_IMPL_AMCC 0x50 +#define CPU_IMPL_QCOM 0x51 #define CPU_IMPL_APPLE 0x61 /* ARM */ @@ -88,6 +89,10 @@ /* Applied Micro */ #define CPU_PART_X_GENE 0x000 +/* Qualcomm */ +#define CPU_PART_KRYO400_GOLD 0x804 +#define CPU_PART_KRYO400_SILVER 0x805 + /* Apple */ #define CPU_PART_ICESTORM 0x022 #define CPU_PART_FIRESTORM 0x023 @@ -156,6 +161,12 @@ struct cpu_cores cpu_cores_amcc[] = { { 0, NULL }, }; +struct cpu_cores cpu_cores_qcom[] = { + { CPU_PART_KRYO400_GOLD, "Kryo 400 Gold" }, + { CPU_PART_KRYO400_SILVER, "Kryo 400 Silver" }, + { 0, NULL }, +}; + struct cpu_cores cpu_cores_apple[] = { { CPU_PART_ICESTORM, "Icestorm" }, { CPU_PART_FIRESTORM, "Firestorm" }, @@ -177,6 +188,7 @@ const struct implementers { { CPU_IMPL_ARM, "ARM", cpu_cores_arm }, { CPU_IMPL_CAVIUM, "Cavium", cpu_cores_cavium }, { CPU_IMPL_AMCC, "Applied Micro", cpu_cores_amcc }, + { CPU_IMPL_QCOM, "Qualcomm", cpu_cores_qcom }, { CPU_IMPL_APPLE, "Apple", cpu_cores_apple }, { 0, NULL }, };