Skip to content

Commit ba9a946

Browse files
[modify] update pd power state to S0ix for reducing power consumption
PD needs 0.1.10 or the latest. EE teset passed. Signed-off-by: Matt Wang <Matt_Wang@compal.com>
1 parent 46d4341 commit ba9a946

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

board/hx30/cypress5525.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,11 +441,9 @@ void update_system_power_state(void)
441441
case POWER_S3S5:
442442
cypd_set_power_state(CYP5525_POWERSTATE_S5);
443443
break;
444-
/* wait PD FW stable */
445-
/*case POWER_S0S0ix:
444+
case POWER_S0S0ix:
446445
cypd_set_power_state(CYP5525_POWERSTATE_S3);
447446
break;
448-
*/
449447
default:
450448
cypd_set_error_recovery();
451449
cypd_set_power_state(CYP5525_POWERSTATE_S0);

board/hx30/power_sequence.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ enum power_state power_handle_state(enum power_state state)
384384
if (resume_ms_flag > 0)
385385
resume_ms_flag--;
386386
CPRINTS("PH S0ixS0->S0");
387+
cypd_set_power_active(POWER_S0);
387388
return POWER_S0;
388389

389390
break;
@@ -395,6 +396,7 @@ enum power_state power_handle_state(enum power_state state)
395396
if (enter_ms_flag > 0)
396397
enter_ms_flag--;
397398
CPRINTS("PH S0S0ix->S0ix");
399+
cypd_set_power_active(POWER_S3);
398400
return POWER_S0ix;
399401

400402
break;

0 commit comments

Comments
 (0)