summaryrefslogtreecommitdiff
path: root/include/power/amd_x86.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/power/amd_x86.h')
-rw-r--r--include/power/amd_x86.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/power/amd_x86.h b/include/power/amd_x86.h
new file mode 100644
index 0000000000..57011d97df
--- /dev/null
+++ b/include/power/amd_x86.h
@@ -0,0 +1,29 @@
+/* Copyright 2022 The ChromiumOS Authors
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef __CROS_EC_POWER_AMD_X86_H_
+#define __CROS_EC_POWER_AMD_X86_H_
+
+/*
+ * In legacy EC-OS, the power signals are defined as part of
+ * the board include headers, but with Zephyr, this is common.
+ */
+#if defined(CONFIG_ZEPHYR) && defined(CONFIG_AP_X86_AMD)
+
+/* Power input signals */
+enum power_signal {
+ X86_SLP_S3_N, /* SOC -> SLP_S3_L */
+ X86_SLP_S5_N, /* SOC -> SLP_S5_L */
+
+ X86_S0_PGOOD, /* PMIC -> S0_PWROK_OD */
+ X86_S5_PGOOD, /* PMIC -> S5_PWROK */
+
+ /* Number of X86 signals */
+ POWER_SIGNAL_COUNT,
+};
+
+#endif
+
+#endif /* __CROS_EC_POWER_AMD_X86_H_ */