summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
Diffstat (limited to 'power')
-rw-r--r--power/sc7180.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/power/sc7180.c b/power/sc7180.c
index 0af461e680..4372973914 100644
--- a/power/sc7180.c
+++ b/power/sc7180.c
@@ -400,6 +400,11 @@ static int set_pmic_pwron(int enable)
if (enable == is_pmic_pwron())
return EC_SUCCESS;
+ if (!gpio_get_level(GPIO_PMIC_KPD_PWR_ODL)) {
+ CPRINTS("PMIC_KPD_PWR_ODL not pulled up by PMIC; cancel pwron");
+ return EC_ERROR_UNKNOWN;
+ }
+
/*
* Power-on sequence:
* 1. Hold down PMIC_KPD_PWR_ODL, which is a power-on trigger