]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx9: Add 233Mhz DDR PLL frequency
authorYe Li <ye.li@nxp.com>
Thu, 19 Sep 2024 04:01:29 +0000 (12:01 +0800)
committerFabio Estevam <festevam@gmail.com>
Thu, 19 Sep 2024 03:12:41 +0000 (00:12 -0300)
To support 1.866GTS LPDDR4x timing script, need to add 233Mhz freq
to DDR PLL for second mission point at 933MTS. Otherwise DDR training
will fail.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx9/clock.c
drivers/ddr/imx/phy/ddrphy_utils.c

index 76d19f1cba35c5b7e686dc44ca6b41c81129ec07..12685f970dea384b9e807ca51880c595150a900c 100644 (file)
@@ -41,6 +41,7 @@ static struct imx_fracpll_rate_table imx9_fracpll_tbl[] = {
        FRAC_PLL_RATE(466000000U, 1, 155, 8, 1, 3), /* 466Mhz */
        FRAC_PLL_RATE(400000000U, 1, 200, 12, 0, 1), /* 400Mhz */
        FRAC_PLL_RATE(300000000U, 1, 150, 12, 0, 1),
+       FRAC_PLL_RATE(233000000U, 1, 174, 18, 3, 4), /* 233Mhz */
 };
 
 /* return in khz */
index cf5bdad7abe7be4187be57816b2da9b6b349f0a8..14278f5ad8fce74156c03161e139975f9aa749d1 100644 (file)
@@ -148,6 +148,10 @@ void ddrphy_init_set_dfi_clk(unsigned int drate)
                dram_pll_init(MHZ(266));
                dram_disable_bypass();
                break;
+       case 933:
+               dram_pll_init(MHZ(233));
+               dram_disable_bypass();
+               break;
        case 667:
                dram_pll_init(MHZ(167));
                dram_disable_bypass();