From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5FECDC433EF for ; Sun, 19 Jun 2022 04:56:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A4A4384428; Sun, 19 Jun 2022 06:55:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="sScbIOcT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 34F73843EA; Sun, 19 Jun 2022 06:55:34 +0200 (CEST) Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CF38E843F0 for ; Sun, 19 Jun 2022 06:55:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pf1-x433.google.com with SMTP id p14so1818742pfh.6 for ; Sat, 18 Jun 2022 21:55:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xGDO0Ssq9nrgzeMOiIso7MdOflludZaZXVG91BZi/aM=; b=sScbIOcTQB7oQfHm7SsOYA/lP+Sp6cJqJZAoGsUl7WuEcX9bnU/XNqYSsLzVqeKxWs b74kdGB5uDICmzZzgiwNKkBH2hw2N2l/sEEGAg5xTU25Qw9u2VRnrYQHdRIdgzAUHNgp aVd4ImZhuMsRfoJ8uSzEuxFF5YvqWLy7+Eu5RZIhazrHlbDFV6ynFXjBKiZB3UKQkpLS dS64byzPrrQkEi+3zwJ/9X/Y3pXL+hO+eMEVyAAe8HVaTSdfpla6svOTS0bvMGfzwPje R2rc/ny9+qadUORR3tQtV7XZXsOsOfYeuo7J+FJFIHbM0uBPYYRP4fKoKFFX5ftlcNMT oh8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xGDO0Ssq9nrgzeMOiIso7MdOflludZaZXVG91BZi/aM=; b=pyOu2kAW2AIZ0Je3Ml4iXd3vbzX1jR5znws8gtOukxDTkxdvkDJcDeQtT8dRlO/oGP UDBYn/Z6+NCrbd/wXXqtQ6uQu84du/9GRbVypLrK85iF10u+H05HwMWfgLXX9Wgp0tBx vQJR//jptmGfZhTs1WJLOltIEhIFYYY4YIG9d6R5WGK359uqsFtrS7pymI3u19sFEweq qgUyUvphCuhohlQdW7VmQfk9GI2TXgOWPt81ae4C0ZQ3K6X/CKFZ5lGiV60aFtNPf0oN TZ9iR8F3Fl4QyT/6L5GvUsNuIx1wRPR9/TSJ2Mjv60u8ho/ntW1iUWF6CDP0MGOCSpvy 5F9w== X-Gm-Message-State: AJIora9DT8S+jhHrw8iLgGyMSKWWeuUedFkmSyxvlSk30xlQoT3iCP1L Gje8qgOJIAsu1BlSSRpUcDB5wKezLb/ltA== X-Google-Smtp-Source: AGRyM1vc6O8gEAVyRinAQlUYWFPIHSPZdzAwnCS/LpbogeaXYEKjtz++eR4UF+2mZjT3Ew6hneb3iA== X-Received: by 2002:a63:2a0c:0:b0:3fc:9b04:541d with SMTP id q12-20020a632a0c000000b003fc9b04541dmr16241110pgq.546.1655614529967; Sat, 18 Jun 2022 21:55:29 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id 9-20020aa79149000000b00518424f8922sm6381848pfi.77.2022.06.18.21.55.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jun 2022 21:55:29 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Francois Ozog , Mark Kettenis , Masahisa Kojima Subject: [PATCH v8 4/9] menu: add KEY_PLUS and KEY_MINUS handling Date: Sun, 19 Jun 2022 13:56:02 +0900 Message-Id: <20220619045607.1669-5-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220619045607.1669-1-masahisa.kojima@linaro.org> References: <20220619045607.1669-1-masahisa.kojima@linaro.org> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean This is preparation to support menu-driven UEFI BootOrder variable updated by KEY_PLUS and KEY_MINUS. Signed-off-by: Masahisa Kojima --- No change in v8 Newly created in v7 common/menu.c | 6 ++++++ include/menu.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/common/menu.c b/common/menu.c index 3e876b55b3..3470f95a98 100644 --- a/common/menu.c +++ b/common/menu.c @@ -548,4 +548,10 @@ void bootmenu_loop(struct bootmenu_data *menu, /* ^C was pressed */ if (c == 0x3) *key = KEY_QUIT; + + if (c == '+') + *key = KEY_PLUS; + + if (c == '-') + *key = KEY_MINUS; } diff --git a/include/menu.h b/include/menu.h index e74616cae8..4c32e74ce9 100644 --- a/include/menu.h +++ b/include/menu.h @@ -48,6 +48,8 @@ enum bootmenu_key { KEY_DOWN, KEY_SELECT, KEY_QUIT, + KEY_PLUS, + KEY_MINUS, }; void bootmenu_autoboot_loop(struct bootmenu_data *menu, -- 2.17.1