From mboxrd@z Thu Jan 1 00:00:00 1970 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 0C6E4C761AF for ; Tue, 4 Apr 2023 10:22:10 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 370FF85F73; Tue, 4 Apr 2023 12:20:27 +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=1680603627; bh=84d9fCVjI3APQ5oCMxa7pJEc9UnY7MeGB08pTHJmfLs=; h=From:To:Subject:In-reply-to:Date:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From; b=dFOocIBsIOspA5CXq2M9cKvE/VGVr1i/dEugk8N2EzW9AjkcYqY5JC6yoMCzhbOyk 96QwzSTXZqcKlOPlKXEdQDUsk3oBTaa7THK9NYKrtg43dD08BHwcX2eAr6ogzC5/M1 E4EPjsjqbkTZqmVr8erTT2Qnxvw/VMLtESABIb2q+YuL6XoCNJmp2AI7Sn8UKhKXxK Pxb+y+4Uw5/Cbctov3M2HKUqFAgc7v2rdeXGCsWW3V1oPomd53O98x2LukNlM1lPtq SXz7rudCI+hriAWxg/xoVW/85xFaXdbNbwotFWTTVOehLzfcerLCYnC1awuwu86zQu lLU3ofSVD9B7Q== Received: by phobos.denx.de (Postfix, from userid 109) id CA7FB85EE4; Tue, 4 Apr 2023 12:20:00 +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 A92AF85EFA for ; Tue, 4 Apr 2023 12:19:40 +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 4PrNzb2sHZz1sB77; Tue, 4 Apr 2023 12:19:39 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4PrNzb2mSmz1qqlW; Tue, 4 Apr 2023 12:19:39 +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 5d70ovGs4k6W; Tue, 4 Apr 2023 12:19:38 +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, 4 Apr 2023 12:19:38 +0200 (CEST) From: sbabic@denx.de X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 1764413 X-Patchwork-Delegate: sbabic@denx.de To: Marcel Ziswiler ,u-boot@lists.denx.de Subject: [PATCH v2 1/5] board: verdin-imx8mp: update ddrc config for different lpddr4 memories In-reply-to: <20230403120157.123621-2-marcel@ziswiler.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Message-Id: <20230404102000.CA7FB85EE4@phobos.denx.de> Date: Tue, 4 Apr 2023 12:19:42 +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.8 at phobos.denx.de X-Virus-Status: Clean > From: Emanuele Ghidoli > Add support to Verdin IMX8MP V1.1B SKU which uses > MT53E1G32D2FW-046 WT:B memory. > Compared to the 8 GB memory (MT53E2G32D4NQ-046 WT:A) used on > Verdin IMX8MP V1.0A it has 16 row addresses instead of 17. > In fact, the new memory, is a 2 GB/rank memory. The 8 GB memory is a > 4 GB/rank memory. > Manually tweaking Host Interface addresses vs LPDDR4 signals mapping it > is possible to have a single configuration working with both memories: > - Old configuration: HIF bit 30 -> rank, HIF bit 29 -> Row 16 > - New configuration: HIF bit 29 -> rank, HIF bit 30 -> Row 16 > With this change the memory space from the host processor is contiguous > for both the configurations and the correct memory size is computed > using get_ram_size() at runtime. > Support for single rank memories still works thanks to the fact > dual ranks training fails (ddr_init->ddr_cfg_phy) toward single rank > memories. > Signed-off-by: Emanuele Ghidoli > Signed-off-by: Marcel Ziswiler Applied to u-boot-imx, next, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de =====================================================================