Skip to content

Commit

Permalink
devices: Add Huawei Matebook E Go
Browse files Browse the repository at this point in the history
Co-authored-by: Pengyu Luo <[email protected]>
  • Loading branch information
TravMurav and right-0903 committed Dec 28, 2024
1 parent 1534bff commit a2fdb4e
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ attemtps to simplify running Linux-based or other OS that use DT by providing:
- <!-- x1e80100 --> ASUS Vivobook S 15
- <!-- x1e80100 --> Dell XPS 13 9345
- <!-- x1e80100 --> HP Omnibook X 14
- <!-- sc8280xp --> Huawei Matebook E Go
- <!-- sc8180x --> Lenovo Flex 5G
- <!-- msm8998 --> Lenovo Miix 630
- <!-- x1e78100 --> Lenovo ThinkPad T14s Gen 6
Expand Down
38 changes: 38 additions & 0 deletions scripts/hwids/sc8280xp-huawei-gaokun3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Computer Information
--------------------
BiosVendor: HUAWEI
BiosVersion: 2.16
BiosMajorRelease: 2
BiosMinorRelease: 16
FirmwareMajorRelease: 02
FirmwareMinorRelease: 10
Manufacturer: HUAWEI
Family: MateBook E
ProductName: GK-W7X
ProductSku: C233
EnclosureKind: 20
BaseboardManufacturer: HUAWEI
BaseboardProduct: GK-W7X-PCB
Hardware IDs
------------
{80c86c24-c7a7-5714-abf2-4c48f348cecc} <- Manufacturer + Family + ProductName + ProductSku + BiosVendor + BiosVersion + BiosMajorRelease + BiosMinorRelease
{1c2effc1-1038-584d-ae8b-7c912c8e9504} <- Manufacturer + Family + ProductName + BiosVendor + BiosVersion + BiosMajorRelease + BiosMinorRelease
{6eb75906-3a4e-5de4-94c5-374d8f9723e5} <- Manufacturer + ProductName + BiosVendor + BiosVersion + BiosMajorRelease + BiosMinorRelease
{4f04f31f-17f0-583f-802f-82c3a0b34128} <- Manufacturer + Family + ProductName + ProductSku + BaseboardManufacturer + BaseboardProduct
{e1b94e53-0f20-5d01-abfc-cfb348544a31} <- Manufacturer + Family + ProductName + ProductSku
{b866fc5c-261b-56d8-99e8-03ea0646af8f} <- Manufacturer + Family + ProductName
{d8846172-f0a0-55ba-bf41-55641f588ea7} <- Manufacturer + ProductSku + BaseboardManufacturer + BaseboardProduct
{7ea8b73b-2cbb-562b-aecc-7f0f64c42630} <- Manufacturer + ProductSku
{3eb6683b-0153-5365-81c6-cc599783e9c7} <- Manufacturer + ProductName + BaseboardManufacturer + BaseboardProduct
{e5a0ed2b-7fed-5e2d-94ed-43dbaf0b9ccc} <- Manufacturer + ProductName
{0c78ef16-4fe0-5e33-908e-b038949ee608} <- Manufacturer + Family + BaseboardManufacturer + BaseboardProduct
{8187555f-3681-5463-a0fa-e6b74e49d4c1} <- Manufacturer + Family
{39bed59d-bfe0-5938-9a76-b2f4739af786} <- Manufacturer + EnclosureKind
{c562b393-1c28-5cc3-a77c-c13c798e5698} <- Manufacturer + BaseboardManufacturer + BaseboardProduct
{0df4aa3f-2706-51d4-9296-80119e47f1e1} <- Manufacturer
Extra Hardware IDs
------------------
{e98c95a8-b50e-5d8b-b2db-c679a39163df} <- Manufacturer + Family + ProductName + ProductSku + BiosVendor
{13311789-793f-5d95-942c-3b6414a8ad1a} <- Manufacturer + Family + ProductName + BiosVendor
{04798471-7c9b-5189-b99b-4d19e1a6fa89} <- Manufacturer + BiosVendor

