summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/ccd_config.c2
-rw-r--r--include/config.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/common/ccd_config.c b/common/ccd_config.c
index 2b97ba3133..a0f1ffe3e9 100644
--- a/common/ccd_config.c
+++ b/common/ccd_config.c
@@ -887,6 +887,7 @@ static enum vendor_cmd_rc ccd_open(struct vendor_cmd_params *p)
* command came from the AP.
*/
} else {
+#ifndef CONFIG_CCD_OPEN_PREPVT
/*
* - Password not set
* - Battery is present
@@ -894,6 +895,7 @@ static enum vendor_cmd_rc ccd_open(struct vendor_cmd_params *p)
*/
why_denied = "nopwd";
goto denied;
+#endif
}
/* Fail and abort if already checking physical presence */
diff --git a/include/config.h b/include/config.h
index f3ab3b81cf..2231491af5 100644
--- a/include/config.h
+++ b/include/config.h
@@ -531,6 +531,8 @@
#undef CONFIG_CASE_CLOSED_DEBUG_V1
/* Allow unsafe debugging functionality in V1 configuration */
#undef CONFIG_CASE_CLOSED_DEBUG_V1_UNSAFE
+/* Loosen Open restrictions for prePVT devices */
+#undef CONFIG_CCD_OPEN_PREPVT
/*
* Capsense chip has buttons, too.