summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Tessler <jrt@google.com>2020-08-23 10:02:42 -0400
committerCommit Bot <commit-bot@chromium.org>2020-08-23 15:42:36 +0000
commit08f70bf2bd2e0d9300558db504cedc1331e05542 (patch)
tree84b7a3bbbd9b618b1ff94ea53b5f5cf6399787ce
parenta2f07380ebb39235261fe53ef0c32d9f2c1858b0 (diff)
downloadchrome-ec-stabilize-13099.72.B-master.tar.gz
Import PSE command header changes from masterstabilize-13099.72.B-master
This change fixes a broken build and is a quasi-cherry-pick of https://crrev.com/c/2354544, where I selectively import the change to ec_commands.h. This file is referenced by both EC firmware and host ec-utils builds. BUG=b:166001775 TEST=emerge-endeavour ec-utils BRANCH=endeavour,M84-13099.72.B Signed-off-by: Joe Tessler <jrt@chromium.org> Change-Id: Ib8fcaf5047a50f1d8753080327828c181dfe18d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2370863 Commit-Queue: Bruce Goodwin <bgoodwin@chromium.org> Reviewed-by: Stefan Adolfsson <sadolfsson@chromium.org> Reviewed-by: Bruce Goodwin <bgoodwin@chromium.org>
-rw-r--r--include/ec_commands.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index aca6032d45..9e2c2f50be 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -5114,6 +5114,33 @@ struct __ec_align4 ec_response_ec_codec_wov_read_audio_shm {
};
/*****************************************************************************/
+/* Commands for PoE PSE controller */
+
+#define EC_CMD_PSE 0x00C0
+
+enum ec_pse_subcmd {
+ EC_PSE_STATUS = 0x0,
+ EC_PSE_ENABLE = 0x1,
+ EC_PSE_DISABLE = 0x2,
+ EC_PSE_SUBCMD_COUNT,
+};
+
+struct __ec_align1 ec_params_pse {
+ uint8_t cmd; /* enum ec_pse_subcmd */
+ uint8_t port; /* PSE port */
+};
+
+enum ec_pse_status {
+ EC_PSE_STATUS_DISABLED = 0x0,
+ EC_PSE_STATUS_ENABLED = 0x1,
+ EC_PSE_STATUS_POWERED = 0x2,
+};
+
+struct __ec_align1 ec_response_pse_status {
+ uint8_t status; /* enum ec_pse_status */
+};
+
+/*****************************************************************************/
/* System commands */
/*