From patchwork Wed Sep 18 13:01:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Czechowski X-Patchwork-Id: 1986804 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=d8iIrFdk; 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 4X7zP223KCz1y1t for ; Wed, 18 Sep 2024 23:03:50 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AF26888C35; Wed, 18 Sep 2024 15:03:41 +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="d8iIrFdk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7C12188BEF; Wed, 18 Sep 2024 15:03:40 +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-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) (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 6C72E88C10 for ; Wed, 18 Sep 2024 15:03:38 +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-x231.google.com with SMTP id 38308e7fff4ca-2f74e613a10so76323631fa.1 for ; Wed, 18 Sep 2024 06:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1726664617; x=1727269417; 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=7a7xq2xOWb+DHAzuU9dKnLwsF6Y3IW3tCXHkhH8VZj0=; b=d8iIrFdkB6ZgtJDfLRuuET+xjklExO4jB92nEik84aXna9wkOX3L4QXkCgVQIZl5Hg 7kZXniPFw0LUtg9txkbU8ahrGoA5VGKF0G3JpNMU/aqC0Gw3KJ4OVnSbmdVHWgnaM5oq Jn5yihzEHC4wPC3fjo+ax6SL1cyqJeGTBTxoBNkxi1rKEe6LwnhwlK4TtNVp34F0/icZ qApmLTPkcXgLP0Ka14Vb++70hutoUC2lPDGIcvzuTOR6Lrm+OKJgcaHgMoSwqv6vE5o6 Ih3nrNW6Mb/2OfMYGmuqiyoTFKEmMSR6VIUGldan7nKuUCZi37+paX/6MaUqVApr7DUt Xhqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726664617; x=1727269417; 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=7a7xq2xOWb+DHAzuU9dKnLwsF6Y3IW3tCXHkhH8VZj0=; b=TQ7uL/g4eaznhgtXwaygdkiRlya1L5UMi2hQP+mQYjn32A3C7gTGHc+J0k8+2A9nfl cK/oqIgRMMmdtrdt2GeL95iP/IypHyNnmmP/gawaREyClAbinAA/qJssKMTGtdkwhE6U q4419kw/2KVyoZbC35SihaFkFfFzere9+ooNPmyoZ9B7fvbmawyRiaueXARAQG7Fh2Yf bYdSp3TGB2qSI1c4o8KbC39ZEWnJtbq5WptTNgihQ2L1B2Nvdg7Q71Fzpa8so5pEm6ok oUJ9z7ri0KDZUAmMPBs+6uPy6W0PVe3yravaILvWMGlviBQnHJVzabIkJPtkKdU160PG Sv0Q== X-Gm-Message-State: AOJu0YybgrpxL54mu1ho8NAWXbHRlg/MKxo/9t5DkV98zJmOlM9UGJU6 4t4MSxEHEXVxZuMDzOZvnHcTNAOeG7fpGIPcBVsbO3zQDlPantOMLdoRHbBIlVVldsMUKrvCIja 0 X-Google-Smtp-Source: AGHT+IFZRaJhXee9IGVIcf9RC3QIIp9w/rce5BMY3H1XqFTAC48oW+bogdMP+kF3C7DMzoZgPyMDbw== X-Received: by 2002:a05:651c:19a5:b0:2ee:52f4:266 with SMTP id 38308e7fff4ca-2f7918e2615mr133076081fa.3.1726664617167; Wed, 18 Sep 2024 06:03:37 -0700 (PDT) Received: from localhost.localdomain (83-238-227-197.dynamic.inetia.pl. [83.238.227.197]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb495a8sm4885576a12.11.2024.09.18.06.03.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 06:03:36 -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 v3 1/4] debug_uart: Replace debug functions with dummies if CONFIG_DEBUG_UART is not set Date: Wed, 18 Sep 2024 15:01:52 +0200 Message-ID: <20240918130155.299353-2-lukasz.czechowski@thaumatec.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240918130155.299353-1-lukasz.czechowski@thaumatec.com> References: <20240918130155.299353-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 Wed Sep 18 13:01:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Czechowski X-Patchwork-Id: 1986805 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=NqJz65CD; 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 4X7zP82xShz1y1t for ; Wed, 18 Sep 2024 23:03:56 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0B6AF88C63; Wed, 18 Sep 2024 15:03:43 +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="NqJz65CD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D1D9888C4A; Wed, 18 Sep 2024 15:03: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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) (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 E36C888BC2 for ; Wed, 18 Sep 2024 15:03: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-x633.google.com with SMTP id a640c23a62f3a-a8a837cec81so393861866b.2 for ; Wed, 18 Sep 2024 06:03:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1726664619; x=1727269419; 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=17S3cLgSSyfrh4jrDKmovvUFpvIIjoNHgkdhg5KiYug=; b=NqJz65CDxyiwdcpZ7IX6OmvkOZHzTatcKRuO64gJO8nKaZRTv8HThfoI7DVcLbF9Gs LZaOQnytA7cD0yz2YAYWDUHnkbgSzrH2O8woi5eH8TJPzZ0KkihlAD87UifxEXac/K/m Sov2Zbpc9bIlZziVIEh6lO2C2SrRrsWg5kjHhxMnxxFw1UynCVi9WaWfyflDBNpOtiYo FwQ2OGdEz7C9LyNCDf9RSVwZeu0JqFl36zOHtKaEP3i2AiSNQnyP6V/Ho0cXt0sgaPXx tgMw2KKgCji5P1G4QEV5QsaZHeYcIHLWz1vQsexwWidjGuQml/3kh48fJgHVl0LM9mO7 mt+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726664619; x=1727269419; 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=17S3cLgSSyfrh4jrDKmovvUFpvIIjoNHgkdhg5KiYug=; b=CK7/OMyj0BoZKfx2txe8GtoiFv995avOdZaPMhWwWWzy30Bug+cwu1eGk3Gricr3Yd /SrXdzGfy8HBk9scMLPb2/qBGP/Sh4y21YH4Xn2wqeqcTiQXbqDD2IAGaJ5S2tEOqazI 8/6iE/Ld+R/Ix5G0eHPedv/Y7zmD+UDHB19VBC6Q22CPErFo8st2Bd8qSj48cXDUGVKN SDszVzB/xM2FXIMFixmzqcUJKLT+zEUnuale8bAhMihAQtsj7yrS4/o4IWqutsUXdUVB PRsGNL5x1VpkkRlTJzskC0M2MhjJN5VmaX+T6VZbEyhuSi+7h9sdzGYj8pX+VYk1jhlw M6fw== X-Gm-Message-State: AOJu0Yw/ihMFmvSuryB0G6x6FfKsdG01ckSNwcsWvMf85emadjFvpVhB te+DJJ1TZ6+DtFV9S/jO1NgCgG/kUZtXN3HSP7Lkf8nGEGhXexdhOE5LPnCawQRgax8JW2LruzO n X-Google-Smtp-Source: AGHT+IEYk0lsiNQYa9zUfEu1QtK3un2Bje/dA9eJyVpo3uvlsPJOe/7e/gFgOIIy64FL44fHjuUc8Q== X-Received: by 2002:a05:6402:51c6:b0:5c2:5df4:5a4c with SMTP id 4fb4d7f45d1cf-5c41e2af39dmr26153902a12.33.1726664618916; Wed, 18 Sep 2024 06:03:38 -0700 (PDT) Received: from localhost.localdomain (83-238-227-197.dynamic.inetia.pl. [83.238.227.197]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb495a8sm4885576a12.11.2024.09.18.06.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 06:03: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 v3 2/4] ram: rockchip: Fix dependency of RAM_ROCKCHIP_DEBUG Date: Wed, 18 Sep 2024 15:01:53 +0200 Message-ID: <20240918130155.299353-3-lukasz.czechowski@thaumatec.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240918130155.299353-1-lukasz.czechowski@thaumatec.com> References: <20240918130155.299353-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 Wed Sep 18 13:01:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Czechowski X-Patchwork-Id: 1986806 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=A57vUSTV; 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 4X7zPM1SfGz1y1t for ; Wed, 18 Sep 2024 23:04:07 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 61FA088C10; Wed, 18 Sep 2024 15:03:45 +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="A57vUSTV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1440188C6F; Wed, 18 Sep 2024 15:03:43 +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-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (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 2E8A388BEF for ; Wed, 18 Sep 2024 15:03:41 +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-x635.google.com with SMTP id a640c23a62f3a-a8a7903cb7dso433191966b.3 for ; Wed, 18 Sep 2024 06:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1726664620; x=1727269420; 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=hQJL+4s3ShF0e6LkxYyPSXum1bmqe8k1LZ9ow4crmr0=; b=A57vUSTVevwdoI6kjM6/ORWxJg+Qbo94kUKGdBwtI2BRInT2i1ZVI6CN41BwDNBXkr 5srf6NUIHjf6Qdvi0IiiHeh5NLIp64ldp5yC2LusEYJ7D/iADvr+8HZa3QBr3hzlebX9 vN5qbNAOxpv/woVlJmXQxm8DywK26MYUc4p/DpTMGsSfJXHIGwwExvpXEaW2+8i81+Sw 0GqC0gZ+MU4pocE0/zZ9OYgPw6oQhWAoZPwibtHlyBdYVaZgmX8xwqU2rbqnyaiit7Q4 AHR1WyiyObyaVMG32aoiv+Up9IYcppGOahzUXsd69QIkWq2Eg2/uFhxqNLNT7E5AMu3v ZqvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726664620; x=1727269420; 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=hQJL+4s3ShF0e6LkxYyPSXum1bmqe8k1LZ9ow4crmr0=; b=I/kZt2ttcA8TLzt81k4WQGr7UaaWlxHacmBafAuktaWW+/OCu4/1oRI8t60aEO4qbX eTc5Qur6q0P4Y76fRtjMukd4b6nRMuej4t4EYAfJrZ8ESbuabnsJZr3kgWci8s2GsXQt DJDsULiT1/C8qM0j4ryzk7GEx/l5f2LMXCbxIs5DgOgR3yF7xlAexhFaMTO0XE/KnFy3 1HzzWtlUZ/oNWZMuxewDN85CsgxUXbTy1OCcQYcI5Kf7y6hpfUa5ZJjORMuVnZj5RdQ9 KJa0ycL3S9KyCa3xLLiRcddC31TrsGCekcmXITQl1E/aOxnUpBlp1FihjUJOJIFJNgg/ ni0g== X-Gm-Message-State: AOJu0Yy0Bah7O2qjhchgBhdfuYkh7N4ZNIyqSgB520zaKszfrHVorJGJ 0EfzwuP4T3ruv8fG1h4OSPnrpqkO2uwBvlNL+OLF+Ki1UuU9T6f/iOv5ih8PtZJrsCYyMvy0Ciy 2 X-Google-Smtp-Source: AGHT+IGCJfwIlrooTOlzjHxsaUlvq9Qvm59/3jYz4DgrcqZmLvxHuu+V0NCEmk0vZTb0J/J7rkNd9g== X-Received: by 2002:a05:6402:51d4:b0:5c3:c296:1bc9 with SMTP id 4fb4d7f45d1cf-5c41e2aede9mr22509187a12.29.1726664620343; Wed, 18 Sep 2024 06:03:40 -0700 (PDT) Received: from localhost.localdomain (83-238-227-197.dynamic.inetia.pl. [83.238.227.197]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb495a8sm4885576a12.11.2024.09.18.06.03.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 06:03:40 -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 v3 3/4] rockchip: px30: Weaken dependency TPL/SPL serial Date: Wed, 18 Sep 2024 15:01:54 +0200 Message-ID: <20240918130155.299353-4-lukasz.czechowski@thaumatec.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240918130155.299353-1-lukasz.czechowski@thaumatec.com> References: <20240918130155.299353-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 Wed Sep 18 13:01: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: 1986807 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=Vws9kuKy; 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 4X7zPZ4KBjz1y1t for ; Wed, 18 Sep 2024 23:04:18 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B0C7688CA2; Wed, 18 Sep 2024 15:03:45 +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="Vws9kuKy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 71D7088C10; Wed, 18 Sep 2024 15:03:44 +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-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (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 8A1EA88BCF for ; Wed, 18 Sep 2024 15:03: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=lukasz.czechowski@thaumatec.com Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5c4146c7d5dso7570630a12.3 for ; Wed, 18 Sep 2024 06:03:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1726664622; x=1727269422; 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=DZ0LcukNClzxY082kwgtPA4hPtir00Kxl1vAfHhyCmA=; b=Vws9kuKyKp4HCK5IQqvJfQdLwlrcrmBwvEm1s1BrOQ9Y8UkKve02fgCCf+Tnu0LzTP b2GXvAFZsYBvCUxmduGf0db9Ze4kdayBxLUSwaVJS6PYNg15kWOHY9n1M6wAIdSi3Hjf y+IKUvUcUf/eW5i8Hcn5hYyZ2FyO8rnsGA1JSy1pkzLjhOot2lJOtMW51Zm+3x9uQvK9 k+/J1CMEG1ndPxTGdvOpgjTaEmyzCflYAkzGH4qi+EANxixtp1YADI6CB+sVfU1KMfBJ vijBoxCFKYdr8P6UbMyvpgS0HfdmbT4EZlf89eFhFFxqGLX6lLB4LtVdHGGNrck3OxRq nwSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726664622; x=1727269422; 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=DZ0LcukNClzxY082kwgtPA4hPtir00Kxl1vAfHhyCmA=; b=W2QvJFtECiFoxCrl1XsA38EySew1yZqM4Bm+7VYC6oF2ESB2dJqyxMpWjTk39btmUC MnsyNeztkiZ3W8rTzo5YyyVV/iBNwpQcgBCgqt6WaCk1scRWGRh0SJbKfbjd2zHWFBFP oq+o2gEkwzfSMJt8R+KtVJ3wyPFmuvZUO4OMxWcfBLbawF/E7G5hKzO5Bh6SffLl9rNl GO2KVXB5CEndZnt1cGmwBdJdU8Di5pCKX1j2PU4BG94fvtlBrAi8UjplwhEXDPgGoVO2 LEPQGpuNdidZQwFcmKnCC4s2DOk2ItT6JzMrDeIEVw/bVtRC6Ms5CbZlLZuGWtTkWEiY H/Mw== X-Gm-Message-State: AOJu0Yysap6ZkIkUl9upV4+WvXGXQTxF1xcRE6OsFDpxPxVz9VVUF8Q+ YTl7BpjqUR0mtFqQRd+Xb4jLXxpBhqZ+MzWucZ71T1MBQOym7/jyXZWziKJa62jIU/gMIPTeuBm 2 X-Google-Smtp-Source: AGHT+IF1VYV4iw695jNV5Gyq1HbejG/SMnfRErLRzcHjLbktfwRuycOK6LRZCyJMqrVMh8WX8m+nBQ== X-Received: by 2002:a05:6402:34ca:b0:5c4:2be3:dc74 with SMTP id 4fb4d7f45d1cf-5c42be3dffcmr10368051a12.36.1726664621643; Wed, 18 Sep 2024 06:03:41 -0700 (PDT) Received: from localhost.localdomain (83-238-227-197.dynamic.inetia.pl. [83.238.227.197]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb495a8sm4885576a12.11.2024.09.18.06.03.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 06:03:41 -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 v3 4/4] rockchip: px30: Fix hard dependency to DEBUG_UART_BOARD_INIT Date: Wed, 18 Sep 2024 15:01:55 +0200 Message-ID: <20240918130155.299353-5-lukasz.czechowski@thaumatec.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240918130155.299353-1-lukasz.czechowski@thaumatec.com> References: <20240918130155.299353-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