]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
dvfs: tegra: Update conditions to skip DVFS enable
authorAlex Frid <afrid@nvidia.com>
Wed, 1 Apr 2015 23:37:33 +0000 (16:37 -0700)
committerAleksandr Frid <afrid@nvidia.com>
Thu, 2 Apr 2015 19:58:16 +0000 (12:58 -0700)
commit79f0be5310081c4e4ba999ea1021e69d34e83f20
tree31051268ca062bb676044095855c89300e6ee85a
parentdf32674807c6d6ff10a3ba5d063116590a416779
dvfs: tegra: Update conditions to skip DVFS enable

Moved check for conditions when DVFS table initialization on particular
clock can be skipped to a separate function. This function is checking
the following three conditions (each of them allows to skip):

a) clock can reach maximum rate at minimum voltage - same as before this
commit

b) UART clock has a flat DVFS table - DVFS rates in the entire voltage
range are the same. Before this commit the flat table condition was not
limited to UART. However, in general, it is covered by (a) when maximum
clock rate is at/below maximum DVFS rate. UART is a special case, since
UART driver may use its own baud rate divider directly, and apply baud
rate limits based on platform data transparently to DVFS.

c) single-voltage range (minimum and nominal DVFS rail voltages are the
same). This condition is applied to non-shared bus clock provided clock
maximum rate is at/below maximum DVFS rate (the shared bus exception is
added, because shared buses may need DVFS initialized to define possible
rates). It is a new condition introduced by this commit.

Bug 1602537
Bug 1625003

Change-Id: I8d40cabcf8dd233931e15ca95a52c7ef2df516a2
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/726568
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
drivers/platform/tegra/dvfs.c