From patchwork Thu Jan 28 08:40:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 12053087 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=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 8732DC433DB for ; Thu, 28 Jan 2021 08:41:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 46A9E64DD1 for ; Thu, 28 Jan 2021 08:41:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231990AbhA1IlI (ORCPT ); Thu, 28 Jan 2021 03:41:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231158AbhA1IlB (ORCPT ); Thu, 28 Jan 2021 03:41:01 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63C7EC0613ED for ; Thu, 28 Jan 2021 00:40:15 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id i63so3540422pfg.7 for ; Thu, 28 Jan 2021 00:40:15 -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=Zrmhu5hT+3e5st92w+RiwsaBhEAkiZTGj1WgY5C1syeX9h/iX7vi8xReimk9m02PUY P5BoWp3k9KgLm4YRzyhB6GCNEFYdPLht5OMysh7FNMHr06l85PrPvnSR4acJKz/kP7FZ 9QjA/9TwCn6lyJf1e6BMK6BxkeOMjw6j4tlIo= 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=ObRCt7yskn7Xlon2iVwLg020pofPjxPQFEyJa+fcZiZzyGCxOe9hPB2Q04wgwUaeul 42O4Vlg+JXyZ8Pd9iox5ILuRV9QUXA/iNROZlCqO7Y24zMNMX+/0AecaG5ci15rl5L8K btxUStK1NLVED8QN2Mj3Dhr4Whz0W1658gnaAOsqhZg0uaUxsH/ajVn1w9+KqhAAsIfC QyT02H3q7CyEWGoXvUTC01Ue31Ab9YvDGWhysNXsExF+UHSV/kbm6lZZjcjPdsESZqO7 BRMF0N75Cc9fEbuFx2ak+YAZRdroqrIW0SisFYpqm79j2Vl+TIA5wl0r34Enh9WSrC67 Ce4g== X-Gm-Message-State: AOAM531wh7GLB23SGzJN3Y1bJhwsSaFc8KIWmMZ+OeDc9Qomv9L6B6su SSIk5WqTKLbA5c/g76wmntYTew== X-Google-Smtp-Source: ABdhPJwmFS3k/VeN+TR1fKw2hjQTki+gDtHvcVk3Cm6HE7VaMP97ybSrUS9WGLjJ7y8pi+rP50FrXw== X-Received: by 2002:a63:5014:: with SMTP id e20mr15431948pgb.152.1611823215001; Thu, 28 Jan 2021 00:40:15 -0800 (PST) Received: from smtp.gmail.com ([2620:15c:202:201:304c:5453:303a:8268]) by smtp.gmail.com with ESMTPSA id y22sm4951757pfr.163.2021.01.28.00.40.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jan 2021 00:40:14 -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 v3 1/3] platform/chrome: cros_ec: Add SW_FRONT_PROXIMITY MKBP define Date: Thu, 28 Jan 2021 00:40:09 -0800 Message-Id: <20210128084011.3270281-2-swboyd@chromium.org> X-Mailer: git-send-email 2.30.0.280.ga3ce27912f-goog In-Reply-To: <20210128084011.3270281-1-swboyd@chromium.org> References: <20210128084011.3270281-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 Acked-by: Enric Balletbo i Serra --- 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