cpufreq: imx6: use regmap to read ocotp register
authortianyu2 <tianyu2@kernelsoft.com>
Tue, 9 Jan 2024 11:45:21 +0000 (19:45 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 23 Jan 2024 06:06:21 +0000 (11:36 +0530)
commitf21401ca96e63cf5dbbc5e5a71def953c5cce8d9
treeb21cfa7d31fdf0b1d15abf9f6d110ece2847fc80
parent6613476e225e090cc9aad49be7fa504e290dd33d
cpufreq: imx6: use regmap to read ocotp register

Reading the ocotp register directly is unsafe and will cause the system
to hang if its clock is not turned on in CCM. The regmap interface has
clk enabled, which can solve this problem.

Signed-off-by: tianyu2 <tianyu2@kernelsoft.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/imx6q-cpufreq.c