cpufreq: imx6q: read OCOTP through nvmem for imx6ul/imx6ull
authorAnson Huang <Anson.Huang@nxp.com>
Mon, 8 Oct 2018 06:07:34 +0000 (14:07 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 18 Apr 2019 00:00:38 +0000 (03:00 +0300)
commitd1c3d8009a9268df995227e8bdad60dedec7bf63
tree171cd0d010bd4ea0267c601957ca0e831f71563f
parente83a70a438095ac562c0f93748014b053b037e6a
cpufreq: imx6q: read OCOTP through nvmem for imx6ul/imx6ull

On i.MX6UL/i.MX6ULL, accessing OCOTP directly is wrong because
the ocotp clock needs to be enabled first. Add support for reading
OCOTP through the nvmem API, and keep the old method there to
support old dtb.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
(cherry picked from commit ef800b8b7eed1363b662477b134b489f44410530)
drivers/cpufreq/imx6q-cpufreq.c