mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 08:32:55 +00:00

Add Airoha CPU PM Domain support to control frequency and power of CPU present on Airoha EN7581 SoC. Frequency and power can be controlled with the use of the SMC command by passing the performance state. The driver also expose a read-only clock that expose the current CPU frequency with SMC command. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Link: https://lore.kernel.org/r/20250109131313.32317-1-ansuelsmth@gmail.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
42 lines
1.0 KiB
Plaintext
42 lines
1.0 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
menu "MediaTek PM Domains"
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
|
|
config MTK_SCPSYS
|
|
bool "MediaTek SCPSYS Support"
|
|
default ARCH_MEDIATEK
|
|
depends on OF
|
|
select REGMAP
|
|
select MTK_INFRACFG
|
|
select PM_GENERIC_DOMAINS if PM
|
|
help
|
|
Say yes here to add support for the MediaTek SCPSYS power domain
|
|
driver.
|
|
|
|
config MTK_SCPSYS_PM_DOMAINS
|
|
bool "MediaTek SCPSYS generic power domain"
|
|
default ARCH_MEDIATEK
|
|
depends on PM
|
|
select PM_GENERIC_DOMAINS
|
|
select REGMAP
|
|
help
|
|
Say y here to enable power domain support.
|
|
In order to meet high performance and low power requirements, the System
|
|
Control Processor System (SCPSYS) has several power management related
|
|
tasks in the system.
|
|
|
|
config AIROHA_CPU_PM_DOMAIN
|
|
tristate "Airoha CPU power domain"
|
|
default ARCH_AIROHA
|
|
depends on HAVE_ARM_SMCCC
|
|
depends on PM
|
|
select PM_GENERIC_DOMAINS
|
|
help
|
|
Say y here to enable CPU power domain support for Airoha SoC.
|
|
|
|
CPU frequency and power is controlled by ATF with SMC command to
|
|
set performance states.
|
|
|
|
endmenu
|