From patchwork Tue Sep 3 16:38:54 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: 1980214 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=lEuVux2o; 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 4Wyrtv120Dz1yZ9 for ; Wed, 4 Sep 2024 02:39:35 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D425C88C21; Tue, 3 Sep 2024 18:39:26 +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="lEuVux2o"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2B33A88C41; Tue, 3 Sep 2024 18:39:25 +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-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) (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 3341388C1D for ; Tue, 3 Sep 2024 18:39:23 +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-x235.google.com with SMTP id 38308e7fff4ca-2f504652853so62872291fa.0 for ; Tue, 03 Sep 2024 09:39:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1725381562; x=1725986362; 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=jnZzDc4/9a/iuPUn1krXpYeqtkUN/a6IHTxZ/sOs+o4=; b=lEuVux2o9lwuAjMbrxewSF+l2wf0D6qFFAOwNlsi2J09e60AN/AS0o27mOZB6/O6Ks +DLeBB26J7ME7s52/slGbZ0NK6YcUJjnp3i8rpNRf2itPDweaOpR+j/nwi3O7Gbc+LKx Q9B7BGZMmrthSGNGJ+6iRqbImD+r6LZ6Xt707cmUhliIcYhyJGXun/H/F1xJ9/TUYzBo EPNI8CTSs6IxgQbb/laB6Ail5atZ1D/S6RA7WLi09UbqoEXSBcF5hVj1rE+ZTMr87tY4 +SbAe/GNLuKgQ5RBmCee3jVYA+RhJphI1T6P0qq+ZJvj8byDcGtgvm7q1eA3m8SboxDO bqSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725381562; x=1725986362; 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=jnZzDc4/9a/iuPUn1krXpYeqtkUN/a6IHTxZ/sOs+o4=; b=Z3ttf6Yqx9uZdZ8iStBfvjdduzw9koT8yWNQVfX8ogKobsi5SIeEvo4Gf3yWpxn5kO 0UySppN7gs8wYOAVygYy9uhcA4ULOxrMuaqtkviCNLffs6D7W3/iK1tlFazzc+Fc3V6u v8Jd0I1yrGN+8Ztkpzp2KfPS84fqMxQNLIrCW8PUYMbsWrw/pvuuLOXLQ/JF9E1rwfbZ kR2Og/6A7oE6zzwltsycYOktbsCanjbhtzMGty+3/nkVPmIMFW4q+GrPf8b68Cr8BrjB HRq7DDbvoPAwbt9xDjadn6nXVJa6iTXHOD7lihFWTfUtrvn08hc97DdzRj9PIvn1bYTk 5szg== X-Gm-Message-State: AOJu0Ywe/AZYUfe3sie2UqkAWbxC/buMDjEpxUN/YD4sSjZldaf9Satm XO3iDuyZ44SMe3h0yOnoOliu1QigPOxe9nOJzpXMJ2KmwcACJfbZmvWQCwE5tMaokgU3pVqs6S7 R X-Google-Smtp-Source: AGHT+IHovVCz+pzzUBCzJ+cLQMem7gvGEq7d4LHCPBnmAHr5HkSHwPlEqK0sBPPx6EWFRTbERdw95Q== X-Received: by 2002:a2e:bc0c:0:b0:2ef:2e1c:79b5 with SMTP id 38308e7fff4ca-2f61e03460amr118222181fa.14.1725381562021; Tue, 03 Sep 2024 09:39:22 -0700 (PDT) Received: from localhost.localdomain (178-36-242-203.dynamic.inetia.pl. [178.36.242.203]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c24b5ad63dsm4177197a12.80.2024.09.03.09.39.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 09:39:21 -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 v2 1/5] debug_uart: Replace debug functions with dummies if CONFIG_DEBUG_UART is not set Date: Tue, 3 Sep 2024 18:38:54 +0200 Message-ID: <20240903163858.1155218-2-lukasz.czechowski@thaumatec.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240903163858.1155218-1-lukasz.czechowski@thaumatec.com> References: <20240903163858.1155218-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 Reviewed-by: Kever Yang --- 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 Sep 3 16:38:55 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: 1980215 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=FV20CAG1; 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 4WyrvG39vHz1yZ9 for ; Wed, 4 Sep 2024 02:39:54 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4488088C1D; Tue, 3 Sep 2024 18:39:51 +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="FV20CAG1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 11D4888C30; Tue, 3 Sep 2024 18:39:51 +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-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (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 2A6F988606 for ; Tue, 3 Sep 2024 18:39:49 +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-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5c25dd38824so2209163a12.0 for ; Tue, 03 Sep 2024 09:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1725381588; x=1725986388; 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=kTYojGfjLhzV2kZRX/mUuq+HtEaqCMpPF5UgVaZFXWo=; b=FV20CAG1eFTxhDXM6nvWGZ/30rsKVIKewwOnj4Y2H68QdCbwkIxRwJ0tDk/74OlSQI 8LFQARSPFAJA2fBkr1WjJ2Rgl2zV8IOqD6IAeutxpqadhUQgiYP2r2A74JYGIdzMPVFs nNv+zFyave4rD7Mwga6sThJ15FqvKPTZAUSBMtxiVJwfuCBFvJ4FB88Sr7CSdPGN5Ssj nwB5qFl8r0xuS5wzrJKaG3JihTujQmLATMScfPJeGkpPKUFgvDIq+iet5pUw9bqFWeP6 EMFnBJnHZNDdgb5DceBFMSbGkzNAt3s9Lc4qxYbGCr3eiRmjsLPOgwq5eDRhs+Ww4UFp MnRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725381588; x=1725986388; 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=kTYojGfjLhzV2kZRX/mUuq+HtEaqCMpPF5UgVaZFXWo=; b=G0xMSKajaVxxHq1rce8HA/Z4Wc7S3dZQTdgBg4k0z5ekDj2tO3md3aKKXTX5c+IHNv pPlaCK6XTWiX5DZ/897pVpmkeAAcSFa+abi/fPINUBgc964psx+ZGOvVxQnFvZyPgK9X MQq/42EFhNXVTAMcws+V6U4mU2zlXxZ3s5gmWZVGMfeQ3RrySsY3GTsuyC2ozvgCfrFU lDwnVNy0qdASHdQdk8sgCHh0czZL13eD45cBAaiBu3OorS2QWz6fT2CVnBSCXrjLwQeM 9mCpWpyIFSLiUG4+7Rxz+sdNq64/CM5pX4KDawrn7e6rO9Jeh+v8BqfaTq5y4+wRqxnj URtg== X-Gm-Message-State: AOJu0YyBqU1ROvb8Xl4IJqIZVjDu4OttgMgmpW8HbWurIeu3NkkDy2DT WBKTFugcvUOBnShwsFHfcWhSJw9mJ5xZDDhqe8Jy0C3YH0TJvWT41eRm4dTU+WDdRT/yuxhjCkh H X-Google-Smtp-Source: AGHT+IFc+xY6K6pznelAZWambCj0r/uDLlLGnReqrS287UEN3ZF0w59YHNM+mA7F03WbRGC+jM8ACg== X-Received: by 2002:a05:6402:5186:b0:5c2:1014:295a with SMTP id 4fb4d7f45d1cf-5c2200de37dmr18364778a12.2.1725381588162; Tue, 03 Sep 2024 09:39:48 -0700 (PDT) Received: from localhost.localdomain (178-36-242-203.dynamic.inetia.pl. [178.36.242.203]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c24b5ad63dsm4177197a12.80.2024.09.03.09.39.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 09:39:48 -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 v2 2/5] ram: rockchip: Fix dependency of RAM_ROCKCHIP_DEBUG Date: Tue, 3 Sep 2024 18:38:55 +0200 Message-ID: <20240903163858.1155218-3-lukasz.czechowski@thaumatec.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240903163858.1155218-1-lukasz.czechowski@thaumatec.com> References: <20240903163858.1155218-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. Signed-off-by: Lukasz Czechowski Reviewed-by: Kever Yang --- drivers/ram/rockchip/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ram/rockchip/Kconfig b/drivers/ram/rockchip/Kconfig index 67c63ecba04..d707d09c1c8 100644 --- a/drivers/ram/rockchip/Kconfig +++ b/drivers/ram/rockchip/Kconfig @@ -15,6 +15,7 @@ if RAM_ROCKCHIP config RAM_ROCKCHIP_DEBUG bool "Rockchip ram drivers debugging" + depends on DEBUG_UART default y help This enables debugging ram driver API's for the platforms From patchwork Tue Sep 3 16:38:56 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: 1980219 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=0zWmWB3V; 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 4Wys0S4vgqz1yXY for ; Wed, 4 Sep 2024 02:44:24 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 06AB4889BD; Tue, 3 Sep 2024 18:44:22 +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="0zWmWB3V"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E90CB88BBE; Tue, 3 Sep 2024 18:44:20 +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-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) (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 C63C1887EB for ; Tue, 3 Sep 2024 18:44:18 +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-x230.google.com with SMTP id 38308e7fff4ca-2f51b67e16dso64444251fa.3 for ; Tue, 03 Sep 2024 09:44:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1725381858; x=1725986658; 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=nMGVHVXXGOOL+7tdPe2GmUmTj56nF0iDo5hTR6mIRdk=; b=0zWmWB3VYH38cMg3D6ZH9gAjAA6ft56g/M4PO5gp32QYLoywZAYVKpcqfjDaAbvrlQ gw8tp4jmvcvjHthxgNGGMiJNv6rSmeEh7HroYqHSNu4j1HdyoRbD5VAunla35yuwszjb wh8rr2a3bNHJzhxVxy2nM/7NMZdK7ydnG3Kn1s3rbi7u5aBhkcgRPrMqNyPwkaw9AiiR ZpBI/mkk1CAWxfbVB/4FlyMezhnATYBHIYam2LqeroQn4XRH8A8gUU8KzyQ/YT2Bo6w4 ykDZC050r/YPtPvMMoUQAh7fI/YUBKqx4wtqYrqQUOS046KYDu3jCxahnCCSAPbm4NfY 7gEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725381858; x=1725986658; 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=nMGVHVXXGOOL+7tdPe2GmUmTj56nF0iDo5hTR6mIRdk=; b=TqQ88eorXCPAHdkpSVjhLZxxEAdBotsbuYtlUdBpX0zFa8AtEqk2dQyKkKvkzPPJPz jwHK7ZWxJ0lTc+q7M8ajBiv8+FDjAGqSNwV6eeEuhR6lTHjTBh+WKHAqRiB7+HtVxJLB T3YiXX0S0TLZ2G099JE32i1AzTnA0pBmccn9ht+y3TC0Egct8Gcn8tBkgqGBG4fFJvs7 b3QCQoIJJtvQZimMVz96Fw7XWncL41PQAvUWemWJ04SrrQyigp3ZRblv817UpA594E4u xIiLykRF1aRq5HcQHAbTfDWDOG1EHyTPbenLwFKY3vrYftzSFrMn0/zrP9C0L9BbkDbw k0zg== X-Gm-Message-State: AOJu0YwoiEwgFOk2zHUnOjGi3N+yiogAibZswY8IHHE7LHySM1473zcZ oC5ww6ko820Cs8VHC4f6ADvlx13x+pVfBwNpXBVS9OVi7KRO5BJ+YETISG7F9L18DUnn/dLWhIS b X-Google-Smtp-Source: AGHT+IEKx6H3VKO99pphwQneLf/D1KmzgE/KFeilLzI/ZSqK+v7KOdZg5f0ki7IypS68gz90hRuMxQ== X-Received: by 2002:a2e:1319:0:b0:2f3:e814:a90d with SMTP id 38308e7fff4ca-2f64d4ab2d7mr10194941fa.28.1725381857558; Tue, 03 Sep 2024 09:44:17 -0700 (PDT) Received: from localhost.localdomain (178-36-242-203.dynamic.inetia.pl. [178.36.242.203]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c24b5ad63dsm4177197a12.80.2024.09.03.09.44.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 09:44:17 -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 v2 3/5] ram: rockchip: Add separate RAM_ROCKCHIP_DEBUG config for TPL/SPL Date: Tue, 3 Sep 2024 18:38:56 +0200 Message-ID: <20240903163858.1155218-4-lukasz.czechowski@thaumatec.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240903163858.1155218-1-lukasz.czechowski@thaumatec.com> References: <20240903163858.1155218-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 Introduce new config symbols TPL_RAM_ROCKCHIP_DEBUG and SPL_RAM_ROCKCHIP_DEBUG to allow for better dependencies control of RAM driver debugging configuration. Add negative dependencies to TPL_SILENT_CONSOLE and SPL_SILENT_CONSOLE, respectively. Replace IS_ENABLED(CONFIG_RAM_ROCKCHIP_DEBUG) directives with CONFIG_IS_ENABLED(RAM_ROCKCHIP_DEBUG) to utilize the configuration changes. Update defconfigs of affected boards so that behavior is not changed. Signed-off-by: Lukasz Czechowski --- configs/anbernic-rgxx3-rk3566_defconfig | 1 + configs/neu2-io-rv1126_defconfig | 2 ++ configs/roc-pc-mezzanine-rk3399_defconfig | 2 ++ configs/roc-pc-rk3399_defconfig | 2 ++ configs/rock-pi-n10-rk3399pro_defconfig | 2 ++ configs/sonoff-ihost-rv1126_defconfig | 2 ++ drivers/ram/rockchip/Kconfig | 24 +++++++++++++++++++++++ drivers/ram/rockchip/sdram_common.c | 2 +- drivers/ram/rockchip/sdram_rk3399.c | 4 ++-- drivers/ram/rockchip/sdram_rv1126.c | 10 +++++----- 10 files changed, 43 insertions(+), 8 deletions(-) diff --git a/configs/anbernic-rgxx3-rk3566_defconfig b/configs/anbernic-rgxx3-rk3566_defconfig index a03509bf467..4392bb5af00 100644 --- a/configs/anbernic-rgxx3-rk3566_defconfig +++ b/configs/anbernic-rgxx3-rk3566_defconfig @@ -68,6 +68,7 @@ CONFIG_REGULATOR_RK8XX=y CONFIG_PWM_ROCKCHIP=y CONFIG_SPL_RAM=y # CONFIG_RAM_ROCKCHIP_DEBUG is not set +# CONFIG_SPL_RAM_ROCKCHIP_DEBUG is not set # CONFIG_RNG_SMCCC_TRNG is not set CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 diff --git a/configs/neu2-io-rv1126_defconfig b/configs/neu2-io-rv1126_defconfig index 2a4c9b45a04..1bdf99887b3 100644 --- a/configs/neu2-io-rv1126_defconfig +++ b/configs/neu2-io-rv1126_defconfig @@ -46,6 +46,8 @@ CONFIG_MMC_DW_ROCKCHIP=y CONFIG_REGULATOR_PWM=y CONFIG_PWM_ROCKCHIP=y # CONFIG_RAM_ROCKCHIP_DEBUG is not set +# CONFIG_SPL_RAM_ROCKCHIP_DEBUG is not set +# CONFIG_TPL_RAM_ROCKCHIP_DEBUG is not set CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 CONFIG_SYSRESET=y diff --git a/configs/roc-pc-mezzanine-rk3399_defconfig b/configs/roc-pc-mezzanine-rk3399_defconfig index a57899bfdfa..45c4975e452 100644 --- a/configs/roc-pc-mezzanine-rk3399_defconfig +++ b/configs/roc-pc-mezzanine-rk3399_defconfig @@ -66,6 +66,8 @@ CONFIG_SPL_DM_REGULATOR_FIXED=y CONFIG_REGULATOR_RK8XX=y CONFIG_PWM_ROCKCHIP=y # CONFIG_RAM_ROCKCHIP_DEBUG is not set +# CONFIG_SPL_RAM_ROCKCHIP_DEBUG is not set +# CONFIG_TPL_RAM_ROCKCHIP_DEBUG is not set CONFIG_RAM_ROCKCHIP_LPDDR4=y CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index b45f0e0a899..3f2d5650249 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -63,6 +63,8 @@ CONFIG_SPL_DM_REGULATOR_FIXED=y CONFIG_REGULATOR_RK8XX=y CONFIG_PWM_ROCKCHIP=y # CONFIG_RAM_ROCKCHIP_DEBUG is not set +# CONFIG_SPL_RAM_ROCKCHIP_DEBUG is not set +# CONFIG_TPL_RAM_ROCKCHIP_DEBUG is not set CONFIG_RAM_ROCKCHIP_LPDDR4=y CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 diff --git a/configs/rock-pi-n10-rk3399pro_defconfig b/configs/rock-pi-n10-rk3399pro_defconfig index ec995a54a0e..d4ba628e428 100644 --- a/configs/rock-pi-n10-rk3399pro_defconfig +++ b/configs/rock-pi-n10-rk3399pro_defconfig @@ -52,6 +52,8 @@ CONFIG_PMIC_RK8XX=y CONFIG_REGULATOR_RK8XX=y CONFIG_PWM_ROCKCHIP=y # CONFIG_RAM_ROCKCHIP_DEBUG is not set +# CONFIG_SPL_RAM_ROCKCHIP_DEBUG is not set +# CONFIG_TPL_RAM_ROCKCHIP_DEBUG is not set CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 CONFIG_SYS_NS16550_MEM32=y diff --git a/configs/sonoff-ihost-rv1126_defconfig b/configs/sonoff-ihost-rv1126_defconfig index 4890644c7e6..1b10cded8fd 100644 --- a/configs/sonoff-ihost-rv1126_defconfig +++ b/configs/sonoff-ihost-rv1126_defconfig @@ -47,6 +47,8 @@ CONFIG_MMC_DW_ROCKCHIP=y CONFIG_REGULATOR_PWM=y CONFIG_PWM_ROCKCHIP=y # CONFIG_RAM_ROCKCHIP_DEBUG is not set +# CONFIG_SPL_RAM_ROCKCHIP_DEBUG is not set +# CONFIG_TPL_RAM_ROCKCHIP_DEBUG is not set CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 CONFIG_SYSRESET=y diff --git a/drivers/ram/rockchip/Kconfig b/drivers/ram/rockchip/Kconfig index d707d09c1c8..5e069dca3be 100644 --- a/drivers/ram/rockchip/Kconfig +++ b/drivers/ram/rockchip/Kconfig @@ -24,6 +24,30 @@ config RAM_ROCKCHIP_DEBUG This is an option for developers to understand the ram drivers initialization, configurations and etc. +config SPL_RAM_ROCKCHIP_DEBUG + bool "Rockchip ram drivers debugging in SPL" + depends on DEBUG_UART + depends on SPL && SPL_RAM && !SPL_SILENT_CONSOLE + default y + help + This enables debugging ram driver API's for the platforms + based on Rockchip SoCs. + + This is an option for developers to understand the ram drivers + initialization, configurations and etc. + +config TPL_RAM_ROCKCHIP_DEBUG + bool "Rockchip ram drivers debugging in TPL" + depends on DEBUG_UART + depends on TPL && TPL_RAM && !TPL_SILENT_CONSOLE + default y + help + This enables debugging ram driver API's for the platforms + based on Rockchip SoCs. + + This is an option for developers to understand the ram drivers + initialization, configurations and etc. + config RAM_ROCKCHIP_DDR4 bool "DDR4 support for Rockchip SoCs" help diff --git a/drivers/ram/rockchip/sdram_common.c b/drivers/ram/rockchip/sdram_common.c index b7a8fce607c..c2a6310388c 100644 --- a/drivers/ram/rockchip/sdram_common.c +++ b/drivers/ram/rockchip/sdram_common.c @@ -10,7 +10,7 @@ #include #include -#ifdef CONFIG_RAM_ROCKCHIP_DEBUG +#if CONFIG_IS_ENABLED(RAM_ROCKCHIP_DEBUG) void sdram_print_dram_type(unsigned char dramtype) { switch (dramtype) { diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index 45270e27184..99a1cc6c174 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -2558,7 +2558,7 @@ static int lpddr4_set_rate(struct dram_info *dram, lpddr4_set_ctl(dram, params, ctl_fn, dfs_cfgs_lpddr4[ctl_fn].base.ddr_freq); - if (IS_ENABLED(CONFIG_RAM_ROCKCHIP_DEBUG)) + if (CONFIG_IS_ENABLED(RAM_ROCKCHIP_DEBUG)) printf("%s: change freq to %dMHz %d, %d\n", __func__, dfs_cfgs_lpddr4[ctl_fn].base.ddr_freq / MHz, ctl_fn, phy_fn); @@ -2980,7 +2980,7 @@ static int sdram_init(struct dram_info *dram, continue; } - if (IS_ENABLED(CONFIG_RAM_ROCKCHIP_DEBUG)) { + if (CONFIG_IS_ENABLED(RAM_ROCKCHIP_DEBUG)) { printf("Channel "); printf(channel ? "1: " : "0: "); } diff --git a/drivers/ram/rockchip/sdram_rv1126.c b/drivers/ram/rockchip/sdram_rv1126.c index 4fbb088a8d9..14e1df71ae4 100644 --- a/drivers/ram/rockchip/sdram_rv1126.c +++ b/drivers/ram/rockchip/sdram_rv1126.c @@ -3375,7 +3375,7 @@ static void ddr_set_rate_for_fsp(struct dram_info *dram, if (get_wrlvl_val(dram, sdram_params)) printascii("get wrlvl value fail\n"); - if (IS_ENABLED(CONFIG_RAM_ROCKCHIP_DEBUG)) { + if (CONFIG_IS_ENABLED(RAM_ROCKCHIP_DEBUG)) { printascii("change to: "); printdec(f1); printascii("MHz\n"); @@ -3383,21 +3383,21 @@ static void ddr_set_rate_for_fsp(struct dram_info *dram, ddr_set_rate(&dram_info, sdram_params, f1, sdram_params->base.ddr_freq, 1, 1, 1); - if (IS_ENABLED(CONFIG_RAM_ROCKCHIP_DEBUG)) { + if (CONFIG_IS_ENABLED(RAM_ROCKCHIP_DEBUG)) { printascii("change to: "); printdec(f2); printascii("MHz\n"); } ddr_set_rate(&dram_info, sdram_params, f2, f1, 2, 0, 1); - if (IS_ENABLED(CONFIG_RAM_ROCKCHIP_DEBUG)) { + if (CONFIG_IS_ENABLED(RAM_ROCKCHIP_DEBUG)) { printascii("change to: "); printdec(f3); printascii("MHz\n"); } ddr_set_rate(&dram_info, sdram_params, f3, f2, 3, 1, 1); - if (IS_ENABLED(CONFIG_RAM_ROCKCHIP_DEBUG)) { + if (CONFIG_IS_ENABLED(RAM_ROCKCHIP_DEBUG)) { printascii("change to: "); printdec(f0); printascii("MHz(final freq)\n"); @@ -3493,7 +3493,7 @@ static int rv1126_dmc_init(struct udevice *dev) save_rw_trn_result_to_ddr(&rw_trn_result); #endif - if (IS_ENABLED(CONFIG_RAM_ROCKCHIP_DEBUG)) + if (CONFIG_IS_ENABLED(RAM_ROCKCHIP_DEBUG)) printascii("out\n"); return ret; From patchwork Tue Sep 3 16:38:57 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: 1980220 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=Rswcbpwz; 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 4Wys0l3Gq6z1yXY for ; Wed, 4 Sep 2024 02:44:39 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5CEE78876E; Tue, 3 Sep 2024 18:44:37 +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="Rswcbpwz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9EB57886E5; Tue, 3 Sep 2024 18:44:36 +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-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) (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 9C0B688B64 for ; Tue, 3 Sep 2024 18:44:34 +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-x22d.google.com with SMTP id 38308e7fff4ca-2f43de7ad5eso70476351fa.1 for ; Tue, 03 Sep 2024 09:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1725381874; x=1725986674; 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=SwZPVfpTlGBMmqKzZrpqUyjuo92nxpmyx16Vro+ppvk=; b=RswcbpwzE20sNRRQLDLHSMcsWgQz11FgEO/pYchD3BBdZzRbj4UXcXzV6F/bY5a5RJ 0FziKl/3oKZ1NtuM2lYwP/cRDK4IrfoH97ka8EhxJCy+h7OMNqaWkzmgbhfZtmKilJGA JCuDO7g33nyE5dqbQHm8oCuQf2GMOLFjHpVdK1Y4rvSJIxkpbCYO2CR8sU5vr4fNnUi1 mGyHKmRsOBAk6SoJOA5Sh55/6HGt/pKr6+TDJscSE8KsjbJ8nrdP2NGokllPtwtZLVAs H+XV2lfHdhcMiNUjyy10S2buU2l4zWin8zBsxCClD6MPL6kEiq3og8KdecVWQfawdPdN qQRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725381874; x=1725986674; 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=SwZPVfpTlGBMmqKzZrpqUyjuo92nxpmyx16Vro+ppvk=; b=vq6sRIm7eqe5x60eSXTJYkRnPgClP9PBp+c5l9FXT4VOvrNQUoByGRG1R2+vfjLP5e qZuWToR3/gZK5+PbLoZc0lnuJBdZlBpWqgLay1LvmVGs3c/YRPPi1GCy2BMLY1ZcTdBi 6hlrq20b9Fjs2kQw+Xz3RZg6/whJrTqe6LMJmKQWz9IKSFPMjgkN/1UWF5quFOIAIyBl RooVHAaQ25yne0I/5y5v1wCyi56mvMMupNTcDd0DhWvdg5nWlorZkJQ1qaLoiia0BFAO 4vOiA6GurQuR5b8Tdc4D98QC8qJtVBTRukdunIgo0VFAelLYvzE+MzjcrHxicJ5/pLAn nIww== X-Gm-Message-State: AOJu0Yxw9RmoJtwlfPlz5z1RrBGCcKvB5Jsz68+8i7gxQFXtLQ7GtE6r szoQYeTGXkQmJ9yiRWO0VilLYGiQECgzjNVBqswiBUFB9x9BVkt5IbIB76Fz6esk+Pe2zV5X9W6 P X-Google-Smtp-Source: AGHT+IFTpCcXsp7tjU9NNWBwxUjun41Y4H9CFf21itC7rCFobB4zVSGtDGIAPm1Fc1DMZgbWHCL04g== X-Received: by 2002:a05:651c:a0a:b0:2f5:1fa7:ac3a with SMTP id 38308e7fff4ca-2f62dc25bd8mr64829321fa.28.1725381873522; Tue, 03 Sep 2024 09:44:33 -0700 (PDT) Received: from localhost.localdomain (178-36-242-203.dynamic.inetia.pl. [178.36.242.203]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c24b5ad63dsm4177197a12.80.2024.09.03.09.44.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 09:44:33 -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 v2 4/5] rockchip: px30: Weaken dependency TPL/SPL serial Date: Tue, 3 Sep 2024 18:38:57 +0200 Message-ID: <20240903163858.1155218-5-lukasz.czechowski@thaumatec.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240903163858.1155218-1-lukasz.czechowski@thaumatec.com> References: <20240903163858.1155218-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 Reviewed-by: Kever Yang --- 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 Sep 3 16:38:58 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: 1980221 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=sjqMQ5c/; 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 4Wys0w0FHRz1yXY for ; Wed, 4 Sep 2024 02:44:48 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C15F988CBF; Tue, 3 Sep 2024 18:44:42 +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="sjqMQ5c/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8AD6288C9F; Tue, 3 Sep 2024 18:44:41 +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-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (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 99EFF886E5 for ; Tue, 3 Sep 2024 18:44: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-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5c25dd38824so2218188a12.0 for ; Tue, 03 Sep 2024 09:44:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1725381879; x=1725986679; 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=LlCLxapT/MPMX/03FzIj7Ta17veA4kndQ6QxvkkkqX4=; b=sjqMQ5c/62B7UNAdZUh9J+H+Ac+J0KVpABy/Fc/Igbigh7BYhgqfyB9FqdYeP2hQY5 EIcT3fmE5LXfs7AqsazBKbfKh51p6ZyzCDO/pIjtKWQEoAoateobo23DN5TE+Xq5tete 2uS8f3iQvKNbqyEoezS4FQXM9Ex+9RL5j8F7Uio+dz6bEhsw7XBjcQxKB59O2ZL611El lTgKNHRL0ZUtLl9MCAYY3jfhJNTzoyQxkuFVX7myeJq2CWJaKJh5IX48BndnOptrCb3s Jsz4xiUzbwWYr0BWdPnCgg68iDscaDYMO3PCKCNZgF/Q4q5MvTvet+xUR0sdaNSBZtdK iECQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725381879; x=1725986679; 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=LlCLxapT/MPMX/03FzIj7Ta17veA4kndQ6QxvkkkqX4=; b=Pj25ReOa88/dTJ9P2gf1PqyXOv0qDKvMubm6IxZsum9tugiKMeZenrYuJppGepTbWw L+Fhy+GcvjLw8Ifxw9EgKlzgxycCPM3G8xc50Sw0qSYWDQEKCUTAZdz1DVLdYSV3fNB7 319hYvUDMos0+Ueam0uM4i4ElB15NtGyY897HjwaUjAGzigtvE2vAfUZsaSAqq0mNQpO d6sUx/G7YejK72A/EseomxM1zi+qlV82lr0EsnIhyzK4Bn2gpic7tiT5zMdPqKg5zUrJ wiXvMRmPmXvVNxLFF13Wih86OIESXDWGRAJDfSrKwVEB8+mbdY1M5w0rCgwo1dCaAlYs 1WlA== X-Gm-Message-State: AOJu0Yw6aO1GOgOEPW3skQtWNSAazMed+7pzAyFWwHlEZm5NVzC5b4r+ Odc2hQPfQeVfWY1AUdHufD+Sii8vDAg7Ns+Z36HgppM/r0/YGS4lHUPR4gz52pJh4bpiKtqK0q2 r X-Google-Smtp-Source: AGHT+IHywTFpbrTsY4j0EVG1j3SUFXrYQQODPPH8HIcSvHjbrP7R6SRwojhnre8SV47Kvw9WcAvZLg== X-Received: by 2002:a05:6402:5186:b0:5be:e9f8:9ba4 with SMTP id 4fb4d7f45d1cf-5c22f7af6f1mr14644611a12.4.1725381878703; Tue, 03 Sep 2024 09:44:38 -0700 (PDT) Received: from localhost.localdomain (178-36-242-203.dynamic.inetia.pl. [178.36.242.203]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c24b5ad63dsm4177197a12.80.2024.09.03.09.44.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 09:44: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 v2 5/5] rockchip: px30: Fix hard dependency to DEBUG_UART_BOARD_INIT Date: Tue, 3 Sep 2024 18:38:58 +0200 Message-ID: <20240903163858.1155218-6-lukasz.czechowski@thaumatec.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240903163858.1155218-1-lukasz.czechowski@thaumatec.com> References: <20240903163858.1155218-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 Reviewed-by: Kever Yang --- 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