aboutsummaryrefslogtreecommitdiff
path: root/src/arm/linux/chipset.c
diff options
context:
space:
mode:
authorMarat Dukhan <marat@fb.com>2018-03-08 17:29:00 -0800
committerMarat Dukhan <marat@fb.com>2018-03-08 17:29:00 -0800
commit959b95070211887ee49a58fc17a87461d8917ba1 (patch)
tree87cf7be2df70c8a4762455df9575d652288cbab3 /src/arm/linux/chipset.c
parentab7f9492d8f971887777c2deb31638db409651d1 (diff)
downloadcpuinfo-959b95070211887ee49a58fc17a87461d8917ba1.tar.gz
Identify Kirin 970 in Honor View 10
Diffstat (limited to 'src/arm/linux/chipset.c')
-rw-r--r--src/arm/linux/chipset.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/arm/linux/chipset.c b/src/arm/linux/chipset.c
index 9f306c2..c322e89 100644
--- a/src/arm/linux/chipset.c
+++ b/src/arm/linux/chipset.c
@@ -493,7 +493,7 @@ static bool match_and_parse_smdk(
}
/**
- * Tries to match /MTK?\d{4}[A-Z]*$/ signature for MediaTek MT chipsets.
+ * Tries to match /MTK?\d{4}[A-Z/]*$/ signature for MediaTek MT chipsets.
* If match successful, extracts model information into \p chipset argument.
*
* @param start - start of the platform identifier (/proc/cpuinfo Hardware string, ro.product.board, ro.board.platform,
@@ -1367,6 +1367,11 @@ static const struct huawei_map_entry huawei_platform_map[] = {
.model = 970,
},
{
+ /* "BKL" -> Kirin 970 */
+ .platform = UINT32_C(0x004C4B42), /* "\0LKB" = reverse("BKL\0") */
+ .model = 970,
+ },
+ {
/* "DUK" -> Kirin 960 */
.platform = UINT32_C(0x004B5544), /* "\0KUD" = reverse("DUK\0") */
.model = 960,