drivers/pmdomain/imx/Kconfig | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
Convert IMX8M_BLK_CTRL and IMX9_BLK_CTRL from bool to tristate
to allow building as loadable modules.
Add prompt strings to make these options visible and configurable
in menuconfig, keeping them enabled by default on appropriate platforms.
Also remove the IMX_GPCV2_PM_DOMAINS dependency from IMX9_BLK_CTRL.
This dependency was incorrect from the beginning - i.MX93 uses a
different power domain architecture compared to i.MX8M series:
- i.MX8M uses GPCv2 (General Power Controller v2) for power domain
management, hence IMX8M_BLK_CTRL correctly depends on it.
- i.MX93 uses BLK_CTRL directly without GPCv2. The hardware doesn't
have GPCv2 at all.
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
---
drivers/pmdomain/imx/Kconfig | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/drivers/pmdomain/imx/Kconfig b/drivers/pmdomain/imx/Kconfig
index 00203615c65e..9168d183b0c5 100644
--- a/drivers/pmdomain/imx/Kconfig
+++ b/drivers/pmdomain/imx/Kconfig
@@ -10,15 +10,18 @@ config IMX_GPCV2_PM_DOMAINS
default y if SOC_IMX7D
config IMX8M_BLK_CTRL
- bool
- default SOC_IMX8M && IMX_GPCV2_PM_DOMAINS
+ 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
- bool
- default SOC_IMX9 && IMX_GPCV2_PM_DOMAINS
+ tristate "i.MX93 BLK CTRL driver"
+ depends on SOC_IMX9
depends on PM_GENERIC_DOMAINS
+ default y
config IMX_SCU_PD
bool "IMX SCU Power Domain driver"
--
2.34.1
On Mon, Apr 13, 2026 at 02:30:49PM +0900, Zhipeng Wang wrote: > Convert IMX8M_BLK_CTRL and IMX9_BLK_CTRL from bool to tristate > to allow building as loadable modules. > > Add prompt strings to make these options visible and configurable > in menuconfig, keeping them enabled by default on appropriate platforms. > > Also remove the IMX_GPCV2_PM_DOMAINS dependency from IMX9_BLK_CTRL. > This dependency was incorrect from the beginning - i.MX93 uses a s/-/because Reviewed-by: Frank Li <Frank.Li@nxp.com> > different power domain architecture compared to i.MX8M series: > > - i.MX8M uses GPCv2 (General Power Controller v2) for power domain > management, hence IMX8M_BLK_CTRL correctly depends on it. > > - i.MX93 uses BLK_CTRL directly without GPCv2. The hardware doesn't > have GPCv2 at all. > > Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com> > --- > drivers/pmdomain/imx/Kconfig | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > > diff --git a/drivers/pmdomain/imx/Kconfig b/drivers/pmdomain/imx/Kconfig > index 00203615c65e..9168d183b0c5 100644 > --- a/drivers/pmdomain/imx/Kconfig > +++ b/drivers/pmdomain/imx/Kconfig > @@ -10,15 +10,18 @@ config IMX_GPCV2_PM_DOMAINS > default y if SOC_IMX7D > > config IMX8M_BLK_CTRL > - bool > - default SOC_IMX8M && IMX_GPCV2_PM_DOMAINS > + 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 > - bool > - default SOC_IMX9 && IMX_GPCV2_PM_DOMAINS > + tristate "i.MX93 BLK CTRL driver" > + depends on SOC_IMX9 > depends on PM_GENERIC_DOMAINS > + default y > > config IMX_SCU_PD > bool "IMX SCU Power Domain driver" > -- > 2.34.1 >
On 26-04-13, Zhipeng Wang wrote: > Convert IMX8M_BLK_CTRL and IMX9_BLK_CTRL from bool to tristate > to allow building as loadable modules. Out of curiosity, why do you want to have a PM driver to be buildable as module? Regards, Marco > Add prompt strings to make these options visible and configurable > in menuconfig, keeping them enabled by default on appropriate platforms. > > Also remove the IMX_GPCV2_PM_DOMAINS dependency from IMX9_BLK_CTRL. > This dependency was incorrect from the beginning - i.MX93 uses a > different power domain architecture compared to i.MX8M series: > > - i.MX8M uses GPCv2 (General Power Controller v2) for power domain > management, hence IMX8M_BLK_CTRL correctly depends on it. > > - i.MX93 uses BLK_CTRL directly without GPCv2. The hardware doesn't > have GPCv2 at all. > > Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com> > --- > drivers/pmdomain/imx/Kconfig | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > > diff --git a/drivers/pmdomain/imx/Kconfig b/drivers/pmdomain/imx/Kconfig > index 00203615c65e..9168d183b0c5 100644 > --- a/drivers/pmdomain/imx/Kconfig > +++ b/drivers/pmdomain/imx/Kconfig > @@ -10,15 +10,18 @@ config IMX_GPCV2_PM_DOMAINS > default y if SOC_IMX7D > > config IMX8M_BLK_CTRL > - bool > - default SOC_IMX8M && IMX_GPCV2_PM_DOMAINS > + 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 > - bool > - default SOC_IMX9 && IMX_GPCV2_PM_DOMAINS > + tristate "i.MX93 BLK CTRL driver" > + depends on SOC_IMX9 > depends on PM_GENERIC_DOMAINS > + default y > > config IMX_SCU_PD > bool "IMX SCU Power Domain driver" > -- > 2.34.1 > > > -- #gernperDu #CallMeByMyFirstName Pengutronix e.K. | | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
© 2016 - 2026 Red Hat, Inc.