Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-brust committed May 28, 2024
1 parent a1e5f2b commit 3852e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootloader/prebootloader/src/rtl872x/part1/rtl_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static uint32_t boot_reason_set(void) {
/* backup boot reason to REG_LP_SYSTEM_CFG2 */
temp_bootcfg = HAL_READ32(SYSTEM_CTRL_BASE_LP, REG_LP_SYSTEM_CFG2);
temp_bootcfg |= tmp_reason;
HAL_WRITE32(SYSTEM_CTRL_BASE_LP, REG_LP_SYSTEM_CFG2, tmp_reason); // Should tmp_reason be `temp_bootcfg`? If we have deepsleep or brownout boots, we will clear some of the bits in REG_LP_SYSTEM_CFG2
HAL_WRITE32(SYSTEM_CTRL_BASE_LP, REG_LP_SYSTEM_CFG2, tmp_reason);

return 0;
}
Expand Down

0 comments on commit 3852e14

Please sign in to comment.