UPSTREAM: platform/chrome: Update EC feature flags

Define EC_FEATURE_UCSI_PPM to enable usage of the cros_ec_ucsi
driver. Also, add any feature flags that are implemented by the EC
but are missing in the kernel header.

Signed-off-by: Pavan Holla <pholla@chromium.org>
Signed-off-by: Łukasz Bartosik <ukaszb@chromium.org>
Acked-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20240910101527.603452-3-ukaszb@chromium.org
Signed-off-by: Lee Jones <lee@kernel.org>
(cherry picked from commit 2b627246c0cf2b54f1b17531dde964cf5b99b2a5)

Bug: 381479678
Bug: 381479318

Change-Id: I2df166113fe4c0cf1c12688aa05e6d7f4cb96d99
Signed-off-by: Jameson Thies <jthies@google.com>
This commit is contained in:
Pavan Holla
2024-09-10 10:15:21 +00:00
committed by Greg Kroah-Hartman
parent 2ce3f8b341
commit dfc605c213
@@ -1312,6 +1312,38 @@ enum ec_feature_code {
* The EC supports the AP composing VDMs for us to send.
*/
EC_FEATURE_TYPEC_AP_VDM_SEND = 46,
/*
* The EC supports system safe mode panic recovery.
*/
EC_FEATURE_SYSTEM_SAFE_MODE = 47,
/*
* The EC will reboot on runtime assertion failures.
*/
EC_FEATURE_ASSERT_REBOOTS = 48,
/*
* The EC image is built with tokenized logging enabled.
*/
EC_FEATURE_TOKENIZED_LOGGING = 49,
/*
* The EC supports triggering an STB dump.
*/
EC_FEATURE_AMD_STB_DUMP = 50,
/*
* The EC supports memory dump commands.
*/
EC_FEATURE_MEMORY_DUMP = 51,
/*
* The EC supports DP2.1 capability
*/
EC_FEATURE_TYPEC_DP2_1 = 52,
/*
* The MCU is System Companion Processor Core 1
*/
EC_FEATURE_SCP_C1 = 53,
/*
* The EC supports UCSI PPM.
*/
EC_FEATURE_UCSI_PPM = 54,
};
#define EC_FEATURE_MASK_0(event_code) BIT(event_code % 32)