]> asedeno.scripts.mit.edu Git - linux.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)
commit2733fb0d0699246711cf622e0e2faf02a05b69dc
treee87fe79080112acd6f785a8b9b3f635f700f3465
parent9d21d33cab2dd5aadd23ad51baf1dc49d544fcc0
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