]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Oct 2018 06:58:39 +0000 (08:58 +0200)
commit1c1cbd1b309e42e1338f91fc680a1593edf6b281
treee87fe79080112acd6f785a8b9b3f635f700f3465
parent185832beb15ec1c008107ecec04a01af5423d398
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>
drivers/cpufreq/imx6q-cpufreq.c