cpufreq: imx6q: read OCOTP through nvmem for imx6q
authorPeng Fan <peng.fan@nxp.com>
Tue, 3 Mar 2020 02:14:50 +0000 (10:14 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 3 Mar 2020 11:16:36 +0000 (16:46 +0530)
commit4bd8459b6c3f59eaa93d5e942b58346f1b8c98da
tree166ff30e196224f75efdb60397e0bc018256a9e8
parent3646f50a3838c5949a89ecbdb868497cdc05b8fd
cpufreq: imx6q: read OCOTP through nvmem for imx6q

Directly accessing OCOTP registers should be avoided, because
it could not handle OCOTP clks and could not handle defer
proper. With nvmem API, it is safe to access OCOTP registers.

To make sure old dtb could work, the original code still kept.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/imx6q-cpufreq.c