From patchwork Tue Nov 26 08:39:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 1200847 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 47MctN4WMtz9sP3 for ; Tue, 26 Nov 2019 19:45:32 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 468E2C21FE3; Tue, 26 Nov 2019 08:42:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id D3AABC21F9E; Tue, 26 Nov 2019 08:42:43 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 57DF4C21F8F; Tue, 26 Nov 2019 08:39:23 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by lists.denx.de (Postfix) with ESMTPS id B315AC21FBD for ; Tue, 26 Nov 2019 08:39:20 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 47MclD41kyz1qqkv; Tue, 26 Nov 2019 09:39:20 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 47MclD3d70z1qt2q; Tue, 26 Nov 2019 09:39:20 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id pYeA5FOqon8g; Tue, 26 Nov 2019 09:39:19 +0100 (CET) X-Auth-Info: kQmZklDgYOmA9Eq7Ia4whrbd4yMx7av13UpFYj4FS1E= Received: from chi.lan (unknown [62.91.23.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 26 Nov 2019 09:39:19 +0100 (CET) From: Marek Vasut To: u-boot@lists.denx.de Date: Tue, 26 Nov 2019 09:39:09 +0100 Message-Id: <20191126083913.5495-2-marex@denx.de> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191126083913.5495-1-marex@denx.de> References: <20191126083913.5495-1-marex@denx.de> MIME-Version: 1.0 Cc: Marek Vasut , Fabio Estevam , Silvio Fricke Subject: [U-Boot] [PATCH 2/6] ARM: imx: vining2000: Enable DDR DRAM calibration X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Enable DRAM calibration in SPL to improve behavior of the board in edge conditions of the thermal envelope of the board and make it even more stable. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Silvio Fricke Cc: Stefano Babic --- board/softing/vining_2000/vining_2000.c | 5 +++++ configs/vining_2000_defconfig | 1 + 2 files changed, 6 insertions(+) diff --git a/board/softing/vining_2000/vining_2000.c b/board/softing/vining_2000/vining_2000.c index 086de1eaf5..a745119577 100644 --- a/board/softing/vining_2000/vining_2000.c +++ b/board/softing/vining_2000/vining_2000.c @@ -586,6 +586,11 @@ static void vining2000_spl_dram_init(void) mx6sx_dram_iocfg(mem_ddr.width, &mx6_ddr_ioregs, &mx6_grp_ioregs); mx6_dram_cfg(&sysinfo, &mx6_mmcd_calib, &mem_ddr); + + /* Perform DDR DRAM calibration */ + udelay(100); + mmdc_do_write_level_calibration(&sysinfo); + mmdc_do_dqs_calibration(&sysinfo); } void board_init_f(ulong dummy) diff --git a/configs/vining_2000_defconfig b/configs/vining_2000_defconfig index 4f9f538189..512c15baf8 100644 --- a/configs/vining_2000_defconfig +++ b/configs/vining_2000_defconfig @@ -5,6 +5,7 @@ CONFIG_SPL_GPIO_SUPPORT=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_SYS_MALLOC_F_LEN=0x4000 +CONFIG_MX6_DDRCAL=y CONFIG_TARGET_SOFTING_VINING_2000=y CONFIG_SPL_MMC_SUPPORT=y CONFIG_SPL_SERIAL_SUPPORT=y