]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: ti: Add cpufreq driver to determine available OPPs at runtime
authorDave Gerlach <d-gerlach@ti.com>
Fri, 3 Feb 2017 17:29:28 +0000 (11:29 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 9 Feb 2017 21:57:48 +0000 (22:57 +0100)
commit6d339d54836441e449c5199ef2059f6a7c0c3315
tree9622a5f07c28893490afe34da58287f90d88f94f
parentcdc153ab14cfa4e49eaf30dcb579394882f01675
cpufreq: ti: Add cpufreq driver to determine available OPPs at runtime

Some TI SoCs, like those in the AM335x, AM437x, DRA7x, and AM57x families,
have different OPPs available for the MPU depending on which specific
variant of the SoC is in use. This can be determined through use of the
revision and an eFuse register present in the silicon. Introduce a
ti-cpufreq driver that can read the aformentioned values and provide
them as version matching data to the opp framework. Through this the
opp-supported-hw dt binding that is part of the operating-points-v2
table can be used to indicate availability of OPPs for each device.

This driver also creates the "cpufreq-dt" platform_device after passing
the version matching data to the OPP framework so that the cpufreq-dt
handles the actual cpufreq implementation. Even without the necessary
data to pass the version matching data the driver will still create this
device to maintain backwards compatibility with operating-points v1
tables.

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/Kconfig.arm
drivers/cpufreq/Makefile
drivers/cpufreq/ti-cpufreq.c [new file with mode: 0644]