33 changes: 33 additions & 0 deletions src/devices/huawei_gaokun3.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// SPDX-License-Identifier: BSD-3-Clause

#include <efi.h>
#include <device.h>

static EFI_GUID huawei_matebook_e_hwids[] = {
{ 0x80c86c24, 0xc7a7, 0x5714, { 0xab, 0xf2, 0x4c, 0x48, 0xf3, 0x48, 0xce, 0xcc } },
{ 0x1c2effc1, 0x1038, 0x584d, { 0xae, 0x8b, 0x7c, 0x91, 0x2c, 0x8e, 0x95, 0x04 } },
{ 0x6eb75906, 0x3a4e, 0x5de4, { 0x94, 0xc5, 0x37, 0x4d, 0x8f, 0x97, 0x23, 0xe5 } },
{ 0x4f04f31f, 0x17f0, 0x583f, { 0x80, 0x2f, 0x82, 0xc3, 0xa0, 0xb3, 0x41, 0x28 } },
{ 0xe1b94e53, 0x0f20, 0x5d01, { 0xab, 0xfc, 0xcf, 0xb3, 0x48, 0x54, 0x4a, 0x31 } },
{ 0xb866fc5c, 0x261b, 0x56d8, { 0x99, 0xe8, 0x03, 0xea, 0x06, 0x46, 0xaf, 0x8f } },
{ 0xd8846172, 0xf0a0, 0x55ba, { 0xbf, 0x41, 0x55, 0x64, 0x1f, 0x58, 0x8e, 0xa7 } },
{ 0x7ea8b73b, 0x2cbb, 0x562b, { 0xae, 0xcc, 0x7f, 0x0f, 0x64, 0xc4, 0x26, 0x30 } },
{ 0x3eb6683b, 0x0153, 0x5365, { 0x81, 0xc6, 0xcc, 0x59, 0x97, 0x83, 0xe9, 0xc7 } },
{ 0xe5a0ed2b, 0x7fed, 0x5e2d, { 0x94, 0xed, 0x43, 0xdb, 0xaf, 0x0b, 0x9c, 0xcc } },
{ 0x0c78ef16, 0x4fe0, 0x5e33, { 0x90, 0x8e, 0xb0, 0x38, 0x94, 0x9e, 0xe6, 0x08 } },
{ 0x8187555f, 0x3681, 0x5463, { 0xa0, 0xfa, 0xe6, 0xb7, 0x4e, 0x49, 0xd4, 0xc1 } },
{ 0x39bed59d, 0xbfe0, 0x5938, { 0x9a, 0x76, 0xb2, 0xf4, 0x73, 0x9a, 0xf7, 0x86 } },
{ 0xc562b393, 0x1c28, 0x5cc3, { 0xa7, 0x7c, 0xc1, 0x3c, 0x79, 0x8e, 0x56, 0x98 } },
{ 0x0df4aa3f, 0x2706, 0x51d4, { 0x92, 0x96, 0x80, 0x11, 0x9e, 0x47, 0xf1, 0xe1 } },
{ 0xe98c95a8, 0xb50e, 0x5d8b, { 0xb2, 0xdb, 0xc6, 0x79, 0xa3, 0x91, 0x63, 0xdf } },
{ 0x13311789, 0x793f, 0x5d95, { 0x94, 0x2c, 0x3b, 0x64, 0x14, 0xa8, 0xad, 0x1a } },
{ 0x04798471, 0x7c9b, 0x5189, { 0xb9, 0x9b, 0x4d, 0x19, 0xe1, 0xa6, 0xfa, 0x89 } },
{ }
};

static struct device huawei_matebook_e_dev = {
.name = L"HUAWEI MateBook E",
.dtb = L"qcom\\sc8280xp-huawei-gaokun3.dtb",
.hwids = huawei_matebook_e_hwids,
};
DEVICE_DESC(huawei_matebook_e_dev);

0 comments on commit a2fdb4e

Please sign in to comment.