Skip to content

Commit fe643cc

Browse files
committed
ec: Add lemp14
Signed-off-by: Tim Crawford <tcrawford@system76.com>
1 parent 389ab68 commit fe643cc

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/app/ec.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,17 @@ impl EcComponent {
254254
"system76/lemp13-b".to_string()
255255
}
256256
}
257+
"L2x0JU" => {
258+
// BOARD_ID2 (GPP_E14): Low=14", High=16"
259+
unsafe {
260+
let sideband = Sideband::new(0xE000_0000);
261+
if sideband.gpio(0x5A, 0x50) & 2 == 2 {
262+
"system76/lemp14-b".to_string()
263+
} else {
264+
"system76/lemp14".to_string()
265+
}
266+
}
267+
}
257268
"N130ZU" => "system76/galp3-c".to_string(),
258269
"N140CU" => "system76/galp4".to_string(),
259270
"N150ZU" => "system76/darp5".to_string(),

0 commit comments

Comments
 (0)