Skip to content

Commit 93abf68

Browse files
Enric Balletbo i SerraLee Jones
authored andcommitted
mfd: cros_ec: Update the EC feature codes
Update the feature enum for the Chromebook Embedded Controller to the latest version. Some of these enums are still not used in the kernel but we might be also interested on have these enums up to date. Userspace can use them to query the features to the EC via the cros-ec character device. While here, also fix a typo in one comment in the enum. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent dd66290 commit 93abf68

1 file changed

Lines changed: 31 additions & 1 deletion

File tree

‎include/linux/mfd/cros_ec_commands.h‎

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ enum ec_feature_code {
840840
* (Common Smart Battery System Interface Specification)
841841
*/
842842
EC_FEATURE_SMART_BATTERY = 18,
843-
/* EC can dectect when the host hangs. */
843+
/* EC can detect when the host hangs. */
844844
EC_FEATURE_HANG_DETECT = 19,
845845
/* Report power information, for pit only */
846846
EC_FEATURE_PMU = 20,
@@ -852,10 +852,40 @@ enum ec_feature_code {
852852
EC_FEATURE_USB_MUX = 23,
853853
/* Motion Sensor code has an internal software FIFO */
854854
EC_FEATURE_MOTION_SENSE_FIFO = 24,
855+
/* Support temporary secure vstore */
856+
EC_FEATURE_VSTORE = 25,
857+
/* EC decides on USB-C SS mux state, muxes configured by host */
858+
EC_FEATURE_USBC_SS_MUX_VIRTUAL = 26,
855859
/* EC has RTC feature that can be controlled by host commands */
856860
EC_FEATURE_RTC = 27,
861+
/* The MCU exposes a Fingerprint sensor */
862+
EC_FEATURE_FINGERPRINT = 28,
863+
/* The MCU exposes a Touchpad */
864+
EC_FEATURE_TOUCHPAD = 29,
865+
/* The MCU has RWSIG task enabled */
866+
EC_FEATURE_RWSIG = 30,
867+
/* EC has device events support */
868+
EC_FEATURE_DEVICE_EVENT = 31,
869+
/* EC supports the unified wake masks for LPC/eSPI systems */
870+
EC_FEATURE_UNIFIED_WAKE_MASKS = 32,
871+
/* EC supports 64-bit host events */
872+
EC_FEATURE_HOST_EVENT64 = 33,
873+
/* EC runs code in RAM (not in place, a.k.a. XIP) */
874+
EC_FEATURE_EXEC_IN_RAM = 34,
857875
/* EC supports CEC commands */
858876
EC_FEATURE_CEC = 35,
877+
/* EC supports tight sensor timestamping. */
878+
EC_FEATURE_MOTION_SENSE_TIGHT_TIMESTAMPS = 36,
879+
/*
880+
* EC supports tablet mode detection aligned to Chrome and allows
881+
* setting of threshold by host command using
882+
* MOTIONSENSE_CMD_TABLET_MODE_LID_ANGLE.
883+
*/
884+
EC_FEATURE_REFINED_TABLET_MODE_HYSTERESIS = 37,
885+
/* EC supports audio codec. */
886+
EC_FEATURE_AUDIO_CODEC = 38,
887+
/* EC Supports SCP. */
888+
EC_FEATURE_SCP = 39,
859889
/* The MCU is an Integrated Sensor Hub */
860890
EC_FEATURE_ISH = 40,
861891
};

0 commit comments

Comments
 (0)