mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-27 06:50:37 +00:00

The Dynamic Voltage and Frequency Scaling Resource Collector (DVFSRC) is a Hardware module used to collect all the requests from both software and the various remote processors embedded into the SoC and decide about a minimum operating voltage and a minimum DRAM frequency to fulfill those requests in an effort to provide the best achievable performance per watt. This hardware IP is capable of transparently performing direct register R/W on all of the DVFSRC-controlled regulators and SoC bandwidth knobs. This driver includes support for MT8183, MT8192 and MT8195. Co-Developed-by: Dawei Chien <dawei.chien@mediatek.com> [Angelo: Partial refactoring and cleanups] Reviewed-by: Georgi Djakov <djakov@kerenl.org> Link: https://lore.kernel.org/r/20240610085735.147134-5-angelogioacchino.delregno@collabora.com Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
93 lines
2.8 KiB
Plaintext
93 lines
2.8 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# MediaTek SoC drivers
|
|
#
|
|
menu "MediaTek SoC drivers"
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
|
|
config MTK_CMDQ
|
|
tristate "MediaTek CMDQ Support"
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
select MAILBOX
|
|
select MTK_CMDQ_MBOX
|
|
select MTK_INFRACFG
|
|
help
|
|
Say yes here to add support for the MediaTek Command Queue (CMDQ)
|
|
driver. The CMDQ is used to help read/write registers with critical
|
|
time limitation, such as updating display configuration during the
|
|
vblank.
|
|
|
|
config MTK_DEVAPC
|
|
tristate "Mediatek Device APC Support"
|
|
help
|
|
Say yes here to enable support for Mediatek Device APC driver.
|
|
This driver is mainly used to handle the violation which catches
|
|
unexpected transaction.
|
|
The violation information is logged for further analysis or
|
|
countermeasures.
|
|
|
|
config MTK_DVFSRC
|
|
tristate "MediaTek DVFSRC Support"
|
|
depends on ARCH_MEDIATEK
|
|
help
|
|
Say yes here to add support for the MediaTek Dynamic Voltage
|
|
and Frequency Scaling Resource Collector (DVFSRC): a HW
|
|
IP found on many MediaTek SoCs, which is responsible for
|
|
collecting DVFS requests from various SoC IPs, other than
|
|
software, and performing bandwidth scaling to provide the
|
|
best achievable performance-per-watt.
|
|
|
|
config MTK_INFRACFG
|
|
bool "MediaTek INFRACFG Support"
|
|
select REGMAP
|
|
help
|
|
Say yes here to add support for the MediaTek INFRACFG controller. The
|
|
INFRACFG controller contains various infrastructure registers not
|
|
directly associated to any device.
|
|
|
|
config MTK_PMIC_WRAP
|
|
tristate "MediaTek PMIC Wrapper Support"
|
|
depends on RESET_CONTROLLER
|
|
depends on OF
|
|
select REGMAP
|
|
help
|
|
Say yes here to add support for MediaTek PMIC Wrapper found
|
|
on different MediaTek SoCs. The PMIC wrapper is a proprietary
|
|
hardware to connect the PMIC.
|
|
|
|
config MTK_REGULATOR_COUPLER
|
|
bool "MediaTek SoC Regulator Coupler" if COMPILE_TEST
|
|
default ARCH_MEDIATEK
|
|
depends on REGULATOR
|
|
|
|
config MTK_MMSYS
|
|
tristate "MediaTek MMSYS Support"
|
|
default ARCH_MEDIATEK
|
|
depends on HAS_IOMEM
|
|
depends on MTK_CMDQ || MTK_CMDQ=n
|
|
help
|
|
Say yes here to add support for the MediaTek Multimedia
|
|
Subsystem (MMSYS).
|
|
|
|
config MTK_SVS
|
|
tristate "MediaTek Smart Voltage Scaling(SVS)"
|
|
depends on NVMEM_MTK_EFUSE && NVMEM
|
|
help
|
|
The Smart Voltage Scaling(SVS) engine is a piece of hardware
|
|
which has several controllers(banks) for calculating suitable
|
|
voltage to different power domains(CPU/GPU/CCI) according to
|
|
chip process corner, temperatures and other factors. Then DVFS
|
|
driver could apply SVS bank voltage to PMIC/Buck.
|
|
|
|
config MTK_SOCINFO
|
|
tristate "MediaTek SoC Information"
|
|
default y
|
|
depends on NVMEM_MTK_EFUSE
|
|
select SOC_BUS
|
|
help
|
|
The MediaTek SoC Information (mtk-socinfo) driver provides
|
|
information about the SoC to the userspace including the
|
|
manufacturer name, marketing name and soc name.
|
|
|
|
endmenu
|