aboutsummaryrefslogtreecommitdiff
path: root/src/ec/google/wilco/commands.h
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2018-11-17 12:17:04 -0700
committerPatrick Georgi <pgeorgi@google.com>2018-12-04 10:17:50 +0000
commit57f22f6ffe598c3886b604eae5a46f8b584c0470 (patch)
tree2842ac44752f234e04cfcfe28b183b207e4a1eca /src/ec/google/wilco/commands.h
parentf6ce6030b9f895ef2b1a0bf8a0dc539b5237e1fe (diff)
ec/google/wilco: Enable WiFi radio
Add EC command to enable WiFi radio and send that command at startup. Tested to ensure WiFi is functional on a sarien board. Change-Id: Iac46895c7118567e1eb55ea33051a1662103b563 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/c/29673 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/google/wilco/commands.h')
-rw-r--r--src/ec/google/wilco/commands.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ec/google/wilco/commands.h b/src/ec/google/wilco/commands.h
index 4a19030216..0989b202d7 100644
--- a/src/ec/google/wilco/commands.h
+++ b/src/ec/google/wilco/commands.h
@@ -26,6 +26,8 @@ enum {
KB_POWER_STATUS = 0x05,
/* Inform the EC aboout the reason host is turning off */
KB_POWER_OFF = 0x08,
+ /* Control wireless radios */
+ KB_RADIO_CONTROL = 0x2b,
/* Save PS/2 data before S3 suspend */
KB_SAVE = 0x2f,
/* Restore PS/2 data after S3 resume */
@@ -61,6 +63,18 @@ enum ec_audio_mute {
AUDIO_UNMUTE_125MS, /* Unmute in 125ms */
};
+enum ec_radio {
+ RADIO_WIFI = 0x02,
+};
+
+/**
+ * wilco_ec_radio_control() - Control wireless radios.
+ * @ec_radio: Wireless radio type.
+ * @state: Turn radio on or off.
+ * Return: 0 if successful or negative error code on failure.
+ */
+int wilco_ec_radio_control(enum ec_radio radio, uint8_t state);
+
/*
* EC Information
*/