]> git.baikalelectronics.ru Git - kernel.git/commit
clk: imx: Mark dram pll on 8mm and 8mn with CLK_GET_RATE_NOCACHE
authorLeonard Crestez <leonard.crestez@nxp.com>
Fri, 22 Nov 2019 21:45:01 +0000 (23:45 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 9 Dec 2019 01:15:26 +0000 (09:15 +0800)
commit89c860b665884b6ea624e787cffba52d51f5838f
tree7631e7979f5942135e50dec9fc459c0897285011
parent914fe033c03d959c10c1969b66b75243f34eec2f
clk: imx: Mark dram pll on 8mm and 8mn with CLK_GET_RATE_NOCACHE

DRAM frequency switches are executed in firmware and can change the
configuration of the DRAM PLL outside linux. Mark these CLKs with
CLK_GET_RATE_NOCACHE so we always read back the PLL config registers and
recalculate rates.

In current DRAM frequency tables on 8mm/8mn only the maximum frequency
uses the PLL so it's always configured in the same way. However reading
back the PLL configuration is the correct behavior and allows additional
setpoints in the future.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-imx8mm.c
drivers/clk/imx/clk-imx8mn.c
drivers/clk/imx/clk-pll14xx.c
drivers/clk/imx/clk.h