From e398cef7976ca7fe9a1795dae497036bb3d051d7 Mon Sep 17 00:00:00 2001 From: dnojiri Date: Fri, 27 Mar 2020 16:22:13 -0700 Subject: EFS2: Add EC_FEATURE_EFS2 This patch adds EC_EEATURE_EFS2. It allows AP, servo, and a developer to query whether EFS2 is supported or not. Signed-off-by: dnojiri BUG=b/152449880 BRANCH=none TEST=Verify ectool inventory prints 38 on Helios. Change-Id: Id308cad4115314380ca47c45c3212e2e6fb4095d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2125410 Reviewed-by: Daisuke Nojiri Tested-by: Daisuke Nojiri Auto-Submit: Daisuke Nojiri Commit-Queue: Daisuke Nojiri --- common/ec_features.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/ec_features.c') diff --git a/common/ec_features.c b/common/ec_features.c index 568f3e8bef..adca658445 100644 --- a/common/ec_features.c +++ b/common/ec_features.c @@ -128,6 +128,9 @@ uint32_t get_feature_flags1(void) #if defined(CONFIG_LID_ANGLE) && defined(CONFIG_TABLET_MODE) | EC_FEATURE_MASK_1(EC_FEATURE_REFINED_TABLET_MODE_HYSTERESIS) #endif +#ifdef CONFIG_VBOOT_EFS2 + | EC_FEATURE_MASK_1(EC_FEATURE_EFS2) +#endif #ifdef CONFIG_IPI | EC_FEATURE_MASK_1(EC_FEATURE_SCP) #endif -- cgit v1.2.1