summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRushikesh S Kadam <rushikesh.s.kadam@intel.com>2019-01-28 18:35:43 +0530
committerchrome-bot <chrome-bot@chromium.org>2019-02-04 12:42:29 -0800
commitfe59e6140d7ff8ee90359d3144bffb6fbcf4e053 (patch)
tree3599725bddf775f3d60cb09b1a0740adf42ed266 /common
parenta11c3a1fd60ec8e12cde5e910b95d8ca6d6bf378 (diff)
downloadchrome-ec-fe59e6140d7ff8ee90359d3144bffb6fbcf4e053.tar.gz
ish: add ec_feature flag for ISH
The kernel driver needs to be able to distinguish an ish cros_ec implementation from a normal EC implementation. Add a new flag to the ec features that advertises this. This will follow the same logic that fingerprint and touchpad do in the kernel. BRANCH=none BUG=b:123075957 TEST=verified that dis assembly for arcada includes this new flag Change-Id: Ic766097fc938888fde808101fc9f1f459f061d84 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1446539 Reviewed-by: Nick Crews <ncrews@chromium.org> Reviewed-by: Rushikesh S Kadam <rushikesh.s.kadam@intel.com> Reviewed-by: Gwendal Grignou <gwendal@google.com>
Diffstat (limited to 'common')
-rw-r--r--common/ec_features.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/ec_features.c b/common/ec_features.c
index eba3889681..8d364118e0 100644
--- a/common/ec_features.c
+++ b/common/ec_features.c
@@ -137,6 +137,9 @@ uint32_t get_feature_flags1(void)
#ifdef CONFIG_IPI
| EC_FEATURE_MASK_1(EC_FEATURE_SCP)
#endif
+#ifdef CHIP_ISH
+ | EC_FEATURE_MASK_1(EC_FEATURE_ISH)
+#endif
;
#ifdef CONFIG_EC_FEATURE_BOARD_OVERRIDE
result = board_override_feature_flags1(result);