summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-03-17 18:24:57 -0600
committerCommit Bot <commit-bot@chromium.org>2021-03-18 23:18:44 +0000
commita69dcfa71d60c5c8b4affbc16494577b1a81acf4 (patch)
tree08e6fd6568c3f1e4eaa8f5fec2080e91ca4c6401 /include
parentec4d035fd3d0cbf019de1c6a4da269309fa35b4a (diff)
downloadchrome-ec-a69dcfa71d60c5c8b4affbc16494577b1a81acf4.tar.gz
power: sc7180: move power signals definition to sc7180 common
Move the SC7180 power signals list from Trogdor baseboard directory to common code under sc7180.{c,h}. This allows us to include this code more directly for Zephyr builds, without needing to pull anything out of the Trogdor baseboard directory. BUG=b:183054226 BRANCH=none TEST=make buildall && zmake testall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I3657e7a1c1ee8b9593574e6f65d07eda1f7ec61c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2774360 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/power/sc7180.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/power/sc7180.h b/include/power/sc7180.h
new file mode 100644
index 0000000000..4b61fe539c
--- /dev/null
+++ b/include/power/sc7180.h
@@ -0,0 +1,21 @@
+/* Copyright 2021 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef __CROS_EC_POWER_SC7180_H_
+#define __CROS_EC_POWER_SC7180_H_
+
+#ifdef CONFIG_CHIPSET_SC7180
+enum power_signal {
+ SC7180_AP_RST_ASSERTED = 0,
+ SC7180_PS_HOLD,
+ SC7180_POWER_GOOD,
+ SC7180_WARM_RESET,
+ SC7180_AP_SUSPEND,
+ SC7180_DEPRECATED_AP_RST_REQ,
+ POWER_SIGNAL_COUNT,
+};
+#endif
+
+#endif /* __CROS_EC_POWER_SC7180_H_ */