OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Jan 2020 11:17:24 +0000 (12:17 +0100)
commit4ef576e99d29a6c58a3cc9016f052629f040f111
tree346084498825a2e2b94ea136a4ba9ad492f0b46b
parent0b9700de712a479cf214fe503cf4d51c09b25785
cpufreq: imx6q: read OCOTP through nvmem for imx6ul/imx6ull

commit 2733fb0d0699246711cf622e0e2faf02a05b69dc upstream.

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>
Cc: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/cpufreq/imx6q-cpufreq.c