mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
Convert CONFIG_IMX_SCU_PD from bool to tristate to allow building as a loadable module. This is needed on Android devices using the Generic Kernel Image (GKI), where SoC-specific drivers must be built as modules rather than built into the core kernel image. For i.MX8Q devices running Android with a GKI kernel, the SCU power domain driver must be loadable. Without tristate support, power domains cannot be properly initialized, preventing these systems from functioning under GKI. Use subsys_initcall() so that when built-in the power domain provider probes before its consumers (e.g. the SCU clock driver at device_initcall level), fixing "failed to attached the power domain" warnings at boot. When built as a module, subsys_initcall() is equivalent to module_init(). No module_exit() is provided because the SCU power domain provider is a system-level resource that cannot be safely removed at runtime. Add MODULE_DEVICE_TABLE() for OF-based module autoloading. Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
33 lines
713 B
Plaintext
33 lines
713 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
menu "i.MX PM Domains"
|
|
|
|
config IMX_GPCV2_PM_DOMAINS
|
|
bool "i.MX GPCv2 PM domains"
|
|
depends on ARCH_MXC || (COMPILE_TEST && OF)
|
|
depends on PM
|
|
select PM_GENERIC_DOMAINS
|
|
select REGMAP_MMIO
|
|
default y if SOC_IMX7D
|
|
|
|
config IMX8M_BLK_CTRL
|
|
tristate "i.MX8M BLK CTRL driver"
|
|
depends on SOC_IMX8M
|
|
depends on IMX_GPCV2_PM_DOMAINS
|
|
depends on PM_GENERIC_DOMAINS
|
|
depends on COMMON_CLK
|
|
default y
|
|
|
|
config IMX9_BLK_CTRL
|
|
tristate "i.MX93 BLK CTRL driver"
|
|
depends on SOC_IMX9
|
|
depends on PM_GENERIC_DOMAINS
|
|
default y
|
|
|
|
config IMX_SCU_PD
|
|
tristate "IMX SCU Power Domain driver"
|
|
depends on IMX_SCU
|
|
help
|
|
The System Controller Firmware (SCFW) based power domain driver.
|
|
|
|
endmenu
|