From: Jagan Teki Date: Tue, 16 Jul 2019 11:57:35 +0000 (+0530) Subject: clk: rockchip: rk3399: Set 50MHz ddr clock X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=09565686372c8113f67662bbe0376d90c5796a1b;p=u-boot.git clk: rockchip: rk3399: Set 50MHz ddr clock Add support for setting 50MHz ddr clock. Signed-off-by: Jagan Teki Signed-off-by: YouMin Chen Reviewed-by: Kever Yang --- diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index 69a887f70c..2c001661e1 100644 --- a/drivers/clk/rockchip/clk_rk3399.c +++ b/drivers/clk/rockchip/clk_rk3399.c @@ -827,6 +827,10 @@ static ulong rk3399_ddr_set_clk(struct rk3399_cru *cru, /* clk_ddrc == DPLL = 24MHz / refdiv * fbdiv / postdiv1 / postdiv2 */ switch (set_rate) { + case 50 * MHz: + dpll_cfg = (struct pll_div) + {.refdiv = 1, .fbdiv = 12, .postdiv1 = 3, .postdiv2 = 2}; + break; case 200 * MHz: dpll_cfg = (struct pll_div) {.refdiv = 1, .fbdiv = 50, .postdiv1 = 6, .postdiv2 = 1};