[U-Boot] [PATCH 06/14] clk: rockchip: fix the gmac selection of pll source for rk322x
David Wu
david.wu at rock-chips.com
Sat Feb 3 12:19:31 UTC 2018
There is a wrong selection for gmac pll source, fix it.
Signed-off-by: David Wu <david.wu at rock-chips.com>
---
drivers/clk/rockchip/clk_rk322x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/rockchip/clk_rk322x.c b/drivers/clk/rockchip/clk_rk322x.c
index 4bbcaf8..72c8757 100644
--- a/drivers/clk/rockchip/clk_rk322x.c
+++ b/drivers/clk/rockchip/clk_rk322x.c
@@ -255,7 +255,7 @@ static ulong rk322x_mac_set_clk(struct rk322x_cru *cru, uint freq)
ulong pll_rate;
u8 div;
- if ((con >> MAC_PLL_SEL_SHIFT) & MAC_PLL_SEL_MASK)
+ if (con & MAC_PLL_SEL_MASK)
pll_rate = GPLL_HZ;
else
/* CPLL is not set */
--
2.7.4
More information about the U-Boot
mailing list