From patchwork Tue Aug 27 14:20:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Czechowski X-Patchwork-Id: 1977341 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=gXIySyiW; 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 (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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WtV962ltlz1yXd for ; Wed, 28 Aug 2024 00:21:46 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 32C0D88753; Tue, 27 Aug 2024 16:21: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=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="gXIySyiW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C7F9B88A2F; Tue, 27 Aug 2024 16:21:42 +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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (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 0271688009 for ; Tue, 27 Aug 2024 16:21:39 +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-ej1-x62a.google.com with SMTP id a640c23a62f3a-a86e9db75b9so95592766b.1 for ; Tue, 27 Aug 2024 07:21:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1724768499; x=1725373299; darn=lists.denx.de; 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=eAgW55hiA6tnEAet1e09qZ0yGF71t6ESZNAS8YQvrZM=; b=gXIySyiWbph/zZCTCschzneso/dTtijRUCXAMAjZzcxJF967DfP/gvM8cCbjKyQufN 3nN44RBXTOYmnO02FvX+16RlZidmJS7qjIYnXcd3WXbsfcOisxuHUWNCNUJNPqNXRJPc /25gQBWx/5m0j3EJ6p0yE4zXLSn9Zy4BJuAIAS68SjFPbbyZztbSXSIXvgDbRfmh0+OB Mk6asFbZNRVB5lqLvAnX/nxOGEjTRZMcL/euW0UEJMeczdUaTbo4ifoTgrPVQVVJsMHA QfLUSwWjfwpan3Oe0ftRRdD8abfeIuNS/cIeYtHm8lvjII8WRw4wzBJvoHAcCBg/yQPk sdIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724768499; x=1725373299; 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=eAgW55hiA6tnEAet1e09qZ0yGF71t6ESZNAS8YQvrZM=; b=pAJqwysygttgrCNhKFZlMtvY7ykkIEgiFbUhICSsh80hE/PENQtluIa0WeRaAfJMxO LayQSpbu0/QgQ7vPlHAx9H7KqGOIE+/Fuzptq4YEUHL37PPQWc3jolKdFSvgbKGNf8E2 jYV+8subAxQjy0KihwoTSnehS2zcwHNSigQTJZ9ryWQp6yYKfBqVPaxHVX4kIi665O4z NUhFPNosUrU+d2xLr1Aja3Zob6A3NiGoTq8e6nP7q1NRgQKAlMBpCDKoS1dXy73G7dgV A8kBRMbCdqqaQ5sS3hslw6nqkVTDsMDDJpiL3hVz33hOwKTI6dWRDZm1vu56hRlUjLQl +IsQ== X-Gm-Message-State: AOJu0Yw7bHUO4o+ttq2Rus3Z4wDmNzdy9ViGLziR0uawJqKPQ+n9awFD Lu9+R7GAWBKRURZBTXgGBPUISkWP1z3WbcMEw86HQ1Ax7GABJVkhS5n1OUo3vNT3ZAky0WAzAzc n X-Google-Smtp-Source: AGHT+IGdhfKU5WZskwLYH60TOvH7qmOdXt1/w8Tysj2TPn6rBFRzQuh0/dVOndkUDEW1DCvv4brmVw== X-Received: by 2002:a17:907:e229:b0:a72:40b4:c845 with SMTP id a640c23a62f3a-a86a548805amr970380766b.51.1724768498988; Tue, 27 Aug 2024 07:21:38 -0700 (PDT) Received: from localhost.localdomain ([91.90.172.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a86e594e809sm114854366b.219.2024.08.27.07.21.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2024 07:21:38 -0700 (PDT) From: Lukasz Czechowski To: u-boot@lists.denx.de Cc: trini@konsulko.com, sjg@chromium.org, philipp.tomsich@vrull.eu, kever.yang@rock-chips.com, quentin.schulz@cherry.de, Lukasz Czechowski Subject: [PATCH 1/4] debug_uart: Replace debug functions with dummies if CONFIG_DEBUG_UART is not set Date: Tue, 27 Aug 2024 16:20:55 +0200 Message-ID: <20240827142058.594556-2-lukasz.czechowski@thaumatec.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240827142058.594556-1-lukasz.czechowski@thaumatec.com> References: <20240827142058.594556-1-lukasz.czechowski@thaumatec.com> 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 In case DEBUG UART is not used, define dummy macros replacing the actual function implementations that will not be available. This allows to compile code and avoid linker errors. Because the DEBUG_UART_FUNCS macro should not be used if DEBUG UART is not available, redefine it to generate compilation warning. Signed-off-by: Lukasz Czechowski Reviewed-by: Simon Glass --- include/debug_uart.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/debug_uart.h b/include/debug_uart.h index 714b369e6fe..dc0f1aa4c98 100644 --- a/include/debug_uart.h +++ b/include/debug_uart.h @@ -128,6 +128,8 @@ void printdec(unsigned int value); (1 << CONFIG_DEBUG_UART_SHIFT), \ CONFIG_DEBUG_UART_SHIFT) +#ifdef CONFIG_DEBUG_UART + /* * Now define some functions - this should be inserted into the serial driver */ @@ -197,4 +199,18 @@ void printdec(unsigned int value); _DEBUG_UART_ANNOUNCE \ } \ +#else + +#define DEBUG_UART_FUNCS \ + #warning "DEBUG_UART not defined!" + +#define printch(ch) do{}while(0); +#define printascii(str) do{}while(0); +#define printhex2(value) do{}while(0); +#define printhex4(value) do{}while(0); +#define printhex8(value) do{}while(0); +#define printdec(value) do{}while(0); + +#endif + #endif From patchwork Tue Aug 27 14:20:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Czechowski X-Patchwork-Id: 1977342 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=muEoxukf; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WtV9S4XDpz1yXd for ; Wed, 28 Aug 2024 00:22:04 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BFFA68641C; Tue, 27 Aug 2024 16:22:00 +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="muEoxukf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 896C085B66; Tue, 27 Aug 2024 16:21:59 +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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) (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 789DC8641C for ; Tue, 27 Aug 2024 16:21:57 +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-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2f3f163e379so86769271fa.3 for ; Tue, 27 Aug 2024 07:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1724768516; x=1725373316; darn=lists.denx.de; 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=kKsx+WTjyVwiAjtDIJ8QzDhDuuHLb9yswm8yz/4TU84=; b=muEoxukf/5vIw46bNarcuaWHTUO8V5zmk2bzUgnskCSU5OlGlrqHCH6/n5IEqc28tz PdKG9JPLVITXI+osecnxZ2fu3Jvy+phLP94gK5EeAKNnYBJbIDIoZSgHMLwU9Xa9kTJZ MmYbl4TLoz9SsakUMcHLzd/Pgt7UavGFhO+qP9tsPgNUIBGaDTMFucj9U6NDjqOOfvB4 PpQvF3oDBp7EiKVHcTYBUP9tHn7SDsdYzfIES3LLr2a2dEw42t2hmpwGfzyAWvQRbVYU RbWSuopYnJp9TBT6NNCBZKSfg+JXIF/uBJzzJzQSz70VT5O3Szch0/AJbErNDDO/7lwC DIzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724768516; x=1725373316; 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=kKsx+WTjyVwiAjtDIJ8QzDhDuuHLb9yswm8yz/4TU84=; b=cbcGduLrrdocV9MFf09IEvmxU3vHkjLbeyAgxWPJIBgDvht3krm+aT6eJy6Xv9bFfB CSP7IC6B//2gbMcdBF7hZ0KYTbqR8wvSqtPbx+Nlz7w/00R7wUT0NeotiFz7i+ryiOPp r8oVKF4Tp+ChXsautce2r3RzAV2wUiMv6jGzYBA+f8t2hJiKeRkr3jpBbnp5YHDc/ONI fLMqOIWSKNENqLpPpDJ6J2A/EV4fHR8XmHDnw/d+GCkhJLSOFOuKfegGJMd8ZITu3BSv Ysz4EjjEZ+ZMagQkzkOYiyVMQdfi5SVOmOSUogbFGt3ILc8BT7QlK9I/wIbvdpfuPLcV j2Rw== X-Gm-Message-State: AOJu0YwFeknbTrvTizGwB0jT1mCMFX+gO16pgkN+MBgIoolgyHYDW5Ri eg0Pk8ZKFmwxoklMsTxaYm1PKoON49Nv4QrjqDzGdIMcaEFPRIyonXNYG8ZsK0drHpiA32V5cLX 8 X-Google-Smtp-Source: AGHT+IFV6WhYZHcGaLs2S1cilFb23LhFB6/1OMbzPgVU4X6ynkBcL8b58eCp3jev46snoJqVTS7aUg== X-Received: by 2002:a05:6512:10d6:b0:533:483f:9562 with SMTP id 2adb3069b0e04-5343887e18fmr11155627e87.42.1724768516209; Tue, 27 Aug 2024 07:21:56 -0700 (PDT) Received: from localhost.localdomain ([91.90.172.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a86e594e809sm114854366b.219.2024.08.27.07.21.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2024 07:21:56 -0700 (PDT) From: Lukasz Czechowski To: u-boot@lists.denx.de Cc: trini@konsulko.com, sjg@chromium.org, philipp.tomsich@vrull.eu, kever.yang@rock-chips.com, quentin.schulz@cherry.de, Lukasz Czechowski Subject: [PATCH 2/4] ram: rockchip: Kconfig: Fix dependency of RAM_ROCKCHIP_DEBUG Date: Tue, 27 Aug 2024 16:20:56 +0200 Message-ID: <20240827142058.594556-3-lukasz.czechowski@thaumatec.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240827142058.594556-1-lukasz.czechowski@thaumatec.com> References: <20240827142058.594556-1-lukasz.czechowski@thaumatec.com> 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 The RAM_ROCKCHIP_DEBUG can be used only if DEBUG_UART is available, otherwise it won't have any effect. Add negative dependency to TPL_SILENT_CONSOLE. Signed-off-by: Lukasz Czechowski --- drivers/ram/rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ram/rockchip/Kconfig b/drivers/ram/rockchip/Kconfig index 67c63ecba04..4a6a6328676 100644 --- a/drivers/ram/rockchip/Kconfig +++ b/drivers/ram/rockchip/Kconfig @@ -15,6 +15,8 @@ if RAM_ROCKCHIP config RAM_ROCKCHIP_DEBUG bool "Rockchip ram drivers debugging" + depends on DEBUG_UART + depends on !TPL_SILENT_CONSOLE default y help This enables debugging ram driver API's for the platforms From patchwork Tue Aug 27 14:20:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Czechowski X-Patchwork-Id: 1977343 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=wQXgPVUH; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WtV9f4B14z1yXd for ; Wed, 28 Aug 2024 00:22:14 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8BF8A88A53; Tue, 27 Aug 2024 16:22:05 +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="wQXgPVUH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F321C88A3E; Tue, 27 Aug 2024 16:22:04 +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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (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 DBB7C88A31 for ; Tue, 27 Aug 2024 16:22:02 +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-ej1-x62b.google.com with SMTP id a640c23a62f3a-a868b8bb0feso609689466b.0 for ; Tue, 27 Aug 2024 07:22:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1724768521; x=1725373321; darn=lists.denx.de; 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=0DsZp0FqywBD05El5OUOdQ41OJoLnoijk2gzwk4JJbQ=; b=wQXgPVUHgGI//cN0AXSHGaisZaRobS6ZJyRi1k2bKvjpVOOiVYfAQklr4RcwJ3Waza dLFRk2QhgOIwhigFhE+tWyaiksXdQaWhRHpQarst8TTkkQv6/jhW+GadF8yDZ9V7hyYn EQ5MfrdPSXx//Rt5mykNcrWTssFLyhwsPVzInMCTl7VvIvpT/ugLam+AyqVlKXD7MHkJ HuQWg1B7ulAbqc86JDiMAOQmPsjb+StRvFy2h4Zwq4kWP/J+uACZLKQ+yx0kg0Gn6xsM mYashLC5bAHLTG35c4VXJj9VGHQz1BnNyXxiE56YhJCGQFAKpk9rPnm1sBU5jbuYDo5x 41zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724768521; x=1725373321; 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=0DsZp0FqywBD05El5OUOdQ41OJoLnoijk2gzwk4JJbQ=; b=ONshtqJoZR+RTw1H/ycQUB469yHd3tc+XiM+hdHk32bZjqc+FAXG9p7X+8qklNpW+w drXh9hiwrD5Ilqp0HNEzMx5P+fqSw1frNRJOG8v4pn0i7o34w+usnUAj3gBnhxrRsjCn r8UbiTPZNc4mu17LpZ4GEXvsDLyTTmgMyIEvzoXgMCIcIkR7W3hvF48CLmFo5zWM1CHt jEfLn5ziBrINdzvmL9DnpvbcZFDlJOSZh35yNA8nbM5Zh/45m7bNWGYhopqzA5Ue9Dlo H9l8oeOMUuq+VWZ5ITRFgq74XpZ7U7nS2AIO8A61N1L5qmPB+0MmmfDzDVzDT0SKxUbH zTug== X-Gm-Message-State: AOJu0Yz5oEIrLzXv2FrZM/H3SfJCjd469S2csvEN44B153SEl+5WeHdA TLBvMCODm8YFW7iNsQXSxFB9qsZPTqV8guQeVqNAH0JrckxK+jXQkwG4nd2oL89JjiTNCLclei6 T X-Google-Smtp-Source: AGHT+IHLRzNd70xzFkZtSwFzCkw0bydESqfBgY8hn14jLj8ryE2nN0KrxotiXXKKfiI5jQ855fwguA== X-Received: by 2002:a17:907:2cc6:b0:a86:b727:3f27 with SMTP id a640c23a62f3a-a86e3c1d00emr213601666b.52.1724768521332; Tue, 27 Aug 2024 07:22:01 -0700 (PDT) Received: from localhost.localdomain ([91.90.172.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a86e594e809sm114854366b.219.2024.08.27.07.22.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2024 07:22:01 -0700 (PDT) From: Lukasz Czechowski To: u-boot@lists.denx.de Cc: trini@konsulko.com, sjg@chromium.org, philipp.tomsich@vrull.eu, kever.yang@rock-chips.com, quentin.schulz@cherry.de, Lukasz Czechowski Subject: [PATCH 3/4] rockchip: Kconfig: PX30: Weaken dependency TPL/SPL serial Date: Tue, 27 Aug 2024 16:20:57 +0200 Message-ID: <20240827142058.594556-4-lukasz.czechowski@thaumatec.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240827142058.594556-1-lukasz.czechowski@thaumatec.com> References: <20240827142058.594556-1-lukasz.czechowski@thaumatec.com> 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 Allow to disable serial console in TPL and SPL. Weak dependency to SPL_SERIAL and TPL_SERIAL is also used in other Rockchip boards. Signed-off-by: Lukasz Czechowski Reviewed-by: Quentin Schulz --- arch/arm/mach-rockchip/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index fc1b638ff01..47a6275d45f 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -11,8 +11,8 @@ config ROCKCHIP_PX30 select TPL_TINY_FRAMEWORK if TPL select TPL_NEEDS_SEPARATE_STACK if TPL imply SPL_SEPARATE_BSS - select SPL_SERIAL - select TPL_SERIAL + imply SPL_SERIAL + imply TPL_SERIAL select DEBUG_UART_BOARD_INIT imply ROCKCHIP_COMMON_BOARD imply SPL_ROCKCHIP_COMMON_BOARD From patchwork Tue Aug 27 14:20:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Czechowski X-Patchwork-Id: 1977344 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=2p4SHVHs; 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 (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 (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WtV9s0bC0z1yXd for ; Wed, 28 Aug 2024 00:22:25 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0F9E688A8E; Tue, 27 Aug 2024 16:22:07 +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="2p4SHVHs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DA5A888A7D; Tue, 27 Aug 2024 16:22:05 +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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (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 DC7A285B66 for ; Tue, 27 Aug 2024 16:22:03 +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-lf1-x12e.google.com with SMTP id 2adb3069b0e04-5343d2af735so4141919e87.1 for ; Tue, 27 Aug 2024 07:22:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1724768523; x=1725373323; darn=lists.denx.de; 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=OR6042Kgiwvjr/1hxcjwFNGZzcyXFDjqeM9SksElBvA=; b=2p4SHVHsIMjtzcU/EFrPIb9cS6mYPitZFY3jTWLttHLwUM6YUhtP1lQiHf6fouzKpH iNv5VNdwWm+vFUqL8rI8jKwBYvJr3Rp3cahUunlMHF/ugorU29srmKtUu5A28+gEGxi1 PoKkP6H6GKebBK1LxoNmEtIH//TQTqnclMRUdt5E0BhPZoo3dFraGeHoaERAupVmhGFC gwGI5Jmp0evuRKOdtk6VeOrRdPct1APmVdK1/N9Njpb2uqu0yHJ+RpgLt6XTW+fkHaRq C0XZda/5KPJ/kB+nKhaurkeCE8osIkq4UjbsFobpfH2gdCbjTn/Zw3sZNRDQiSmMdPJr +MKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724768523; x=1725373323; 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=OR6042Kgiwvjr/1hxcjwFNGZzcyXFDjqeM9SksElBvA=; b=EhiZ2I6eXBz9E4qkgvZHq45fcrhqCFMJJdJniWGFzCFmRb1yo9993+mZtaSPUEP9B2 4yHMRTSPMlWlIWfS8T9CkeNRRO4zV2aIarYGgJGo8cNxEVIROvvDMVwXHXmF394SYltg NtSLNrubzQIKQbgOV0HH+qFlJs1MXDn46Zx4Pt+Oj8yRcgTdBJ60UrVrd3S2AiUCatZ/ N/G5LhyWXVec16E4THm0G+pIygDHkSNJeNbr6SSpBuTOenSGaeh+VL92PNR4GNmHdCs6 PuMhnE5nCHkjb8mH/o1XJxlRzarEjccfZ0bNShnEsUh/OvXwtrCrOlytrhbIFRbbcgWO xMBQ== X-Gm-Message-State: AOJu0Yz2bwfqKFBnZrIMchjElXE9yjAylAg/PXSq1sIsySrM6Jfw4c5I av8SbNpC+9uU0pMgDcgRZWpO++89Xt9jlqHQUwDXowOErPd/5+pJa9q1Tr4L1FrCadzmKLgKzXf S X-Google-Smtp-Source: AGHT+IFUmD0GXJwPH2Qm/Im7g8zx0s32/djsFYBcpGbJlVEvo0j/wn4BPBeH27d6VPFiKFmcQipTHQ== X-Received: by 2002:a05:6512:3987:b0:533:d3e:170a with SMTP id 2adb3069b0e04-5344e4faf40mr2097377e87.38.1724768522747; Tue, 27 Aug 2024 07:22:02 -0700 (PDT) Received: from localhost.localdomain ([91.90.172.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a86e594e809sm114854366b.219.2024.08.27.07.22.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2024 07:22:02 -0700 (PDT) From: Lukasz Czechowski To: u-boot@lists.denx.de Cc: trini@konsulko.com, sjg@chromium.org, philipp.tomsich@vrull.eu, kever.yang@rock-chips.com, quentin.schulz@cherry.de, Lukasz Czechowski Subject: [PATCH 4/4] arm: rockchip: PX30: Fix hard dependency to DEBUG_UART_BOARD_INIT Date: Tue, 27 Aug 2024 16:20:58 +0200 Message-ID: <20240827142058.594556-5-lukasz.czechowski@thaumatec.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240827142058.594556-1-lukasz.czechowski@thaumatec.com> References: <20240827142058.594556-1-lukasz.czechowski@thaumatec.com> 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 Because DEBUG_UART_BOARD_INIT depends on DEBUG_UART, hard dependency to DEBUG_UART_BOARD_INIT in ROCKCHIP_PX30 can cause warnings if DEBUG_UART is disabled. The DEBUG_UART_BOARD_INIT is already implied by ARCH_ROCKCHIP entry. Remove hard dependency from ROCKCHIP_PX30, so that it will be consistent with other rockchip boards. Signed-off-by: Lukasz Czechowski Reviewed-by: Quentin Schulz --- arch/arm/mach-rockchip/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index 47a6275d45f..c9aaf6d3476 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -13,7 +13,6 @@ config ROCKCHIP_PX30 imply SPL_SEPARATE_BSS imply SPL_SERIAL imply TPL_SERIAL - select DEBUG_UART_BOARD_INIT imply ROCKCHIP_COMMON_BOARD imply SPL_ROCKCHIP_COMMON_BOARD imply ARMV8_CRYPTO