From 34f704dcea21747e9926098b5cf92f4f33227f14 Mon Sep 17 00:00:00 2001 From: Nikita Travkin Date: Sun, 18 Aug 2024 14:11:26 +0500 Subject: [PATCH] devices: Add Microsoft Windows Dev Kit 2023 Co-authored-by: Jens Glathe --- README.md | 1 + .../hwids/sc8280xp-microsoft-blackrock.txt | 32 +++++++++++++++++++ src/devices/microsoft_wdk2023.c | 30 +++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 scripts/hwids/sc8280xp-microsoft-blackrock.txt create mode 100644 src/devices/microsoft_wdk2023.c diff --git a/README.md b/README.md index da4b67f..1dc8ce1 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ attemtps to simplify running Linux-based or other OS that use DT by providing: - Lenovo Yoga C630 - Lenovo Yoga Slim 7x - * Microsoft Surface Pro 9 5G* +- * Microsoft Windows Dev Kit 2023* (Note: Devices marked with *italic* may not be available in upstream Linux or linux-next yet.) diff --git a/scripts/hwids/sc8280xp-microsoft-blackrock.txt b/scripts/hwids/sc8280xp-microsoft-blackrock.txt new file mode 100644 index 0000000..92aac0c --- /dev/null +++ b/scripts/hwids/sc8280xp-microsoft-blackrock.txt @@ -0,0 +1,32 @@ +Computer Information +-------------------- +BiosVendor: Microsoft Corporation +BiosVersion: 12.6.235 +BiosMajorRelease: 255 +BiosMinorRelease: 255 +FirmwareMajorRelease: ff +FirmwareMinorRelease: ff +Manufacturer: Microsoft Corporation +Family: Surface +ProductName: Windows Dev Kit 2023 +ProductSku: 2043 +EnclosureKind: 3 +BaseboardManufacturer: Microsoft Corporation +BaseboardProduct: Windows Dev Kit 2023 +Hardware IDs +------------ +{69ba0503-ca94-5fa3-b78c-5fa21a66c620} <- Manufacturer + Family + ProductName + ProductSku + BiosVendor + BiosVersion + BiosMajorRelease + BiosMinorRelease +{ad2ee931-a048-5253-b350-98c482670765} <- Manufacturer + Family + ProductName + BiosVendor + BiosVersion + BiosMajorRelease + BiosMinorRelease +{5bd24fc5-5edb-51f6-82e6-31a9ef954c5b} <- Manufacturer + ProductName + BiosVendor + BiosVersion + BiosMajorRelease + BiosMinorRelease +{d67e799e-2ba7-555a-a874-a0523a8b3b11} <- Manufacturer + Family + ProductName + ProductSku + BaseboardManufacturer + BaseboardProduct +{813677fa-6d11-5756-a44d-dde0f552d3f6} <- Manufacturer + Family + ProductName + ProductSku +{ce83144b-b123-59e5-8a9a-0c1a13643fc4} <- Manufacturer + Family + ProductName +{53b87f48-fc47-54e9-ade5-f1a95e885681} <- Manufacturer + ProductSku + BaseboardManufacturer + BaseboardProduct +{046fefee-341b-5c40-b0a3-1c647d31b500} <- Manufacturer + ProductSku +{f59639f4-4970-5706-9a75-519dd059f69e} <- Manufacturer + ProductName + BaseboardManufacturer + BaseboardProduct +{08f06457-aa19-51c5-be4c-0087ce4fa2ed} <- Manufacturer + ProductName +{11b80238-dbee-57bc-8b26-83c9e5b4057d} <- Manufacturer + Family + BaseboardManufacturer + BaseboardProduct +{ca2e5189-1d32-509f-88a0-d4ebcc721899} <- Manufacturer + Family +{7ce6d32b-3711-5701-b31a-cc79f61a5719} <- Manufacturer + EnclosureKind +{2c1da402-8915-572d-a493-c966d32f96cb} <- Manufacturer + BaseboardManufacturer + BaseboardProduct +{cc0aea32-ad2c-5013-8bed-cede6be8c9f4} <- Manufacturer diff --git a/src/devices/microsoft_wdk2023.c b/src/devices/microsoft_wdk2023.c new file mode 100644 index 0000000..e4e2756 --- /dev/null +++ b/src/devices/microsoft_wdk2023.c @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: BSD-3-Clause + +#include +#include + +static EFI_GUID microsoft_corporation_windows_dev_kit_2023_hwids[] = { + { 0x69ba0503, 0xca94, 0x5fa3, { 0xb7, 0x8c, 0x5f, 0xa2, 0x1a, 0x66, 0xc6, 0x20 } }, + { 0xad2ee931, 0xa048, 0x5253, { 0xb3, 0x50, 0x98, 0xc4, 0x82, 0x67, 0x07, 0x65 } }, + { 0x5bd24fc5, 0x5edb, 0x51f6, { 0x82, 0xe6, 0x31, 0xa9, 0xef, 0x95, 0x4c, 0x5b } }, + { 0xd67e799e, 0x2ba7, 0x555a, { 0xa8, 0x74, 0xa0, 0x52, 0x3a, 0x8b, 0x3b, 0x11 } }, + { 0x813677fa, 0x6d11, 0x5756, { 0xa4, 0x4d, 0xdd, 0xe0, 0xf5, 0x52, 0xd3, 0xf6 } }, + { 0xce83144b, 0xb123, 0x59e5, { 0x8a, 0x9a, 0x0c, 0x1a, 0x13, 0x64, 0x3f, 0xc4 } }, + { 0x53b87f48, 0xfc47, 0x54e9, { 0xad, 0xe5, 0xf1, 0xa9, 0x5e, 0x88, 0x56, 0x81 } }, + { 0x046fefee, 0x341b, 0x5c40, { 0xb0, 0xa3, 0x1c, 0x64, 0x7d, 0x31, 0xb5, 0x00 } }, + { 0xf59639f4, 0x4970, 0x5706, { 0x9a, 0x75, 0x51, 0x9d, 0xd0, 0x59, 0xf6, 0x9e } }, + { 0x08f06457, 0xaa19, 0x51c5, { 0xbe, 0x4c, 0x00, 0x87, 0xce, 0x4f, 0xa2, 0xed } }, + { 0x11b80238, 0xdbee, 0x57bc, { 0x8b, 0x26, 0x83, 0xc9, 0xe5, 0xb4, 0x05, 0x7d } }, + { 0xca2e5189, 0x1d32, 0x509f, { 0x88, 0xa0, 0xd4, 0xeb, 0xcc, 0x72, 0x18, 0x99 } }, + { 0x7ce6d32b, 0x3711, 0x5701, { 0xb3, 0x1a, 0xcc, 0x79, 0xf6, 0x1a, 0x57, 0x19 } }, + { 0x2c1da402, 0x8915, 0x572d, { 0xa4, 0x93, 0xc9, 0x66, 0xd3, 0x2f, 0x96, 0xcb } }, + { 0xcc0aea32, 0xad2c, 0x5013, { 0x8b, 0xed, 0xce, 0xde, 0x6b, 0xe8, 0xc9, 0xf4 } }, + { } +}; + +static struct device microsoft_corporation_windows_dev_kit_2023_dev = { + .name = L"Microsoft Corporation Windows Dev Kit 2023", + .dtb = L"qcom\\sc8280xp-microsoft-blackrock.dtb", /* Tentative. */ + .hwids = microsoft_corporation_windows_dev_kit_2023_hwids, +}; +DEVICE_DESC(microsoft_corporation_windows_dev_kit_2023_dev);