From patchwork Wed Apr 17 09:35:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?=C5=81ukasz_Czechowski?= X-Patchwork-Id: 1924563 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=thaumatec-com.20230601.gappssmtp.com header.i=@thaumatec-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=CS7rtY6g; dkim-atps=neutral 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=patchwork.ozlabs.org) Received: from phobos.denx.de (unknown [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 (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VKG5V2BWPz1yPv for ; Wed, 17 Apr 2024 19:37:02 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EE6DB88442; Wed, 17 Apr 2024 11:36:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=thaumatec.com 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=thaumatec-com.20230601.gappssmtp.com header.i=@thaumatec-com.20230601.gappssmtp.com header.b="CS7rtY6g"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E85628845A; Wed, 17 Apr 2024 11:36:46 +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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 D8B7588466 for ; Wed, 17 Apr 2024 11:36:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=thaumatec.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=lukasz.czechowski@thaumatec.com Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-418c2bf2f55so1732275e9.2 for ; Wed, 17 Apr 2024 02:36:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1713346603; x=1713951403; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zR3rGeBYRvZX4mDH/R1Xjrg6Bo248TE0omOsiOLJBV4=; b=CS7rtY6g8gnrGGfJeokgCGBurKnP2y7z+FAxz4M/mjpMkuyuwUuzK2JDh5yrDEnkZE gUkiuoHRXzq8pjrSHxPKv8k0GWQcUIWehhnYlBaHNI96O37Dol5x9r1aLf4NqiiMCBY6 HCDECMxUa5aeKbPc2nN8xAQp6b7LvjRbQzj6JrvBSynKWw6wHQnYSUJx1Pd8kTnEHMqE WIckBs9YwM1/0w8UD4Nqm38QPFEBG6xXGlxhKNogvGoU2W4nRMW3QqMcGXkWSSEewEFp ufhLJOiAMxRne5N9++LyeAv1293YAKyh7JdZk2ogMQ5s/qdO3OU05SBp5Y7m5+FpA+ZR H++g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713346603; x=1713951403; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zR3rGeBYRvZX4mDH/R1Xjrg6Bo248TE0omOsiOLJBV4=; b=hUluaHov/FfFg1XnHFr//TiGD2E7RpmEF7f3xDbTepS8q+04Z+qJLDYOCjvj/0NThr 1O9AdQ9IMcoeOVZog2rlE7kpm2WLrjwHmnnwAEEEscWBxmTdwpwZQTNZHuYYAIxp2Oye tzH+ZNg3OTe90ZqEs0gYpEKRjWCQtkM3aph9Q557cRH3+9VKBSy7HEz4UCbQW4id0jdn v1D5H3vk1PUxjwDQMD4D74bnR8WUePSDjPyHbEOqJMwDdpCAGEFsFEhkDzgMkgzTrr0A nt3UFY20GAw/hToeNVQeh2L1CzEvvmVr7cM6G9foKgnT35yIibn6Vo4YOZ/t0+m/W7Sc QpkQ== X-Gm-Message-State: AOJu0YwJs5FZraoC2Ya0WHBQZGDSFlfp4SP8o1vSEgiwU+TmkL6D94u5 fErI1kM6Qq4+h8Dc0N+eQK8DBrwvlEatR2YsR5Y9d98kVTSftiEBbDg2fqoAanRGzJtKn8+9XCY zSWc= X-Google-Smtp-Source: AGHT+IE0RGdg4Xb2ed55zNfEMR0JOMh7vHhKcUbOB20DcgU0Q06kIL2q5lrqEq5fzBjsixBvCjxBeA== X-Received: by 2002:a05:600c:4689:b0:418:4ecb:fc80 with SMTP id p9-20020a05600c468900b004184ecbfc80mr6165547wmo.23.1713346603566; Wed, 17 Apr 2024 02:36:43 -0700 (PDT) Received: from localhost.localdomain (ip092042140082.rev.nessus.at. [92.42.140.82]) by smtp.gmail.com with ESMTPSA id g20-20020a05600c4ed400b004183e983d97sm2073204wmq.39.2024.04.17.02.36.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 02:36:43 -0700 (PDT) From: lukasz.czechowski@thaumatec.com To: u-boot@lists.denx.de Cc: Lukasz Czechowski , Tom Rini , Simon Glass , Philipp Tomsich , Kever Yang Subject: [PATCH v2] rockchip: px30-board-tpl: Use CONFIG_TPL_BANNER_PRINT flag Date: Wed, 17 Apr 2024 11:35:42 +0200 Message-Id: <20240417093542.275150-1-lukasz.czechowski@thaumatec.com> X-Mailer: git-send-email 2.34.1 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.8 at phobos.denx.de X-Virus-Status: Clean From: Lukasz Czechowski Display TPL init information message only when TPL_BANNER_PRINT configuration entry is set. This allows to disable information message in case logs on UART are unwanted. Update parent ifdef condition to check also CONFIG_TPL_SERIAL to match logic of the non-PX30 TPL implementation. Signed-off-by: Lukasz Czechowski Cc: Tom Rini Cc: Simon Glass Cc: Philipp Tomsich Cc: Kever Yang Reviewed-by: Quentin Schulz --- Changes for v2: - Updated parent ifdef condition --- arch/arm/mach-rockchip/px30-board-tpl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/px30-board-tpl.c b/arch/arm/mach-rockchip/px30-board-tpl.c index 637a5e1b18..db368a7b8c 100644 --- a/arch/arm/mach-rockchip/px30-board-tpl.c +++ b/arch/arm/mach-rockchip/px30-board-tpl.c @@ -36,7 +36,7 @@ void board_init_f(ulong dummy) { int ret; -#ifdef CONFIG_DEBUG_UART +#if defined(CONFIG_DEBUG_UART) && defined(CONFIG_TPL_SERIAL) debug_uart_init(); /* * Debug UART can be used from here if required: @@ -46,7 +46,9 @@ void board_init_f(ulong dummy) * printhex8(0x1234); * printascii("string"); */ +#if CONFIG_TPL_BANNER_PRINT printascii("U-Boot TPL board init\n"); +#endif #endif secure_timer_init();