Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CACE5C4338F for ; Sat, 21 Aug 2021 17:51:36 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2979D611CB for ; Sat, 21 Aug 2021 17:51:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2979D611CB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 243CF82E7D; Sat, 21 Aug 2021 19:50:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id F08BE82D5B; Sat, 21 Aug 2021 19:50:35 +0200 (CEST) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (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 1718482B77 for ; Sat, 21 Aug 2021 19:50:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qk1-f180.google.com with SMTP id y144so14436222qkb.6 for ; Sat, 21 Aug 2021 10:50:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=1FkluEMmJ2CsVu2r4A6iyVFpH0uDV+9sroW5ZE6srQg=; b=fMDqXybHYsqav94BXxl6Utw706VF7G61vZFa++gCIgYlvoFBjJIk73CkJqGqVZKA7p lwgbAqSvTs727OX6zqC9pl0ANxY/qWefe+nxbI1Au+Mflf3HzsQFHvPIDNUM1gf+Ji/z UAZJwGW5rVUXW1G0ZXbwaACkv7YdiwFF/6RZ9D6duuyFjkLt9jPLF8rcPMhO+XSPwg6u VtDmohhQcufKk4Wp90Xs/+w4i8ApgOdNw3jb8W+3NbMNaEUQTbMGjQ29kW+IlnR97CMN lC6xPBuxEnbIsGH3t6zYV6qfZA8TwroAYkG5Os/IecJkBsOh8Ln8yd1kN8pppbmv0hkY /SAA== X-Gm-Message-State: AOAM533jFS4EBFzupJZbHLKYgPHiDyxmzd2neFt2J7bmqBFJO2npSLD5 RetHwQR/mlXOEWGjjN95w2aSb3A90DkO X-Google-Smtp-Source: ABdhPJwKvrjN6RU2nB4kLMwQz3dOPIoQjxWEQ3UEqz0lLteEez6Dg1J4s1T61K2Fzc1uRdJ9Blrl+Q== X-Received: by 2002:a37:a45:: with SMTP id 66mr14144245qkk.137.1629568228461; Sat, 21 Aug 2021 10:50:28 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-2c26-3387-ab71-667f.res6.spectrum.com. [2603:6081:7b01:cbda:2c26:3387:ab71:667f]) by smtp.gmail.com with ESMTPSA id j184sm5298510qkd.74.2021.08.21.10.50.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Aug 2021 10:50:27 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 5/9] mvebe: Migrate CONFIG_DDR_LOG_LEVEL to Kconfig Date: Sat, 21 Aug 2021 13:50:15 -0400 Message-Id: <20210821175019.24180-5-trini@konsulko.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210821175019.24180-1-trini@konsulko.com> References: <20210821175019.24180-1-trini@konsulko.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Move this specific option to Kconfig. Signed-off-by: Tom Rini --- arch/arm/mach-mvebu/Kconfig | 14 ++++++++++++++ drivers/ddr/marvell/axp/ddr3_axp_config.h | 4 ---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig index 1daa64763b03..944bbee7634d 100644 --- a/arch/arm/mach-mvebu/Kconfig +++ b/arch/arm/mach-mvebu/Kconfig @@ -197,6 +197,20 @@ config DDR_32BIT endchoice +config DDR_LOG_LEVEL + int "DDR training code log level" + depends on ARMADA_XP + default 0 + range 0 3 + help + Amount of information provided on error while running the DDR + training code. At level 0, provides an error code in a case of + failure, RL, WL errors and other algorithm failure. At level 1, + provides the D-Unit setup (SPD/Static configuration). At level 2, + provides the windows margin as a results of DQS centeralization. + At level 3, rovides the windows margin of each DQ as a results of + DQS centeralization. + config SYS_BOARD default "clearfog" if TARGET_CLEARFOG default "helios4" if TARGET_HELIOS4 diff --git a/drivers/ddr/marvell/axp/ddr3_axp_config.h b/drivers/ddr/marvell/axp/ddr3_axp_config.h index 10d064d0a308..437a02efbac9 100644 --- a/drivers/ddr/marvell/axp/ddr3_axp_config.h +++ b/drivers/ddr/marvell/axp/ddr3_axp_config.h @@ -16,11 +16,7 @@ * Level 3: Provides the windows margin of each DQ as a results of DQS * centeralization */ -#ifdef CONFIG_DDR_LOG_LEVEL #define DDR3_LOG_LEVEL CONFIG_DDR_LOG_LEVEL -#else -#define DDR3_LOG_LEVEL 0 -#endif #define DDR3_PBS 1 -- 2.17.1