clk: imx8m: Set CLK_GET_RATE_NOCACHE on dram clocks
authorLeonard Crestez <leonard.crestez@nxp.com>
Fri, 22 Nov 2019 21:45:00 +0000 (23:45 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 9 Dec 2019 01:15:12 +0000 (09:15 +0800)
commitd9ea9ca2b420123557eca0490295cb4f48615ee2
treef68d5ea1137850e8ea94de0d85cae97da98ada43
parent2871736869f031a02deb67ae24794e149ee16a4a
clk: imx8m: Set CLK_GET_RATE_NOCACHE on dram clocks

These clocks are only modified as part of DRAM frequency switches during
which DRAM itself is briefly inaccessible. The switch is performed with
a SMC call to by TF-A which runs from a SRAM area; upon returning to
linux several clocks bits are modified and we need to update them.

For rate bits an easy solution is to just mark with
CLK_GET_RATE_NOCACHE so that new rates are always read back from
registers.

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-imx8mq.c