From ec48e007e4207fb1405b8000f48ddcd9cfb427a0 Mon Sep 17 00:00:00 2001 From: leviport Date: Thu, 17 Oct 2024 14:54:47 -0600 Subject: [PATCH] Add pang15 to special Pang EC type --- src/app/ec.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/ec.rs b/src/app/ec.rs index 3789c0b..e69c0fb 100644 --- a/src/app/ec.rs +++ b/src/app/ec.rs @@ -56,7 +56,7 @@ pub enum EcKind { impl EcKind { pub unsafe fn new(primary: bool) -> Self { - // Special case for pang12, pang13, and pang14 + // Special case for pang12, pang13, pang14, and pang15 { let mut system_version = String::new(); @@ -76,7 +76,8 @@ impl EcKind { } } - if system_version == "pang12" || system_version == "pang13" || system_version == "pang14" { + if system_version == "pang12" || system_version == "pang13" || system_version == "pang14" || + system_version == "pang15" { return EcKind::Pang( ectool::Pmc::new(0x62, UefiTimeout::new(100_000)), system_version @@ -225,7 +226,7 @@ impl EcComponent { } pub fn validate_data(&self, data: Vec) -> bool { - // Special case for pang12, pang13, and pang14 + // Special case for pang12, pang13, pang14, and pang15 match &self.ec { EcKind::Pang(_pmc, _system_version) => { // XXX: Get flash size programatically?