Skip to content

Commit

Permalink
boards: arm: nrf9160_pca20035: Enable ADP536x buck discharge
Browse files Browse the repository at this point in the history
Discharging of the buck regulator is required for the board
to function properly. This patch enables discharging by default.

Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
  • Loading branch information
jtguggedal committed Apr 8, 2019
1 parent 4e9dfc5 commit 45555ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions boards/arm/nrf9160_pca20035/board_nonsecure.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ static int power_mgmt_init(void)
return err;
}

err = adp536x_buck_discharge_set(true);
if (err) {
return err;
}


/* The value 0x07 sets VBUS current limit to 500 mA. */
err = adp536x_vbus_current_set(0x07);
if (err) {
Expand Down

0 comments on commit 45555ef

Please sign in to comment.