summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2021-06-28 10:13:35 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-13 22:14:15 +0000
commitf8367c1b1828a19d03c8b593657add4289b038ef (patch)
treef1da12277bfad9fbcc32fdc4e13b0d51785a9056
parent99abd9fd14adc31e25242a953a813b938211aa9f (diff)
downloadchrome-ec-f8367c1b1828a19d03c8b593657add4289b038ef.tar.gz
qcom: Deprecate AP_RST_REQ in SC7280
Add guards to deprecate the AP_RST_REQ power signal. The AP_RST_REQ is power signal only valid in SC7180. BRANCH=None BUG=b:187980397, b:148246695 TEST=Built all the Chromium EC images and Zephyr EC images. TEST=Modify a board to use the SC7280 CONFIG. Change-Id: I0b12889dd2549665d2c2d6bfc06fddd9b9357175 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2993210 Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--include/power/qcom.h2
-rw-r--r--power/qcom.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/power/qcom.h b/include/power/qcom.h
index 2c071481fd..b2e2f72e27 100644
--- a/include/power/qcom.h
+++ b/include/power/qcom.h
@@ -13,7 +13,9 @@ enum power_signal {
SC7X80_POWER_GOOD,
SC7X80_WARM_RESET,
SC7X80_AP_SUSPEND,
+#ifdef CONFIG_CHIPSET_SC7180
SC7X80_DEPRECATED_AP_RST_REQ,
+#endif
POWER_SIGNAL_COUNT,
};
#endif
diff --git a/power/qcom.c b/power/qcom.c
index c6a87c9b92..a57f13483e 100644
--- a/power/qcom.c
+++ b/power/qcom.c
@@ -64,11 +64,13 @@ const struct power_signal_info power_signal_list[] = {
POWER_SIGNAL_ACTIVE_HIGH,
"AP_SUSPEND",
},
+#ifdef CONFIG_CHIPSET_SC7180
[SC7X80_DEPRECATED_AP_RST_REQ] = {
GPIO_DEPRECATED_AP_RST_REQ,
POWER_SIGNAL_ACTIVE_HIGH,
"DEPRECATED_AP_RST_REQ",
},
+#endif /* defined(CONFIG_CHIPSET_SC7180) */
};
BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT);