OSDN Git Service

PM / OPP: Add ti-opp-supply driver
authorDave Gerlach <d-gerlach@ti.com>
Fri, 15 Dec 2017 04:25:28 +0000 (22:25 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 17 Dec 2017 18:17:44 +0000 (19:17 +0100)
commit9a835fa6e47f27b1ae71390b6f12efce7335aaac
treec5dd78bb910d24826a8e00a22ede865598a8ae34
parent212b7287ae6098337fffa9c0cd7e139dceb98125
PM / OPP: Add ti-opp-supply driver

Introduce a ti-opp-supply driver that will use new multiple regulator
support that is part of the OPP core This is needed on TI platforms like
DRA7/AM57 in order to control both CPU regulator and Adaptive Body Bias
(ABB) regulator. These regulators must be scaled in sequence during an
OPP transition depending on whether or not the frequency is being scaled
up or down.

This driver also implements AVS Class0 for these parts by looking up the
required values from registers in the SoC and programming adjusted
optimal voltage values for each OPP.

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