From 7baab5aa30c77b4beb5992549fbaa0a74e6d7c4b Mon Sep 17 00:00:00 2001 From: Cherish-Gww <40050326+Cherish-Gww@users.noreply.github.com> Date: Wed, 6 Nov 2024 23:40:54 +0800 Subject: [PATCH] feat: add hpm6e00 series support (#18) Signed-off-by: Weiwei Guo --- 99-hpm_bootrom.rules | 2 ++ hpm_isp/src/hid.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/99-hpm_bootrom.rules b/99-hpm_bootrom.rules index 6315d4a..e8b8a24 100644 --- a/99-hpm_bootrom.rules +++ b/99-hpm_bootrom.rules @@ -10,3 +10,5 @@ SUBSYSTEM=="usb", ATTRS{idVendor}=="34b7", ATTRS{idProduct}=="0003", MODE="666" SUBSYSTEM=="usb", ATTRS{idVendor}=="34b7", ATTRS{idProduct}=="0004", MODE="666" # HPM5300 SUBSYSTEM=="usb", ATTRS{idVendor}=="34b7", ATTRS{idProduct}=="0005", MODE="666" +# HPM6E00 +SUBSYSTEM=="usb", ATTRS{idVendor}=="34b7", ATTRS{idProduct}=="0006", MODE="666" diff --git a/hpm_isp/src/hid.rs b/hpm_isp/src/hid.rs index 4a6af73..503a832 100644 --- a/hpm_isp/src/hid.rs +++ b/hpm_isp/src/hid.rs @@ -70,6 +70,7 @@ pub enum Family { HPM6200 = 0x0003, HPM6800 = 0x0004, HPM5300 = 0x0005, + HPM6E00 = 0x0006, } impl Family { @@ -90,6 +91,7 @@ impl Display for Family { Family::HPM6200 => "HPM6200", Family::HPM6800 => "HPM6800", Family::HPM5300 => "HPM5300", + Family::HPM6E00 => "HPM6E00", }; write!(f, "{name}") }