[PATCH v1] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

Hector Yuan
2020-08-06T17:55:35Z

The CPUfreq HW present in some Mediatek chipsets offloads the steps necessary
for changing the frequency of CPUs. The driver implements the cpufreq
driver interface for this hardware engine.

This patch depends on the MT6799 DTS patch submitted by Hanks Chen
https://lkml.org/lkml/2020/8/4/1094

Hector.Yuan (2):
cpufreq: mediatek-hw: Add support for Mediatek cpufreq
dt-bindings: cpufreq: add MediaTek cpufreq bindings

.../bindings/cpufreq/cpufreq-mediatek-hw.yaml | 56 +++++
arch/arm64/configs/defconfig | 1 +
drivers/cpufreq/Kconfig.arm | 11 +
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/mediatek-cpufreq-hw.c | 255 ++++++++++++++++++++
5 files changed, 324 insertions(+)
create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek-hw.yaml
create mode 100644 drivers/cpufreq/mediatek-cpufreq-hw.c