File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
framework_lib/src/chromium_ec Expand file tree Collapse file tree 2 files changed +39
-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,42 @@ impl EcRequest<EcResponseAdcRead> for EcRequestAdcRead {
879
879
}
880
880
}
881
881
882
+ #[ repr( C ) ]
883
+ pub struct EcRequestApReset { }
884
+
885
+ impl EcRequest < ( ) > for EcRequestApReset {
886
+ fn command_id ( ) -> EcCommands {
887
+ EcCommands :: ApReset
888
+ }
889
+ }
890
+
891
+ #[ repr( C ) ]
892
+ pub struct EcRequestRebootApOnG3V0 { }
893
+
894
+ impl EcRequest < ( ) > for EcRequestRebootApOnG3V0 {
895
+ fn command_id ( ) -> EcCommands {
896
+ EcCommands :: RebootApOnG3
897
+ }
898
+ fn command_version ( ) -> u8 {
899
+ 0
900
+ }
901
+ }
902
+
903
+ #[ repr( C ) ]
904
+ pub struct EcRequestRebootApOnG3V1 {
905
+ /// Delay in seconds after entering G3 state
906
+ pub delay : u32 ,
907
+ }
908
+
909
+ impl EcRequest < ( ) > for EcRequestRebootApOnG3V1 {
910
+ fn command_id ( ) -> EcCommands {
911
+ EcCommands :: RebootApOnG3
912
+ }
913
+ fn command_version ( ) -> u8 {
914
+ 1
915
+ }
916
+ }
917
+
882
918
// TODO: Actually 128, but if we go above ~80 EC returns REQUEST_TRUNCATED
883
919
// At least when I use the portio driver
884
920
pub const EC_RGBKBD_MAX_KEY_COUNT : usize = 64 ;
You can’t perform that action at this time.
0 commit comments