Skip to content

Commit

Permalink
[modules/rtm.c] Override RTM power at startup
Browse files Browse the repository at this point in the history
Restore board state previous to a possible MMC reboot
  • Loading branch information
Henrique Silva committed Mar 20, 2019
1 parent 9dbd436 commit 76fac6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/rtm.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,14 @@ void RTM_Manage( void * Parameters )
/* Perform hotswap first read */
while (!rtm_get_hotswap_handle_status( &rtm_hs_state ));

/* Override RTM Blue LED state so that if the handle is closed when the MMC is starting, the LED remains in the correct state */
/* Override RTM state so that if the handle is closed when the MMC is starting,
* the LED and payload power remains in the correct state */
if ( rtm_hs_state == 0 ) {
LEDUpdate( FRU_RTM, LED_BLUE, LEDMODE_OVERRIDE, LEDINIT_OFF, 0, 0 );
payload_send_message(FRU_RTM, PAYLOAD_MESSAGE_RTM_ENABLE);
} else {
LEDUpdate( FRU_RTM, LED_BLUE, LEDMODE_OVERRIDE, LEDINIT_ON, 0, 0 );
payload_send_message(FRU_RTM, PAYLOAD_MESSAGE_QUIESCE);
}
} else {
printf("[RTM] Rear Board is not compatible.\n");
Expand Down

0 comments on commit 76fac6b

Please sign in to comment.