File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
framework_lib/src/chromium_ec Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ pub enum EcCommands {
53
53
/// Get information about PD controller power
54
54
UsbPdPowerInfo = 0x0103 ,
55
55
AdcRead = 0x0123 ,
56
+ ApReset = 0x0125 ,
57
+ LocateChip = 0x0126 ,
58
+ RebootApOnG3 = 0x0127 ,
56
59
RgbKbdSetColor = 0x013A ,
57
60
RgbKbd = 0x013B ,
58
61
Original file line number Diff line number Diff line change @@ -879,6 +879,33 @@ impl EcRequest<EcResponseAdcRead> for EcRequestAdcRead {
879
879
}
880
880
}
881
881
882
+ #[ repr( C ) ]
883
+ pub struct EcRequestRebootApOnG3V0 { }
884
+
885
+ impl EcRequest < ( ) > for EcRequestRebootApOnG3V0 {
886
+ fn command_id ( ) -> EcCommands {
887
+ EcCommands :: RebootApOnG3
888
+ }
889
+ fn command_version ( ) -> u8 {
890
+ 0
891
+ }
892
+ }
893
+
894
+ #[ repr( C ) ]
895
+ pub struct EcRequestRebootApOnG3V1 {
896
+ /// Delay in seconds after entering G3 state
897
+ pub delay : u32 ,
898
+ }
899
+
900
+ impl EcRequest < ( ) > for EcRequestRebootApOnG3V1 {
901
+ fn command_id ( ) -> EcCommands {
902
+ EcCommands :: RebootApOnG3
903
+ }
904
+ fn command_version ( ) -> u8 {
905
+ 1
906
+ }
907
+ }
908
+
882
909
// TODO: Actually 128, but if we go above ~80 EC returns REQUEST_TRUNCATED
883
910
// At least when I use the portio driver
884
911
pub const EC_RGBKBD_MAX_KEY_COUNT : usize = 64 ;
You can’t perform that action at this time.
0 commit comments