OSDN Git Service

cpufreq: mediatek: Add opp notification support
authorRex-BC Chen <rex-bc.chen@mediatek.com>
Thu, 5 May 2022 11:52:21 +0000 (19:52 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 6 May 2022 04:13:42 +0000 (09:43 +0530)
commitc210063b40acab74bb7262d2bfae557171884ff2
tree093ef61c16763fdb62e3844d350a3cfd2498f59f
parent6a17b3876bc8303612d7ad59ecf7cbc0db418bcd
cpufreq: mediatek: Add opp notification support

From this opp notifier, cpufreq should listen to opp notification and do
proper actions when receiving events of disable and voltage adjustment.

One of the user for this opp notifier is MediaTek SVS.
The MediaTek Smart Voltage Scaling (SVS) is a hardware which calculates
suitable SVS bank voltages to OPP voltage table.

Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
Signed-off-by: Jia-Wei Chang <jia-wei.chang@mediatek.com>
Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
[ Viresh: Renamed opp_freq as current_freq and moved its initialization ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/mediatek-cpufreq.c