@@ -15,14 +15,14 @@ use gateway_messages::sp_impl::{
1515 BoundsChecked , DeviceDescription , Sender , SpHandler ,
1616} ;
1717use gateway_messages:: {
18- ignition, ComponentAction , ComponentActionResponse , ComponentDetails ,
19- ComponentUpdatePrepare , DiscoverResponse , DumpSegment , DumpTask ,
20- GpioToggleCount , Header , IgnitionCommand , IgnitionState , LastPostCode ,
21- Message , MessageKind , MgsError , MgsRequest , MgsResponse , PostCode ,
22- PowerState , PowerStateTransition , RotBootInfo , RotRequest , RotResponse ,
23- SensorRequest , SensorResponse , SpComponent , SpError , SpPort as GwSpPort ,
24- SpRequest , SpStateV2 , SpUpdatePrepare , UpdateChunk , UpdateId , UpdateStatus ,
25- SERIAL_CONSOLE_IDLE_TIMEOUT ,
18+ ignition, ApobComponentAction , ComponentAction , ComponentActionResponse ,
19+ ComponentDetails , ComponentUpdatePrepare , DiscoverResponse , DumpSegment ,
20+ DumpTask , GpioToggleCount , Header , IgnitionCommand , IgnitionState ,
21+ LastPostCode , Message , MessageKind , MgsError , MgsRequest , MgsResponse ,
22+ PostCode , PowerState , PowerStateTransition , RotBootInfo , RotRequest ,
23+ RotResponse , SensorRequest , SensorResponse , SpComponent , SpError ,
24+ SpPort as GwSpPort , SpRequest , SpStateV2 , SpUpdatePrepare , UpdateChunk ,
25+ UpdateId , UpdateStatus , SERIAL_CONSOLE_IDLE_TIMEOUT ,
2626} ;
2727use heapless:: { Deque , Vec } ;
2828use host_sp_messages:: HostStartupOptions ;
@@ -613,6 +613,17 @@ impl SpHandler for MgsHandler {
613613 . unwrap ( ) ;
614614 Ok ( ComponentActionResponse :: Ack )
615615 }
616+ (
617+ SpComponent :: HOST_CPU_BOOT_APOB ,
618+ ComponentAction :: Apob ( action) ,
619+ ) => {
620+ let r = match action {
621+ ApobComponentAction :: Clear => {
622+ self . host_flash_update . apob_clear ( )
623+ }
624+ } ;
625+ Ok ( ComponentActionResponse :: Apob ( r) )
626+ }
616627 _ => Err ( SpError :: RequestUnsupportedForComponent ) ,
617628 }
618629 }
0 commit comments