@@ -243,6 +243,7 @@ pub struct Cli {
243243 pub console : Option < ConsoleArg > ,
244244 pub reboot_ec : Option < RebootEcArg > ,
245245 pub ec_hib_delay : Option < Option < u32 > > ,
246+ pub sysinfo : bool ,
246247 pub uptimeinfo : bool ,
247248 pub s0ix_counter : bool ,
248249 pub hash : Option < String > ,
@@ -334,6 +335,7 @@ pub fn parse(args: &[String]) -> Cli {
334335 console : cli. console ,
335336 reboot_ec : cli. reboot_ec ,
336337 // ec_hib_delay
338+ sysinfo : cli. sysinfo ,
337339 uptimeinfo : cli. uptimeinfo ,
338340 s0ix_counter : cli. s0ix_counter ,
339341 hash : cli. hash ,
@@ -1573,6 +1575,8 @@ pub fn run_with_args(args: &Cli, _allupdate: bool) -> i32 {
15731575 print_err ( ec. set_ec_hib_delay ( * delay) ) ;
15741576 }
15751577 print_err ( ec. get_ec_hib_delay ( ) ) ;
1578+ } else if args. sysinfo {
1579+ print_err ( ec. get_sysinfo ( ) ) ;
15761580 } else if args. uptimeinfo {
15771581 print_err ( ec. get_uptime_info ( ) ) ;
15781582 } else if args. s0ix_counter {
@@ -1977,6 +1981,7 @@ Options:
19771981 --flash-rw-ec <FLASH_EC> Flash EC with new firmware from file
19781982 --reboot-ec Control EC RO/RW jump [possible values: reboot, jump-ro, jump-rw, cancel-jump, disable-jump]
19791983 --ec-hib-delay [<SECONDS>] Get or set EC hibernate delay (S5 to G3)
1984+ --sysinfo Show system info (reset flags, current image, locked state)
19801985 --uptimeinfo Show EC uptime information
19811986 --s0ix-counter Show S0ix counter
19821987 --intrusion Show status of intrusion switch
0 commit comments