Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit b586b9a

Browse files
haoyu-tangbuildslave
authored andcommitted
To correct IOC CBC setting
remap ignore toggle of sus_stat to CBC frames Change-Id: I52abec8cbf455824ebf62b0d5ff90663806fc5a0 Tracked-On: https://jira01.devtools.intel.com/browse/OAM-66628 Signed-off-by: Tang Haoyu <[email protected]> Reviewed-on: https://android.intel.com:443/638411
1 parent 06f5817 commit b586b9a

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

drivers/ioc_uart/ioc_uart.c

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ static char CBC_NUMBER_SUS_STAT_TOGGLES_2_HALT[] = {0x05,0x00,0x0E,0x02,0x00,0x0
6464
static char CBC_NUMBER_SUS_STAT_TOGGLES_1_HALT[] = {0x05,0x00,0x0E,0x02,0x00,0x03,0x00,0xE8};
6565
static char CBC_NUMBER_SUS_STAT_TOGGLES_2_REBOOT[] = {0x05,0x00,0x0E,0x02,0x00,0x06,0x00,0xE5};
6666
static char CBC_NUMBER_SUS_STAT_TOGGLES_1_REBOOT[] = {0x05,0x00,0x0E,0x02,0x00,0x04,0x00,0xE7};
67-
//static char CBC_CONFIG_RESTART_SYSTEM[] = {0x05,0x00,0x0E,0x02,0x00,0x02,0x00,0xE9};
68-
//static char CBC_CONFIG_SHUTDOWN_SYSTEM[] = {0x05,0x00,0x0E,0x02,0x00,0x01,0x00,0xEA};
67+
static char CBC_CONFIG_RESTART_SYSTEM[] = {0x05,0x00,0x0E,0x02,0x00,0x02,0x00,0xE9};
68+
static char CBC_CONFIG_SHUTDOWN_SYSTEM[] = {0x05,0x00,0x0E,0x02,0x00,0x01,0x00,0xEA};
6969
static char CBC_ENTER_IOC_BOOTLOADER[] = {0x05,0x00,0x20,0x01,0x30,0x10,0x80,0x1a,
7070
0x05,0x00,0x20,0x01,0x30,0x10,0x80,0x11,
7171
0x05,0x00,0x20,0x01,0x30,0x10,0x80,0x1a,
@@ -452,17 +452,21 @@ set_ignore_sus_stat_toggles_shutdown_behaviour(EFI_IGNORE_SUS_STAT_TOGGLES num_i
452452
init_uart_ioc(old_state);
453453
switch (shutdown) {
454454
case RESTART_SYSTEM:
455-
if(IGNORE_SUS_STAT_2==num_ignore_sus_stat)
455+
if(IGNORE_SUS_STAT_3 == num_ignore_sus_stat)
456456
cbc_message_buf = CBC_NUMBER_SUS_STAT_TOGGLES_2_REBOOT;
457-
else
457+
else if(IGNORE_SUS_STAT_2 == num_ignore_sus_stat)
458458
cbc_message_buf = CBC_NUMBER_SUS_STAT_TOGGLES_1_REBOOT;
459+
else
460+
cbc_message_buf = CBC_CONFIG_RESTART_SYSTEM;
459461
break;
460462
case SHUTDOWN_SYSTEM:
461463
default:
462-
if(IGNORE_SUS_STAT_2==num_ignore_sus_stat)
464+
if(IGNORE_SUS_STAT_3 == num_ignore_sus_stat)
463465
cbc_message_buf = CBC_NUMBER_SUS_STAT_TOGGLES_2_HALT;
464-
else
466+
else if(IGNORE_SUS_STAT_2 == num_ignore_sus_stat)
465467
cbc_message_buf = CBC_NUMBER_SUS_STAT_TOGGLES_1_HALT;
468+
else
469+
cbc_message_buf = CBC_CONFIG_SHUTDOWN_SYSTEM;
466470
break;
467471
}
468472

0 commit comments

Comments
 (0)