Skip to content

Commit 389ab68

Browse files
authored
Merge pull request #140 from system76/panp16
Add panp16 to special Pang EC type
2 parents 5aa015b + 1fde7ae commit 389ab68

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/app/ec.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub enum EcKind {
5858

5959
impl EcKind {
6060
pub unsafe fn new(primary: bool) -> Self {
61-
// Special case for pang12, pang13, pang14, and pang15
61+
// Special case for pang12, pang13, pang14, pang15, and panp16
6262
{
6363
let mut system_version = String::new();
6464

@@ -82,6 +82,7 @@ impl EcKind {
8282
|| system_version == "pang13"
8383
|| system_version == "pang14"
8484
|| system_version == "pang15"
85+
|| system_version == "panp16"
8586
{
8687
return EcKind::Pang(
8788
unsafe { ectool::Pmc::new(0x62, UefiTimeout::new(100_000)) },
@@ -229,7 +230,7 @@ impl EcComponent {
229230
}
230231

231232
pub fn validate_data(&self, data: Vec<u8>) -> bool {
232-
// Special case for pang12, pang13, pang14, and pang15
233+
// Special case for pang12, pang13, pang14, pang15, and panp16
233234
match &self.ec {
234235
EcKind::Pang(_pmc, _system_version) => {
235236
// XXX: Get flash size programatically?

0 commit comments

Comments
 (0)