From patchwork Sun Sep 25 15:02:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1682185 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=nXCx2GCo; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Mb8Ln457fz1ypX for ; Mon, 26 Sep 2022 01:04:49 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6D0C884BE8; Sun, 25 Sep 2022 17:03:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="nXCx2GCo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4C6E084AA2; Sun, 25 Sep 2022 17:03:24 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (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 7A72384B64 for ; Sun, 25 Sep 2022 17:03:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x131.google.com with SMTP id r5so988518ilm.10 for ; Sun, 25 Sep 2022 08:03:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=Ly4vq64fDuKqEfqPic/OEsFW3ANsCEIAc5+5ai4EilU=; b=nXCx2GCorJuabJ3SDm7WbAn7euDhmqUQUx112OZN6LHnOLleeoX+PLhPeoYzdlHtG4 OBlsiucQQE9nZpbIpGPPlHq7q4k1EVNM59WR4qx2D0IYIRIu55U8cEYiLt61wvTfB8cu 4qZhmbDlcS7rMoViEIgwfH5zOhFPM4ekCwQf4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=Ly4vq64fDuKqEfqPic/OEsFW3ANsCEIAc5+5ai4EilU=; b=XzwzUKIhmrJpvb5de8tmt8WP61HqMaAxPi4U2Buy7N3qEhOumKSX0AH9UJqnsJufjp r2bEfUj0y4KnetqH2FnuOkqFlandGZtp36kr2Z3i48a8mZeT27gzhXVPf08E+wK1oFuo /j8yHyiKG/B9xqofsVlJAarCoG4zS6+gHzKByOqSCGx02GsGZPSBnyuZrocbt3fMOW/0 fxqOaZONQn2M3wNLqlETHpDbw8Uwq3Uc/3byuwTABw2O2RUyxGVy4ANhE5JlPeclVeFv 8HzuxC4A9NkBNIHbOpUgN0513Jv/6cR7vdDIM7uce7WRjo9/uVZxQawHW36LOsZ3tp5M cNGQ== X-Gm-Message-State: ACrzQf0pHewiGqH81WWfcnnhTFpug7UPnWyPazMM6JNAvTuvtyeKLvNx PWgM69NeBp7ylbZPNJuRGJ77o+jZDmYRag== X-Google-Smtp-Source: AMsMyM5a7nAS2/UzOAFgcfVybqUHO1P2C2mHeOmnjVUTC8zDQTqvYb0Q83pIGsZQJ+AEpUQ/sdiczQ== X-Received: by 2002:a05:6e02:11aa:b0:2ea:ca64:a646 with SMTP id 10-20020a056e0211aa00b002eaca64a646mr8290146ilj.53.1664118197557; Sun, 25 Sep 2022 08:03:17 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id u19-20020a926013000000b002f19d9838c6sm5360578ilb.25.2022.09.25.08.03.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Sep 2022 08:03:17 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Alper Nebi Yasak , Anatolij Gustschin , =?utf-8?q?Marek_Beh=C3=BAn?= , =?utf-8?q?Pali_Roh=C3=A1r?= , Stefan Roese Subject: [PATCH 08/45] spl: Add a separate silence option for SPL Date: Sun, 25 Sep 2022 09:02:11 -0600 Message-Id: <20220925150248.2524421-9-sjg@chromium.org> X-Mailer: git-send-email 2.37.3.998.g577e59143f-goog In-Reply-To: <20220925150248.2524421-1-sjg@chromium.org> References: <20220925150248.2524421-1-sjg@chromium.org> MIME-Version: 1.0 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.6 at phobos.denx.de X-Virus-Status: Clean Add options to allow silent console to be controlled separately in SPL, so that boot progress can be shown. Disable it by default for sandbox since it is useful to see what is going on there. Signed-off-by: Simon Glass --- common/Kconfig | 22 ++++++++++++++++++++++ common/spl/spl.c | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/common/Kconfig b/common/Kconfig index a6661c1c0c7..532bcaf5804 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -113,6 +113,28 @@ config SILENT_CONSOLE GD_FLG_SILENT flag is set. Changing the environment variable later will update the flag. +config SPL_SILENT_CONSOLE + bool "Use a silent console in SPL" + default y if SILENT_CONSOLE && !SANDBOX + help + This selects a silent console in SPL. When enabled it drops some + output messages. The GD_FLG_SILENT flag is not used in SPL so there + is no run-time control of console messages in SPL. + + Future work may allow the SPL console to be silenced completely using + this option. + +config TPL_SILENT_CONSOLE + bool "Use a silent console in TPL" + default y if SILENT_CONSOLE && !SANDBOX + help + This selects a silent console in TPL. When enabled it drops some + output messages. The GD_FLG_SILENT flag is not used in TPL so there + is no run-time control of console messages in TPL. + + Future work may allow the TPL console to be silenced completely using + this option. + config SILENT_U_BOOT_ONLY bool "Only silence the U-Boot console" depends on SILENT_CONSOLE diff --git a/common/spl/spl.c b/common/spl/spl.c index e7f16a18228..cc982d6a9d1 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -668,7 +668,7 @@ static inline bool spl_show_output(void) { return CONFIG_IS_ENABLED(SERIAL) && CONFIG_IS_ENABLED(LIBCOMMON_SUPPORT) && - !IS_ENABLED(CONFIG_SILENT_CONSOLE); + !CONFIG_IS_ENABLED(SILENT_CONSOLE); } /**