Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp590139rwb; Thu, 22 Sep 2022 04:03:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4jkh/IsxCX3QygdoZboYXw2W/OtcuI/8zOvw5ZjCbNy1uWr7TD0+EFUmYS6+wB47J338QN X-Received: by 2002:a17:903:26d4:b0:178:8de:fb5f with SMTP id jg20-20020a17090326d400b0017808defb5fmr2830539plb.45.1663844590981; Thu, 22 Sep 2022 04:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663844590; cv=none; d=google.com; s=arc-20160816; b=HjmS0LX7/7IK2aWI3UqtstSaRDtO0Zec8eikaCGTJo2odgbfcjtEVDSe4lSiZ7T7Lx 2On+xA40vmC4lKI/pAp6XFf5BR9GdJ/c1D3XCQwS2H4RjJCEpx30z8TcR5kyn/ib1zc2 lTlIZ8YBSY2q2cQzdN+pq5w7lBGH7Hdode/cTsst6laeVBxCdC5hfzS6ESj1d+7sBPg2 0xC7dG5DqjYJL7S23kSJhrCQ8Dxa0Bhf62U6jdc5L6a+mtEMQDCD9U8AMb4l4uXfieO3 1+yowRvya/aMXiP4hFzmK+8itghTQHRxq849W8n5ed19YovLvGbX0fXor7np8M1OrBXh 56+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from; bh=PCztAaArEgkqw193E4NLc0fjG76A/M26veoo96K6VmY=; b=RtP+P1wIAumtco99jy4xRyx67alea5P8l84vNwEhxs87350rf7rhCqSyurgxxDdZMg 9rjgbJ2OWKfPmrOmzZ6kwTgf10FRcU5V0zhnnmOlycw9q0Qa6wG7Czff67L6mfwOv3ZY 9QhOSJ37GBtRtlAsLEpG5Nt6+ZQyVYO401GfHc7Oe/Ca5jk3mYhzLPqn/EpeZ8EYhfEf ANQzxSvusuh6YZEsCzxuN8oBgY0GjZvYY6ZzUH/dvdVUiDpBOMVSS59bos1fbwWsBnEF wieWsq6qFeigmzdUYnhY+ZT2hbiUuN+j7I7B3c/UgRTA0PDQ5Ol/7lPxWIc9ESOtt4UR pkig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a170902b49100b001786946655csi5105376plr.273.2022.09.22.04.02.57; Thu, 22 Sep 2022 04:03:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231284AbiIVKMx (ORCPT + 99 others); Thu, 22 Sep 2022 06:12:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230443AbiIVKMu (ORCPT ); Thu, 22 Sep 2022 06:12:50 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F309AD62FA; Thu, 22 Sep 2022 03:12:45 -0700 (PDT) Received: (Authenticated sender: foss@0leil.net) by mail.gandi.net (Postfix) with ESMTPSA id BA06B40003; Thu, 22 Sep 2022 10:12:41 +0000 (UTC) From: Quentin Schulz Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, heiko@sntech.de, dmitry.torokhov@gmail.com, klaus.goger@theobroma-systems.com, foss+kernel@0leil.net, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Quentin Schulz Subject: [PATCH 1/3] Input: add `SW_BOOT_ALT` Date: Thu, 22 Sep 2022 12:12:09 +0200 Message-Id: <20220922101211.3215888-2-foss+kernel@0leil.net> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220922101211.3215888-1-foss+kernel@0leil.net> References: <20220922101211.3215888-1-foss+kernel@0leil.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Quentin Schulz This event code represents the firmware source to use at boot. Value 0 means using "standard" firmware source, value 1 means using "alternative" firmware source. For example, some hardware has the ability to force the BOOTROM to load the bootloader from a secondary firmware source (say SD card) instead of trying with the standard first and then the secondary. This event allows the userspace to know which firmware source was requested *in hardware*. Signed-off-by: Quentin Schulz --- include/linux/mod_devicetable.h | 2 +- include/uapi/linux/input-event-codes.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 549590e9c644..009e71376a61 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -326,7 +326,7 @@ struct pcmcia_device_id { #define INPUT_DEVICE_ID_LED_MAX 0x0f #define INPUT_DEVICE_ID_SND_MAX 0x07 #define INPUT_DEVICE_ID_FF_MAX 0x7f -#define INPUT_DEVICE_ID_SW_MAX 0x10 +#define INPUT_DEVICE_ID_SW_MAX 0x11 #define INPUT_DEVICE_ID_PROP_MAX 0x1f #define INPUT_DEVICE_ID_MATCH_BUS 1 diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index dff8e7f17074..8cd2b58c81d7 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -917,7 +917,8 @@ #define SW_MUTE_DEVICE 0x0e /* set = device disabled */ #define SW_PEN_INSERTED 0x0f /* set = pen inserted */ #define SW_MACHINE_COVER 0x10 /* set = cover closed */ -#define SW_MAX 0x10 +#define SW_BOOT_ALT 0x11 /* set = alternative boot firmware source */ +#define SW_MAX 0x11 #define SW_CNT (SW_MAX+1) /* -- 2.37.3