mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
If initial rate is greater than opp rate and initial voltage isn't qeual to opp volatge, the opp voltage may too low for initial rate, so it's inappropriate to update voltage when initial voltage isn't qeual to opp volatge. In order to solve this problem and consider that the regulator is shared between several devices on some platforms, make the following two changes. If the driver doesn't support to change frequency, the opp table should contain an opp whose rate is geater than or equal to initial rate, so that the voltage is enough for initial rate and the min_uV and max_uV of regulator aren't equal to zero after update voltage. If the driver supports to change frequency, let devfreq framework update rate and voltage. Change-Id: I4004f55f2cfd3b87f734844a0cdf8e9619d785d2 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>