Skip to content

Commit

Permalink
Adjust AMD power sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 authored and crawfxrd committed Jul 9, 2022
1 parent 26f20f4 commit d684d6f
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions src/board/system76/common/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,32 +147,31 @@ void power_init(void) {
void power_on(void) {
DEBUG("power_on\n");

delay_ms(100);

// 0ms
GPIO_SET_DEBUG(VA_EC_EN, true);

delay_ms(30);
delay_ms(3);
// 3ms
GPIO_SET_DEBUG(PWR_BTN_N, true);

delay_ms(27);
// 30ms
GPIO_SET_DEBUG(DD_ON, true);

delay_us(9);
delay_ms(80);
// 110ms
GPIO_SET_DEBUG(EC_RSMRST_N, true);

GPIO_SET_DEBUG(EC_EN, true);

delay_ms(81);

delay_ms(70);
// 180ms
GPIO_SET_DEBUG(PWR_BTN_N, false);

delay_ms(19);

GPIO_SET_DEBUG(EC_RSMRST_N, true);

delay_ms(102);

delay_ms(120);
// 300ms
GPIO_SET_DEBUG(PWR_BTN_N, true);

delay_ms(98);

update_power_state();
}

Expand Down

0 comments on commit d684d6f

Please sign in to comment.