From: Jagan Teki Date: Tue, 16 Jul 2019 11:57:36 +0000 (+0530) Subject: clk: rockchip: rk3399: Set 400MHz ddr clock X-Git-Tag: v2019.10-rc1~20^2~66 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f556d75aeda352d10d8b502056d5e22c79b063f0;p=oweals%2Fu-boot.git clk: rockchip: rk3399: Set 400MHz ddr clock Add support for setting 400MHz 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 2c001661e1..d9950c159b 100644 --- a/drivers/clk/rockchip/clk_rk3399.c +++ b/drivers/clk/rockchip/clk_rk3399.c @@ -839,6 +839,10 @@ static ulong rk3399_ddr_set_clk(struct rk3399_cru *cru, dpll_cfg = (struct pll_div) {.refdiv = 2, .fbdiv = 100, .postdiv1 = 4, .postdiv2 = 1}; break; + case 400 * MHz: + dpll_cfg = (struct pll_div) + {.refdiv = 1, .fbdiv = 50, .postdiv1 = 3, .postdiv2 = 1}; + break; case 666 * MHz: dpll_cfg = (struct pll_div) {.refdiv = 2, .fbdiv = 111, .postdiv1 = 2, .postdiv2 = 1};