From patchwork Fri Jan 22 22:54:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 12040779 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29C14C433DB for ; Fri, 22 Jan 2021 22:56:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DD1A523AAC for ; Fri, 22 Jan 2021 22:56:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729178AbhAVW4c (ORCPT ); Fri, 22 Jan 2021 17:56:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728459AbhAVWz0 (ORCPT ); Fri, 22 Jan 2021 17:55:26 -0500 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 996F6C061788 for ; Fri, 22 Jan 2021 14:54:46 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id kx7so4749415pjb.2 for ; Fri, 22 Jan 2021 14:54:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j0LasHSBnsU3ALa272OyzYW+m4IQeUHlxwjuI1lE7wc=; b=l61fsFVT55ER/uY1P3mwzHyLwC1W87awzd6Dp/3lk2Y7nNXpW3DC4xruHcQJAalb1f PGppOOO1PdS7l4oOIKiBgleTHh417oAwkkf7JPsscyjAouEeJR5DegS6Haj/YE2APhO5 rayVlkq07lYMJv1XJbOEQLiF7dn72sobkigVQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=j0LasHSBnsU3ALa272OyzYW+m4IQeUHlxwjuI1lE7wc=; b=BNiEPoh6ydFzXoNL8oLLCf0ABxGULZUvcDUNBU7z7OICwpdIsok/InhwBjGmg1nTMT 4ZtnEiqvrOfh4/9+H5vkpTNRpI1/9M4SRRXLbjjkA+H2AHUiYWIoRQnKM5bfS3yP9PaP oml44JtPNBZIKAt6Rb9jRUbCZTEl5iHD4omgZ2+TRE3cZ3CIllyUE/F7zt1IB5B411wH uEgnqcyDhnWH1PajLOJTNnGMnjQGOkkuDkMVbfidppyFcRjFKfGt9/Yg9mocnaSb1Fmb tOHX754mn8k/AWHjFtaSJhWZZQM1vgrYA+MTsDRU9B5CPtWd0EC4cngg3tYsFvuN/H2C Y0nw== X-Gm-Message-State: AOAM533KJ31ODeqP6JlaXGVvDqFhg2d7Af0Gj6erQ0NKkX0ru4MW4R7o 0Z7wiAzzqV5ej5HVfqjXMDXufQ== X-Google-Smtp-Source: ABdhPJx1GE+cAzohLx9FhplLoHll9MTQgivrWMFfHJ1Lw/J7mw7P7OmVZC+yjTHq0PzBMSSTeE6tHA== X-Received: by 2002:a17:902:ed88:b029:de:86f9:3e09 with SMTP id e8-20020a170902ed88b02900de86f93e09mr6934856plj.38.1611356086257; Fri, 22 Jan 2021 14:54:46 -0800 (PST) Received: from smtp.gmail.com ([2620:15c:202:201:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id i62sm6433509pfe.84.2021.01.22.14.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jan 2021 14:54:45 -0800 (PST) From: Stephen Boyd To: Jonathan Cameron Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Dmitry Torokhov , Benson Leung , Guenter Roeck , Douglas Anderson , Gwendal Grignou Subject: [PATCH 1/3] platform/chrome: cros_ec: Add SW_FRONT_PROXIMITY MKBP define Date: Fri, 22 Jan 2021 14:54:41 -0800 Message-Id: <20210122225443.186184-2-swboyd@chromium.org> X-Mailer: git-send-email 2.30.0.280.ga3ce27912f-goog In-Reply-To: <20210122225443.186184-1-swboyd@chromium.org> References: <20210122225443.186184-1-swboyd@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Some cros ECs support a front proximity MKBP event via 'EC_MKBP_FRONT_PROXIMITY'. Add this define so it can be used in a future patch. Cc: Dmitry Torokhov Cc: Benson Leung Cc: Guenter Roeck Cc: Douglas Anderson Cc: Gwendal Grignou Signed-off-by: Stephen Boyd --- include/linux/platform_data/cros_ec_commands.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h index 86376779ab31..776e0b2be0e9 100644 --- a/include/linux/platform_data/cros_ec_commands.h +++ b/include/linux/platform_data/cros_ec_commands.h @@ -3457,6 +3457,7 @@ struct ec_response_get_next_event_v1 { #define EC_MKBP_LID_OPEN 0 #define EC_MKBP_TABLET_MODE 1 #define EC_MKBP_BASE_ATTACHED 2 +#define EC_MKBP_FRONT_PROXIMITY 3 /* Run keyboard factory test scanning */ #define EC_CMD_KEYBOARD_FACTORY_TEST 0x0068