From patchwork Sun Feb 12 23:15:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1741183 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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=TTmLWGkF; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4PFNl34Hyzz23h0 for ; Mon, 13 Feb 2023 10:21:19 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BB60C85917; Mon, 13 Feb 2023 00:19:01 +0100 (CET) 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="TTmLWGkF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A471B85794; Mon, 13 Feb 2023 00:17:44 +0100 (CET) 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=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) (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 8C74881421 for ; Mon, 13 Feb 2023 00:17:33 +0100 (CET) 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-io1-xd31.google.com with SMTP id d16so3934323ioz.12 for ; Sun, 12 Feb 2023 15:17:33 -0800 (PST) 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 :message-id:reply-to; bh=SuIzO+C+6S+Pt/t2zktUQxPJ+wMlQe4GZKrEdl0NKGU=; b=TTmLWGkF8MAkr2V2e+4Wo/haYKMfh5dx1SPDSjaYjnvkUIiOseYxd0d03vzvtj/d1J 2X6rhY5SyPmxecXTb5LPXx97pZ4DWxwrzYDchsaIvhKBxCmIXwzI24Fe120ooWvdc19h zGOm6Xxt6H15btmoid2RWwYonojUb2s2xzOkA= 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:message-id:reply-to; bh=SuIzO+C+6S+Pt/t2zktUQxPJ+wMlQe4GZKrEdl0NKGU=; b=mFltFD4Ik/0aOLaL9UiTzkwKGIHhwZb0z9aQgVejzJqsOyVEc1GnWa98Z1lVIKhvdE RPTh4vcgp+wivZDF3Lr542+UMXC3yZuMtbntHhQ+U2rvGKQDB+lEMKRtoRol4YJCFBVc 9Q6C0ut/u0eIzEe669pvmOx0xAaHaB+NZUtGumd+Dgf4hZseO1dQ4v7zAJgUY29e1zUT GDQQrTNsjLcvjnd9vnI0gaJ8R5y1jGl6L/kO7lagX6O/rUAokiHuSctFGNdrSfK9iKjb wPtviyZGRxdNT43f+HA/asy5BuzmqKnYRP996neFy9lAnl5Y1BGKR9ct7tOXC8VjhILy yi+g== X-Gm-Message-State: AO0yUKXr0UF/GCYYZcb0AUBoIYncECZsPX8xV4/Zwun0UCQJ2hKMF4Fr md8yKTDquDJUnu0z5gl4rRzL+ZARjYbGLGWx X-Google-Smtp-Source: AK7set8O6yRGXE/Ky9i/W6J6ikVgS32Hw5PAV+2eGd2KTU34ejU8TkU+aFAMAndk4b61fbhuuCR+JQ== X-Received: by 2002:a05:6602:1583:b0:6e4:80fc:4885 with SMTP id e3-20020a056602158300b006e480fc4885mr27854288iow.4.1676243853074; Sun, 12 Feb 2023 15:17:33 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id n16-20020a6b8b10000000b006dfbd35e995sm3627849iod.21.2023.02.12.15.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 15:17:32 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v3 23/95] console: Add a Kconfig for SPL_CONSOLE_MUX et al Date: Sun, 12 Feb 2023 16:15:26 -0700 Message-Id: <20230212231638.1134219-24-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.581.gbfd45094c4-goog In-Reply-To: <20230212231638.1134219-1-sjg@chromium.org> References: <20230212231638.1134219-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 This and SYS_CONSOLE_IS_IN_ENV are implicitly used in the source and seem useful, so add them. Signed-off-by: Simon Glass --- (no changes since v1) common/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index e3a5e1be1e9..ea9bbd52128 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -235,6 +235,10 @@ config CONSOLE_MUX adds a small amount of size to U-Boot. Changes to the environment variables stdout, stdin and stderr will take effect immediately. +config SPL_CONSOLE_MUX + def_bool n # Enable console multiplexing (SPL) + depends on SPL + config SYS_CONSOLE_IS_IN_ENV bool "Select console devices from the environment" default y if CONSOLE_MUX @@ -245,6 +249,10 @@ config SYS_CONSOLE_IS_IN_ENV environment variables can be updated after boot to change the input/output devices. +config SPL_SYS_CONSOLE_IS_IN_ENV + def_bool n # Select console devices from the environment (SPL) + depends on SPL + config SYS_CONSOLE_OVERWRITE_ROUTINE bool "Allow board control over console overwriting" help