t; Vproc
b. Vsram - Vproc < 200 mV
To address these needs, we use cpufreq-dt but do voltage scaling in the
cpufreq notifier.
pi-cheng.chen (2):
cpufreq-dt: check CPU clock/power domain during initializing
cpufreq: add cpufreq driver for Mediatek MT8173 SoC
drivers/cpufreq/Kconfig.arm
Vproc and Vsram need to be
controlled concurrently and 2 limitations should be followed:
a. Vsram > Vproc
b. Vsram - Vproc < 200 mV
To address these needs, we reuse cpufreq-dt but do voltage scaling in the
cpufreq notifier.
Signed-off-by: pi-cheng.chen
---
drivers/cpufreq/
Currently the DT based cpufreq driver is missing some way to check which
CPUs share clocks. In the 1st patch, CPU clock/power domain information is
added to the platform_data of cpufreq-dt so that cpufreq-dt driver could
check which CPUs share clock/power.
Signed-off-by: pi-cheng.chen
use of .determine_rate callback
Signed-off-by: pi-cheng.chen
---
drivers/clk/mediatek/Makefile | 2 +-
drivers/clk/mediatek/clk-cpumux.c | 122 +
drivers/clk/mediatek/clk-cpumux.h | 31 +
drivers/clk/mediatek/clk-mt8173.c | 23
This patch implements MT8173 specific cpufreq driver with OPP table defined
in the driver code.
Signed-off-by: pi-cheng.chen
---
drivers/cpufreq/Kconfig.arm | 6 +
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/mt8173-cpufreq.c | 509 +++
3
the driver source code until new OPP binding is ready
Changes in v2:
- Add intermediate frequency support in cpufreq-dt driver
- Use voltage scaling code of cpufreq-dt for little cluster instead of
implementaion in notifier of mtk-cpufreq driver
- Code refinement for mtk-cpufreq driver
pi
This patch adds voltage supplies and clocks used by MT8173 cpufreq driver.
Signed-off-by: pi-cheng.chen
---
arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 9 +
arch/arm64/boot/dts/mediatek/mt8173.dtsi| 6 ++
2 files changed, 15 insertions(+)
diff --git a/arch/arm64/boot/dts
This patch illustrates how to enable mtk-cpufreq driver for a Mediatek SoC in
device tree using MT8173 as an example. This patch was tested on MT8173 EVB
with several patches which are not yet posted on public mailing list.
Signed-off-by: pi-cheng.chen
---
arch/arm64/boot/dts/mediatek/mt8173
Add dt-binding for mtk-cpufreq driver so that the driver could get SoC specific
information (intermediate_clk for now) from device tree.
Signed-off-by: pi-cheng.chen
---
.../devicetree/bindings/cpufreq/cpufreq-mtk.txt | 17 +
1 file changed, 17 insertions(+)
create mode
quite similar, consolidate the flow as a new function to keep readibility.
Signed-off-by: pi-cheng.chen
---
drivers/cpufreq/cpufreq-dt.c | 68 +++-
include/linux/cpufreq-dt.h | 7 +
2 files changed, 68 insertions(+), 7 deletions(-)
diff --git a
age scaling code of cpufreq-dt for little cluster instead of
implementaion in notifier of mtk-cpufreq driver
3. Code refinement for mtk-cpufreq driver
pi-cheng.chen (4):
cpufreq-dt: add clock domain and intermediate frequency support
cpufreq: dt-bindings: add bindings for mtk-cpufreq dri
In this patch, some SoC specific voltage scaling flow is implemented in the
cpufreq notifier of mtk-cpufreq driver.
Signed-off-by: pi-cheng.chen
---
drivers/cpufreq/Kconfig.arm | 6 +
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/mtk-cpufreq.c | 346
This patch adds CPU mux clocks which are used by Mediatek cpufreq driver
for intermediate clock source switching. This patch is based on Mediatek
clock driver patches[1].
[1] http://thread.gmane.org/gmane.linux.kernel/1892436
Signed-off-by: pi-cheng.chen
---
drivers/clk/mediatek/Makefile
13 matches
Mail list logo