]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit420ab9cc5795f5fb914f6a9b041277460fd1182f
tree166ff30e196224f75efdb60397e0bc018256a9e8
parent7a9bf932d782e0dacfe7770421520d2188e71e1f
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