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 B2B7BC32773 for ; Fri, 19 Aug 2022 11:03:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7F4B4845B5; Fri, 19 Aug 2022 13:02:58 +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=1660906979; bh=4R21eS4++Sr+zF+5FfWW82zphrWuhPAs4hVWjEx801M=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=LZQhQ3A23PFwQUztzspylSAi4xD1YSCt40h5eHt44vuN9IuIfdV1VvqV0hlAAPrFN ECBSgT1GuTInLwZicfiecOb5qjw62E5o+ZsXRrNjjh5cPknfvMUVYRK3ysOOUU8rnB NNJgzcm27WEDmTvojYS4YBG1ul6IxwXMOpborbtGjI+KybobdCHHg7QL2s7+TAbmA+ 81jRj/5id/5fpDzI+Ulbv9qENJ/wF6xgD4iPo19dW1ZStMBhzzsk1yYKqb8KZ38dwM j/6qWVXBn0DsMatqRLMBidly6R0HeeSoq57EBypQc1QtGDuSfwWwUY6S+A8oDJNuxT efjc2SfmgmjMg== Received: from tr.lan (ip-86-49-12-201.bb.vodafone.cz [86.49.12.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 296B584569; Fri, 19 Aug 2022 13:02:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1660906977; bh=4R21eS4++Sr+zF+5FfWW82zphrWuhPAs4hVWjEx801M=; h=From:To:Cc:Subject:Date:From; b=ybUw9IuuV6qDjBgljvFqZ+MdBkLD2cKAgu7Bt776siri1e17TkEHx1w6pHc/NmhEx h+cWs/lciYf54ls9YsgGeatqzIWXDUAxtEyb74+ZgniDHD6xY8FbY+AOn4vbQtAefP uXX75b4/2sKeAYdp1u9tf5lCjIH5KC6CFGodzG61BNk9kQR7THuNkupm1H5RSVThej 9t++xWw5hRmKJrhdfq+fxpc10nio/HSN5QBTyCi6Z41MrU+mbWfIEjKIniOdhqfl09 IoW2vQB2ERboQud3cKDfb9eZ/Ley1Wuv99JJSathqjzqUkVtGKp1SKZSsxmj8DGOBN lPbJKBwCZ0ghQ== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Fabio Estevam , Peng Fan , Stefano Babic , Ye Li , uboot-imx Subject: [PATCH] ARM: imx: Update DDR frequency on i.MX8M Plus DHCOM Date: Fri, 19 Aug 2022 13:02:53 +0200 Message-Id: <20220819110253.221887-1-marex@denx.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean Commit 99c7cc58e12 ("ddr: imx: Add i.MX9 DDR controller driver") contains an inobvious side-effect which renders all systems using DRAM controller at 3732 MT/s unbootable. The change is located in ddrphy_init_set_dfi_clk(), where the switch case statement entry 3732 changed to entry 3733, so any board with DDR calibration data for 3732 MT/s operations needs to be updated to 3733 MT/s to match the change. Since there is currently only one such board, update the board instead of handling both 3732 and 3733 options in the driver. It is likely the NXP MX8MP RPA update will follow and use the later value too. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- board/dhelectronics/dh_imx8mp/lpddr4_timing_4G_32.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/board/dhelectronics/dh_imx8mp/lpddr4_timing_4G_32.c b/board/dhelectronics/dh_imx8mp/lpddr4_timing_4G_32.c index 2eda4a59569..a4c1b121c27 100644 --- a/board/dhelectronics/dh_imx8mp/lpddr4_timing_4G_32.c +++ b/board/dhelectronics/dh_imx8mp/lpddr4_timing_4G_32.c @@ -1799,8 +1799,8 @@ static struct dram_cfg_param ddr_phy_pie[] = { static struct dram_fsp_msg ddr_dram_fsp_msg[] = { { - /* P0 3732mts 1D */ - .drate = 3732, + /* P0 3733mts 1D */ + .drate = 3733, .fw_type = FW_1D_IMAGE, .fsp_cfg = ddr_fsp0_cfg, .fsp_cfg_num = ARRAY_SIZE(ddr_fsp0_cfg), @@ -1820,8 +1820,8 @@ static struct dram_fsp_msg ddr_dram_fsp_msg[] = { .fsp_cfg_num = ARRAY_SIZE(ddr_fsp2_cfg), }, { - /* P0 3732mts 2D */ - .drate = 3732, + /* P0 3733mts 2D */ + .drate = 3733, .fw_type = FW_2D_IMAGE, .fsp_cfg = ddr_fsp0_2d_cfg, .fsp_cfg_num = ARRAY_SIZE(ddr_fsp0_2d_cfg), @@ -1840,5 +1840,5 @@ struct dram_timing_info dh_imx8mp_dhcom_dram_timing_32g_x32 = { .ddrphy_trained_csr_num = ARRAY_SIZE(ddr_ddrphy_trained_csr), .ddrphy_pie = ddr_phy_pie, .ddrphy_pie_num = ARRAY_SIZE(ddr_phy_pie), - .fsp_table = { 3732, 400, 100, }, + .fsp_table = { 3733, 400, 100, }, }; -- 2.35.1