From patchwork Tue Feb 2 18:44:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 12062631 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.1 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 382ADC433E6 for ; Tue, 2 Feb 2021 18:47:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 019DD64E51 for ; Tue, 2 Feb 2021 18:47:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238877AbhBBSrd (ORCPT ); Tue, 2 Feb 2021 13:47:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238930AbhBBSpS (ORCPT ); Tue, 2 Feb 2021 13:45:18 -0500 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB7B9C0617A9 for ; Tue, 2 Feb 2021 10:44:37 -0800 (PST) Received: by mail-pf1-x433.google.com with SMTP id y142so6960368pfb.3 for ; Tue, 02 Feb 2021 10:44:37 -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=fcZ1R2Cs5It07ydhR+GP1wIlvAE/kw9u2Y/CgRT66lc=; b=VYmTz07wp/W2T6AIHBch50I7b80rgK6rPLISYoCX8B3qrjfct5m/pHGTM8ZEFlRWxP JaNBNuqO3M/npUgadCUE3eiDBQMaljZwouou+O/CnBYwkJGkZ2QEq9sBmY3wSHtUIyNZ XJVcOKvBpIKGhpM9PVFlwm2V6igS4yy9d6YBk= 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=fcZ1R2Cs5It07ydhR+GP1wIlvAE/kw9u2Y/CgRT66lc=; b=GpniR+aH8qnkZDOqm0Fb2juigVo1nuC6rLi8e5f9vaASH4Wb0gMGGj/ZPJrFSnPYXz A9DDibzlobrRjrKM1d6G2jJ/IP9jpkd3OLByLjjJ3j0lFgB/iFGFPxslFxMLzfVDjrbh 0wnIjfo4MvVZGwJZ0ofpUTWsNex68P1GWB/rQJ8A6+G7pviwBlEPW2AZzUdlEFq/a1QC Q9KiRKriiZ4dvWnvrY6N5aXJcVyt1pp3Qu92XbPBMnR46leNqV1/hDVXNHXphK59DsNR vo7rjLrZ4GsFicCcxBukmyM9pkduxwgpL1aAf0Qxx1ztdaWhq1xBEUWWgckPjNPq53KW +P0g== X-Gm-Message-State: AOAM533esILdwyxhcXaauVh+9V5ndIEZpNUqGktXmR2zy11WQySYgil6 V+nvfjfcfX4jEdGPmrNBfM1MSw== X-Google-Smtp-Source: ABdhPJwbtDki9ZfM6WAIJe+GVN6ePJCho/tH/9JtbnD5mVkJCrlCF9xvjq4sRd7rlHXAzKPtY7bl9Q== X-Received: by 2002:a63:514d:: with SMTP id r13mr9963835pgl.287.1612291477491; Tue, 02 Feb 2021 10:44:37 -0800 (PST) Received: from smtp.gmail.com ([2620:15c:202:201:3571:bd6e:ee19:b59f]) by smtp.gmail.com with ESMTPSA id b21sm23159859pfb.45.2021.02.02.10.44.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Feb 2021 10:44:37 -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 v4 1/3] platform/chrome: cros_ec: Add SW_FRONT_PROXIMITY MKBP define Date: Tue, 2 Feb 2021 10:44:32 -0800 Message-Id: <20210202184434.42644-2-swboyd@chromium.org> X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog In-Reply-To: <20210202184434.42644-1-swboyd@chromium.org> References: <20210202184434.42644-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 --- 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