summaryrefslogtreecommitdiff
path: root/power/sc7180.c
diff options
context:
space:
mode:
Diffstat (limited to 'power/sc7180.c')
-rw-r--r--power/sc7180.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/power/sc7180.c b/power/sc7180.c
index 71ada2754a..c1585a47ff 100644
--- a/power/sc7180.c
+++ b/power/sc7180.c
@@ -318,7 +318,7 @@ static int wait_switchcap_power_good(int enable)
poll_deadline = get_time();
poll_deadline.val += SWITCHCAP_PG_CHECK_TIMEOUT;
- while (enable != gpio_get_level(GPIO_DA9313_GPIO0) &&
+ while (enable != board_is_switchcap_power_good() &&
get_time().val < poll_deadline.val) {
usleep(SWITCHCAP_PG_CHECK_WAIT);
}
@@ -327,7 +327,7 @@ static int wait_switchcap_power_good(int enable)
* Check the timeout case. Just show a message. More check later
* will switch the power state.
*/
- if (enable != gpio_get_level(GPIO_DA9313_GPIO0)) {
+ if (enable != board_is_switchcap_power_good()) {
if (enable)
CPRINTS("SWITCHCAP NO POWER GOOD!");
else
@@ -344,7 +344,7 @@ static int wait_switchcap_power_good(int enable)
*/
static int is_system_powered(void)
{
- return gpio_get_level(GPIO_SWITCHCAP_ON);
+ return board_is_switchcap_enabled();
}
/**
@@ -407,7 +407,7 @@ static int wait_pmic_pwron(int enable, unsigned int timeout)
*/
static void set_system_power_no_check(int enable)
{
- gpio_set_level(GPIO_SWITCHCAP_ON, enable);
+ board_set_switchcap_power(enable);
}
/**