From patchwork Tue Jan 26 02:01:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 12047983 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=-19.0 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=unavailable 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 A0987C433E6 for ; Tue, 26 Jan 2021 19:22:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5CBF022228 for ; Tue, 26 Jan 2021 19:22:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732165AbhAZFt1 (ORCPT ); Tue, 26 Jan 2021 00:49:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732155AbhAZCF4 (ORCPT ); Mon, 25 Jan 2021 21:05:56 -0500 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04142C06121F for ; Mon, 25 Jan 2021 18:01:23 -0800 (PST) Received: by mail-pf1-x431.google.com with SMTP id 11so9527764pfu.4 for ; Mon, 25 Jan 2021 18:01:22 -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=NCktlUhEX4O6P7penXk7JVIch+RP+QFg940peYApkOKGFZZ4i1pDtCLk2woG96vnFh sgzRwmnZ3R+frd92avauv/rSWTpMt/+cpItp/91yFHFTarinCFAnAE8WuejO3FwNBHCX 6xJ4KISABWuSrjD9oyQb9jHtw/ptgnd75NYRI= 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=eaVU1EnAAGDpCfHSJsCDs8EvvCrPpQwjNnVeyLqChS9iPq2EjiifmegkISqsZ89e8o BJg93eJnYtmHjEsLMkxkwoZdu3ZoPUGdNcN6tPoHXE78UI4j47vI4QEQRdam/18aA6gF gaJ3VGNuz0FORGT9Sd25OmiHyieRDRejB3JP2flAvb3e/JAfOixiKgLP16L5o089qFI6 hGv6ZDveVBCH9ozZEN9qju3KDt02k2ILw6ch2IDosoY/cziAwD5hzk0SpAihBdErSiKI 9W36x0gLtHw5XR5Wtpi+cF7IkVaCmioSRps3llFD/oXYw0H0rfJBKAhM63ao42VhffP6 qMrA== X-Gm-Message-State: AOAM532VLD9aCGW4k3WHWbe7W/czT8fqB8AUdQb2Yq17d4gtPDbyGfJ7 dt6Rjss7qMVtwYNJpXFt4Jvarg== X-Google-Smtp-Source: ABdhPJxWcmF/fvsaQumL7NCcKePGkxjNd9CeNvBuAmr1vn1BGm427m1c0uEu0PsEjqhGG05z64k1nA== X-Received: by 2002:a62:7ac4:0:b029:1bc:309a:46d3 with SMTP id v187-20020a627ac40000b02901bc309a46d3mr2989448pfc.18.1611626482595; Mon, 25 Jan 2021 18:01:22 -0800 (PST) Received: from smtp.gmail.com ([2620:15c:202:201:1066:b437:97cd:2278]) by smtp.gmail.com with ESMTPSA id n2sm16975028pfu.42.2021.01.25.18.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 18:01:22 -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 v2 1/3] platform/chrome: cros_ec: Add SW_FRONT_PROXIMITY MKBP define Date: Mon, 25 Jan 2021 18:01:15 -0800 Message-Id: <20210126020117.2753615-3-swboyd@chromium.org> X-Mailer: git-send-email 2.30.0.280.ga3ce27912f-goog In-Reply-To: <20210126020117.2753615-1-swboyd@chromium.org> References: <20210126020117.2753615-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