Skip to content

Commit

Permalink
Added CLEAR_FAULTS to initialize VR.
Browse files Browse the repository at this point in the history
  • Loading branch information
SchaffHub committed Jul 28, 2023
1 parent 48d61c5 commit 276af9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,7 @@ double Driver::GetPower() {
int Driver::AutoConfigVr() {

// IR38263
const uint8_t IR_CLEAR_FAULTS = 0x03;
const uint8_t IR_VOUT_OV_FAULT_LIMIT = 0x40;
const uint8_t IR_VOUT_OV_FAULT_RESPONSE = 0x41;
const uint8_t IR_IOUT_OC_FAULT_LIMIT = 0x46;
Expand Down Expand Up @@ -997,6 +998,9 @@ int Driver::AutoConfigVr() {
PMBusWrite(IR_IOUT_OC_FAULT_RESPONSE, 1, &iout_oc_response);
PMBusWrite(IR_OT_FAULT_RESPONSE, 1, &ot_response);

// Clear faults.
PMBusWrite(IR_CLEAR_FAULTS, 0, buf);

return 0;
}

Expand Down

0 comments on commit 276af9c

Please sign in to comment.