mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
The mtk-mfg pmdomain driver calls common mailbox framework functions. If
the common mailbox framework is not selected in the kernel's
configuration, the build runs into a linker error, as the symbols are
absent.
The hardware mailbox Kconfig system, MAILBOX, has no dependencies of its
own. It's therefore safe to "select" it rather than use "depend on".
Declare this "select" dependency in the Kconfig for the driver.
Fixes: 1ff1f0db6aec ("pmdomain: mediatek: Add support for MFlexGraphics")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202510301311.TcOCnZ1s-lkp@intel.com/
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
58 lines
1.5 KiB
Text
58 lines
1.5 KiB
Text
# 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 MTK_MFG_PM_DOMAIN
|
|
bool "MediaTek MFlexGraphics power domain"
|
|
default ARCH_MEDIATEK
|
|
depends on PM
|
|
depends on OF
|
|
depends on COMMON_CLK
|
|
select MAILBOX
|
|
select PM_GENERIC_DOMAINS
|
|
imply MTK_GPUEB_MBOX
|
|
help
|
|
Say y or m here to enable the power domains driver for MediaTek
|
|
MFlexGraphics. This driver allows for power and frequency control of
|
|
GPUs on MediaTek SoCs such as the MT8196 or MT6991.
|
|
|
|
This driver is required for the Mali GPU to work at all on MT8196 and
|
|
MT6991.
|
|
|
|
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
|