ARM: tegra: dvfs: Handle zero GPU rail voltage
authorAlex Frid <afrid@nvidia.com>
Fri, 20 Sep 2013 05:45:09 +0000 (22:45 -0700)
committerAjay Nandakumar <anandakumarm@nvidia.com>
Thu, 3 Oct 2013 13:47:28 +0000 (18:47 +0530)
commit2760eca910ae0ee2f983b6f5f091aeb804f01a6c
treea8e828e0b3ec75540299b457cd21a39f3a83a0c8
parent0b2cb04e9f86865f507d92e677b9443849d845aa
ARM: tegra: dvfs: Handle zero GPU rail voltage

Preserved voltage of the rail with in-band enable / disable control
when all clocks associated with dvfs rail are disabled, and "0"
voltage is requested. The rail will be turned off via explicit call
to regulator interface - applicable to GPU rail.

No changes if "0" voltage is requested for rail with side-band control,
and jump-to-zero property - CPU rail: allow to pass "0" through,
mainly for statistical purpose. Added warning and preserve voltage
if "0" requested for core rail - must never happen (core system clocks
are never disabled at run-time).

Change-Id: I724ea9373d0731d6f115ecde1e3b8dd8e7ff2884
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/278180
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit fab7582bcae0c63a645aa2cbb9e1e001b4b5603c)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
arch/arm/mach-tegra/dvfs.c