Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 0C96CC433EF for ; Tue, 12 Apr 2022 18:51:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5F83B83EFB; Tue, 12 Apr 2022 20:45:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1649789132; bh=RUYBTsXX0E2innAio1/US9d0WIpdjEPwV6oFzSPueVw=; h=From:To:Subject:In-reply-to:Date:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From; b=EhZ0Z2YAZYGb3Onnqk9ZQ8hfG1GTOT/1LruEI7FB2XdT9V5oe/4+/neWlh+BwDJW1 e5a+HFbSH/Nx8E7TDagdFTsC1HT5FesQV1hOYyEsB2mxkNA+0jr8YcQ7nO7Gx0FOWK R1FvluQcFkPaqSIjjcEsAudmzLFREbV1DRp+l0kHrClR9deltyySCXLY9Gr9P6mXVt ysfVtvV1nEnPQNCh5i1WqdoeffzFOVBIMsKJeGAnbS7GQaYXPQ28wD+hqLFQh971zN jhrpf3Wp1Zim/IhMBRdyz2s+22bY8joZJMvzmbF/jgXfDl0fzNHCS2AtyNkDfV3w+W YLJ3zPgOn/tlQ== Received: by phobos.denx.de (Postfix, from userid 109) id A9C0483ED5; Tue, 12 Apr 2022 20:44:50 +0200 (CEST) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2AFE883ECE for ; Tue, 12 Apr 2022 20:44:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sbabic@denx.de Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4KdF5C62K1z1s7tQ; Tue, 12 Apr 2022 20:44:47 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4KdF5C5qZMz1qqkB; Tue, 12 Apr 2022 20:44:47 +0200 (CEST) X-Amavis-Alert: BAD HEADER SECTION, Missing required header field: "Date" 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 XL7bfcq8q7gs; Tue, 12 Apr 2022 20:44:47 +0200 (CEST) Received: from papero (host-88-217-136-221.customer.m-online.net [88.217.136.221]) by mail.mnet-online.de (Postfix) with ESMTP; Tue, 12 Apr 2022 20:44:47 +0200 (CEST) From: sbabic@denx.de X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1607346 X-Patchwork-Delegate: sbabic@denx.de To: Fabio Estevam ,u-boot@lists.denx.de Subject: [PATCH 2/5] imx8mm-cl-iot-gate: Retrieve the DDR type from EEPROM In-reply-to: <20220319122249.77456-2-festevam@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Message-Id: <20220412184450.A9C0483ED5@phobos.denx.de> Date: Tue, 12 Apr 2022 20:44:48 +0200 (CEST) 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.5 at phobos.denx.de X-Virus-Status: Clean > From: Fabio Estevam > Currently, the DDR type is retrieved by iteracting inside an array > of possible DDR types. > This may take saveral attempts, which slows the overall U-Boot process > and does not provide a good user experience: > U-Boot SPL 2021.07 (Feb 28 2022 - 06:39:32 +0000) > DDRINFO: Cfg attempt: [ 1/6 ] > DDRINFO(M): mr5-8 [ 0xff000010 ] > DDRINFO(T): mr5-8 [ 0x5000010 ] > resetting ... > U-Boot SPL 2021.07 (Feb 28 2022 - 06:39:32 +0000) > DDRINFO: Cfg attempt: [ 2/6 ] > DDRINFO(M): mr5-8 [ 0xff000010 ] > DDRINFO(T): mr5-8 [ 0x1061010 ] > resetting ... > U-Boot SPL 2021.07 (Feb 28 2022 - 06:39:32 +0000) > DDRINFO: Cfg attempt: [ 3/6 ] > DDRINFO(M): mr5-8 [ 0xff000010 ] > DDRINFO(T): mr5-8 [ 0xff000010 ] > Normal Boot > WDT: Not starting > Trying to boot from MMC2 > NOTICE: BL31: v2.5(release):v2.5 > NOTICE: BL31: Built : 07:12:44, Jan 24 2022 > Improve the boot time by retrieving the correct DDR information from > the EEPROM: > U-Boot SPL 2022.04-rc4-00045-g6d02bc40d58c (Mar 19 2022 - 08:22:29 -0300) > DDRINFO(D): Kingston 4096G > DDRINFO(M): mr5-8 [ 0xff000010 ] > DDRINFO(E): mr5-8 [ 0xff000010 ] > Normal Boot > WDT: Started watchdog@30280000 with servicing (60s timeout) > Trying to boot from MMC2 > NOTICE: BL31: v2.5(release):v2.5 > NOTICE: BL31: Built : 22:28:11, Mar 15 2022 > Based on the original code from Compulab's U-Boot. > Tested on a imx8mm-cl-iot-gate board populated with 4GB of RAM. > Signed-off-by: Fabio Estevam > Tested-by: Harald Seiler Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de =====================================================================