Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions board/aspeed/evb_ast2700/evb_ast2700.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,16 @@ void power_on_hpm(int retry)
int hpm_en_gpio = HPM_EN_GPIO_REV_A;
int hpm_rdy_gpio = HPM_RDY_GPIO_REV_A;
const char *env_val = env_get("EN_HPM_PWR_SEQ");
const char *por_rst_env = env_get("por_rst");
Comment thread
mahkurap marked this conversation as resolved.
bool env_enabled = (env_val && !strcmp(env_val, "1"));
bool rev_b = is_scm_rev_b();
bool ac_cycle_boot = (por_rst_env && !strcmp(por_rst_env, "true"));

if (!ac_cycle_boot) {
Comment thread
amd-knieman marked this conversation as resolved.
printf("Skipping HPM power sequence: non-AC-cycle boot (por_rst=%s)\n",
por_rst_env ? por_rst_env : "unset");
return;
}

if (rev_b) {
hpm_rst_gpio = HPM_RST_GPIO_REV_B;
Expand Down