pmdomain: st: Add a Kconfig option for the ux500 power domain
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Sep 2023 10:59:11 +0000 (12:59 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 Oct 2023 21:41:56 +0000 (23:41 +0200)
We shouldn't really use the CONFIG_ARCH_U8500 option directly, but rather
have our own dedicated Kconfig option, so let's add that.

Cc: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/Kconfig
drivers/pmdomain/st/Kconfig [new file with mode: 0644]
drivers/pmdomain/st/Makefile

index 4a411e0985c37cb7187dd95a8183a00ce999caf5..08f8a3aa98051e850cc539985c70be3665052e07 100644 (file)
@@ -11,5 +11,6 @@ source "drivers/pmdomain/qcom/Kconfig"
 source "drivers/pmdomain/renesas/Kconfig"
 source "drivers/pmdomain/rockchip/Kconfig"
 source "drivers/pmdomain/samsung/Kconfig"
+source "drivers/pmdomain/st/Kconfig"
 
 endmenu
diff --git a/drivers/pmdomain/st/Kconfig b/drivers/pmdomain/st/Kconfig
new file mode 100644 (file)
index 0000000..a77a702
--- /dev/null
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-only
+config UX500_PM_DOMAIN
+       bool "ST-Ericsson ux500 Power Domain"
+       depends on ARCH_U8500 || COMPILE_TEST
+       default ARCH_U8500
index 8fa5f9855460886f4c440ae58e5bd09a3a692373..6d8b617eb834cfcc824a72fe42df9e389fdccf51 100644 (file)
@@ -1,2 +1,2 @@
 # SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_ARCH_U8500)               += ste-ux500-pm-domain.o
+obj-$(CONFIG_UX500_PM_DOMAIN)          += ste-ux500-pm-domain.o