From patchwork Fri Aug 11 21:07:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Patel, Utkarsh H" X-Patchwork-Id: 13351444 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91D9FC001DE for ; Fri, 11 Aug 2023 20:52:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236835AbjHKUwi (ORCPT ); Fri, 11 Aug 2023 16:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236610AbjHKUwa (ORCPT ); Fri, 11 Aug 2023 16:52:30 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE5F52D55; Fri, 11 Aug 2023 13:52:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691787143; x=1723323143; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YmwTEx/14K2EfY2Gzld03y4nSHx0jZNbM9JgZQcBj7A=; b=mCPmeWBFCdnX9MVSwZShRXvheDxOESlQ7GAOVG9mrrzAr5F2cAxlusIr /8kRVgt5uyrS7AVwlqvmU2ryYYl4W9fACQSE0o0hlSv8spQLIu0R9GqRx x2gZ4ivL8hKr5uTpeXb2dsSEsFXk3vZg+CvqcrPCvHthHMVyvPairg4If lFwuYE+Q4g1593mQ8OZlvXj/BgV1ZuUVCKRDZ2YgJatkwTFFwzdpW1+Gg bJHj4OVxlhkP9Kp7fSbbZ/gutZJq80dJgZBtXvXvbdszru1z/JJJpI6SI iaq8QCzsyzrZTM/q74KbYkm8aCQ9J1OtgSx1tvKnID5c911tWQFGtpkAZ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10799"; a="375473043" X-IronPort-AV: E=Sophos;i="6.01,166,1684825200"; d="scan'208";a="375473043" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 13:52:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10799"; a="762322058" X-IronPort-AV: E=Sophos;i="6.01,166,1684825200"; d="scan'208";a="762322058" Received: from uhpatel-desk4.jf.intel.com ([10.23.15.223]) by orsmga008.jf.intel.com with ESMTP; 11 Aug 2023 13:52:11 -0700 From: Utkarsh Patel To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Cc: heikki.krogerus@linux.intel.com, andriy.shevchenko@linux.intel.com, pmalani@chromium.org, bleung@chromium.org, Utkarsh Patel Subject: [PATCH 2/4] platform/chrome: cros_ec: Add Displayport Alternatemode 2.1 feature flag Date: Fri, 11 Aug 2023 14:07:33 -0700 Message-Id: <20230811210735.159529-3-utkarsh.h.patel@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230811210735.159529-1-utkarsh.h.patel@intel.com> References: <20230811210735.159529-1-utkarsh.h.patel@intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Update EC command header to include feature flag for Displayport Alternatemode 2.1 support. This change also brings in corresponding EC header updates from the EC code base [1]. Link: https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/main/include/ec_commands.h [1] Reviewed-by: Andy Shevchenko Reviewed-by: Heikki Krogerus Signed-off-by: Utkarsh Patel --- include/linux/platform_data/cros_ec_commands.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h index ab721cf13a98..f2b095107555 100644 --- a/include/linux/platform_data/cros_ec_commands.h +++ b/include/linux/platform_data/cros_ec_commands.h @@ -1312,6 +1312,11 @@ 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 DP2.1 capability. + */ + EC_FEATURE_TYPEC_DP2_1 = 50, + }; #define EC_FEATURE_MASK_0(event_code) BIT(event_code % 32)