Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2697513yba; Mon, 8 Apr 2019 02:44:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqye3X/pn3ZlgGicjFS9Rk/TSe7BmtV3U0HoygKPbRPJAvQWkFYOCmzlP3e/jOE3ANYX2eaq X-Received: by 2002:a17:902:be18:: with SMTP id r24mr12007224pls.69.1554716672602; Mon, 08 Apr 2019 02:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554716672; cv=none; d=google.com; s=arc-20160816; b=op+0Y6+2ckE15xz4kn/ZweLinqf/JSc74qu57AWfVBxEnJ5t5ScUH9OvsFZGxraLZ9 S1UDUOpLnnqdWS7+W7LmMS4blBEpFhdRiwMskzghuMO4byqXymFEFegE+UqLhPjxlV3X iHlf07jYz4ehcG7dpzs7VaWTWGKC4LMrJw4yjAdUly8zWpVYTHbPjkbLrH3x/y0C4ko+ 7Ki0d7ZBaU4l0j6wcUt45dp3HXJ9a4izpSo2n9cx9UOy99JMbz2wloG2Nh8jPm7pgBq9 X0TgiWIuHH0b4KkF1s4eTtb8VG2KF1MPeZwQzuuwfRvX0JMCVtho2HjmBGq3DAqnS3RN x/ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8672JJ7DMGZhradQ2ZGVYqcKTn3/9otp+oGnCw05Wzk=; b=X3KCI2MVYBcuB7Q+21sk4FpTnZW4djAMDPwTGlxzLJb0M3h/jmBy9pkUp2AqPoLUHY Woqm7PQ1BPkSFnDfXC0dDihn7bXZU6plCVKBljPcXAW7jqhwacXK/ySb3HxhTjXiPNG5 rSXNQVAo2Nz63vhr9HXeF8dvlQJIACXTQLeYf6AykvZH4x0wZKHc+MgWgNGVDzh/J5yg O5A4PN+Lz1kCwbw7P8U65Jty3NNMjBusPvrgb3cDp4NWUEsGbSlwm4ApdgTQv36NeLWc hKihs8eg9vOlnyiWpCWna6pbhZBg5xVoywtsOmSuaVeAtoNqZBFoNKbikH77Pv+VbPhJ zxyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9si25046779pgp.539.2019.04.08.02.44.17; Mon, 08 Apr 2019 02:44:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726640AbfDHJlv (ORCPT + 99 others); Mon, 8 Apr 2019 05:41:51 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:44770 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726240AbfDHJlv (ORCPT ); Mon, 8 Apr 2019 05:41:51 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id A38FF284270 From: Enric Balletbo i Serra To: lee.jones@linaro.org Cc: gwendal@chromium.org, bleung@chromium.org, linux-kernel@vger.kernel.org, groeck@chromium.org, kernel@collabora.com, dtor@chromium.org, rushikesh.s.kadam@intel.com Subject: [PATCH v3 1/4] mfd: cros_ec: Update the EC feature codes Date: Mon, 8 Apr 2019 11:41:38 +0200 Message-Id: <20190408094141.27858-2-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190408094141.27858-1-enric.balletbo@collabora.com> References: <20190408094141.27858-1-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Changes in v3: None Changes in v2: - Add a patch to introduce the required enums to build. include/linux/mfd/cros_ec_commands.h | 34 +++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h index 1cdb07c0ece1..dcec96f01879 100644 --- a/include/linux/mfd/cros_ec_commands.h +++ b/include/linux/mfd/cros_ec_commands.h @@ -840,7 +840,7 @@ enum ec_feature_code { * (Common Smart Battery System Interface Specification) */ EC_FEATURE_SMART_BATTERY = 18, - /* EC can dectect when the host hangs. */ + /* EC can detect when the host hangs. */ EC_FEATURE_HANG_DETECT = 19, /* Report power information, for pit only */ EC_FEATURE_PMU = 20, @@ -852,10 +852,42 @@ enum ec_feature_code { EC_FEATURE_USB_MUX = 23, /* Motion Sensor code has an internal software FIFO */ EC_FEATURE_MOTION_SENSE_FIFO = 24, + /* Support temporary secure vstore */ + EC_FEATURE_VSTORE = 25, + /* EC decides on USB-C SS mux state, muxes configured by host */ + EC_FEATURE_USBC_SS_MUX_VIRTUAL = 26, /* EC has RTC feature that can be controlled by host commands */ EC_FEATURE_RTC = 27, + /* The MCU exposes a Fingerprint sensor */ + EC_FEATURE_FINGERPRINT = 28, + /* The MCU exposes a Touchpad */ + EC_FEATURE_TOUCHPAD = 29, + /* The MCU has RWSIG task enabled */ + EC_FEATURE_RWSIG = 30, + /* EC has device events support */ + EC_FEATURE_DEVICE_EVENT = 31, + /* EC supports the unified wake masks for LPC/eSPI systems */ + EC_FEATURE_UNIFIED_WAKE_MASKS = 32, + /* EC supports 64-bit host events */ + EC_FEATURE_HOST_EVENT64 = 33, + /* EC runs code in RAM (not in place, a.k.a. XIP) */ + EC_FEATURE_EXEC_IN_RAM = 34, /* EC supports CEC commands */ EC_FEATURE_CEC = 35, + /* EC supports tight sensor timestamping. */ + EC_FEATURE_MOTION_SENSE_TIGHT_TIMESTAMPS = 36, + /* + * EC supports tablet mode detection aligned to Chrome and allows + * setting of threshold by host command using + * MOTIONSENSE_CMD_TABLET_MODE_LID_ANGLE. + */ + EC_FEATURE_REFINED_TABLET_MODE_HYSTERESIS = 37, + /* EC supports audio codec. */ + EC_FEATURE_AUDIO_CODEC = 38, + /* EC Supports SCP. */ + EC_FEATURE_SCP = 39, + /* The MCU is an Integrated Sensor Hub */ + EC_FEATURE_ISH = 40, }; #define EC_FEATURE_MASK_0(event_code) (1UL << (event_code % 32)) -- 2.20.1