From patchwork Wed Feb 10 02:51:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 12079659 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.3 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 1EF50C433DB for ; Wed, 10 Feb 2021 02:53:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D606C64D79 for ; Wed, 10 Feb 2021 02:53:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233627AbhBJCwu (ORCPT ); Tue, 9 Feb 2021 21:52:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233530AbhBJCws (ORCPT ); Tue, 9 Feb 2021 21:52:48 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31A7AC06178A for ; Tue, 9 Feb 2021 18:51:46 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id my11so2228812pjb.1 for ; Tue, 09 Feb 2021 18:51: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=rVS/BuBivcXTuFCgiwVRy4BRsx2EGMVlYR8Dmva3m30=; b=fm5FAe8uJoHztb8gNI5xr1OQmn/oIp7NRDMA/CQacI07FmE4FpQO/oMxTC63wybBOO BEQ0NnMv3/UUkZ13JYq6kc0B/F85cPqDOLQeqfue2jS2rFFQdlLnDPhf79jCKSoBjRUi Du0l9+uMx8INR3qMbUCpCWjSdKnp8ZLct4QJU= 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=rVS/BuBivcXTuFCgiwVRy4BRsx2EGMVlYR8Dmva3m30=; b=BEplVU0SOTC3IckFZrx/+hDS8vt6NuVC0t1LUhJfjAZNbf6ixFXGyM1I/RBtbaj80A PkYm8xHziw9wWlofArfZpXx0PB5d+oYM6WVRpBboCdIILTkQnkSQez62vLlmBl/+W3Qc K26RwbueA+5pRzBK0Av5vDSztdYro5v6WRnsDLi079BhULTAxJ7thz9P5KWZsbBOvoDo 9KpdryNGK3s3Ydk18789ItjXgBJHu0S1a5kQhos6QglRh90sKrrdm6oEkLMtsWNmSYWv SfAWbl7XLOBy07hxVOMPcVb/9YQ44eFSJn9HC7NMQCA1pdrpRh9mDRyUU0XyZ5Uzxy1B g4yg== X-Gm-Message-State: AOAM532RxE7arqHQzLpSDP0wyFUtRZeivjcJ96qIHCsuFcwPf3+gEDx3 cAqDwydSq0Xpzf58/DIrpuedqA== X-Google-Smtp-Source: ABdhPJyQFz4+7shcJJFR7v7rKe8qerhkJpK3m228ziCU/kv+qW80wQcvqyEg6YSsTSpfhyUwZ6XNkw== X-Received: by 2002:a17:90b:1108:: with SMTP id gi8mr958284pjb.129.1612925505805; Tue, 09 Feb 2021 18:51:45 -0800 (PST) Received: from smtp.gmail.com ([2620:15c:202:201:58e2:748e:a316:9823]) by smtp.gmail.com with ESMTPSA id r13sm139420pfc.198.2021.02.09.18.51.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 18:51: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 , Enric Balletbo i Serra Subject: [PATCH v5 1/3] platform/chrome: cros_ec: Add SW_FRONT_PROXIMITY MKBP define Date: Tue, 9 Feb 2021 18:51:40 -0800 Message-Id: <20210210025142.3609708-2-swboyd@chromium.org> X-Mailer: git-send-email 2.30.0.478.g8a0d178c01-goog In-Reply-To: <20210210025142.3609708-1-swboyd@chromium.org> References: <20210210025142.3609708-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 Acked-by: Enric Balletbo i Serra Signed-off-by: Stephen Boyd --- No changes from last time. 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