Commit Graph

6 Commits

Author SHA1 Message Date
Ashay Jaiswal 7588a4484c regulator: rpm-smd-regulator: add support for level based voting
In the corner based voting scheme the major corners (SVS, NOM, TURBO)
are sequential and there is no room for adding any intermediate
corners in-between these major corners.

Add support for a level based voting mechanism where all the levels
are sparsely distributed between [1 - 65535] leaving enough room
to add intermediate levels as per system requirements.

Change-Id: I4ab78614d90edf020b90de0dad88599859c4f21c
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2015-03-26 12:51:56 +05:30
David Collins 051d87ae7c regulator: rpm-smd-regulator: add support for enable via pin control
Add support for sending dynamic requests for the enable pin
control parameter 'pcen' via regulator_enable() and
regulator_disable() calls.  This is managed via a new device tree
property which specifies the 'pcen' value to send for both the
disabled and enabled logical states.

Change-Id: I80744f112298f6de3761ac1868a0589686f633a2
Signed-off-by: David Collins <collinsd@codeaurora.org>
2014-08-20 17:17:10 -07:00
David Collins f59e745425 regulator: rpm-smd-regulator: add support to send default requests
Add support for a boolean device tree property which can be
specified in order to cause default initial parameter values to
be sent to the RPM before any consumers have made their own
requests.  This feature can be used in situations where it is
not desirable to enable a RPM controlled regulator but where some
other SMD parameter must be sent.

Change-Id: Ic9ed813064b0d3e3884fc328af7cb6b8562b9dfe
Signed-off-by: David Collins <collinsd@codeaurora.org>
2014-08-06 11:59:47 -07:00
Ashay Jaiswal de54c8d801 regulator: rpm-smd-regulator: move regulator init to arch_initcall
RPM regulator initialization is done at module_init level which is
late in the boot-up sequence and drivers dependent on regulators
do probe deferral.
Move RPM regulator initialization to arch_init level to minimize
probe deferrals by dependent drivers.

Change-Id: I3e0bc7cb46a90eb62418122869c70345da9217ee
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2014-03-06 08:29:46 +05:30
Murali Nalajala 7b118eb174 msm: move rpm-smd and rpm-notifier headers to new directory
Move rpm-smd and rpm-notifier headers to a machine independent
directory in kernel. Change the source files which are referring
to these headers and point them to a new location.

Change-Id: I69f0c1189ac9c69d8e869534f2f6689bf3ac980e
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2014-02-08 19:36:00 +05:30
David Collins 94da2480fd regulator: move the rpm-regulator-smd driver to drivers/regulator directory
Move the rpm-regulator-smd driver from the arch/arm/mach-msm
directory into the drivers/regulator directory.  Also rename it
from rpm-regulator-smd.c to rpm-smd-regulator.c so that it
matches the naming scheme of the other regulator drivers. Moving
this driver out of the arch/arm/mach-msm directory allows it to
be shared with architectures other than 'arm'.

Also move the header file from the arch/arm/mach-msm/include/mach
directory into the include/linux/regulator directory.  Moving the
header file requires updating all drivers which include it.

Change the compatible property values so that they match the new
driver name.

Change-Id: I20f2a4503c198ba9d1d04a77b03411dcc98e8aa1
Signed-off-by: David Collins <collinsd@codeaurora.org>
2013-12-19 15:27:48 -08:00
Renamed from arch/arm/mach-msm/rpm-regulator-smd.c (Browse further)