From d6c1053736373e738dfe7d0c4eaeb0b3099fd395 Mon Sep 17 00:00:00 2001 From: Ulf Hansson Date: Tue, 12 Sep 2023 13:31:44 +0200 Subject: pmdomain: starfive: Move Kconfig file to the pmdomain subsystem The Kconfig belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Walker Chen Cc: Conor Dooley Acked-by: Conor Dooley Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 2 ++ drivers/pmdomain/starfive/Kconfig | 12 ++++++++++++ drivers/soc/Kconfig | 1 - drivers/soc/starfive/Kconfig | 12 ------------ 4 files changed, 14 insertions(+), 13 deletions(-) create mode 100644 drivers/pmdomain/starfive/Kconfig delete mode 100644 drivers/soc/starfive/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index ac77cf4271a7..cf88c010f560 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -1,4 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only menu "PM Domains" +source "drivers/pmdomain/starfive/Kconfig" + endmenu diff --git a/drivers/pmdomain/starfive/Kconfig b/drivers/pmdomain/starfive/Kconfig new file mode 100644 index 000000000000..1e9b0c414fec --- /dev/null +++ b/drivers/pmdomain/starfive/Kconfig @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0 + +config JH71XX_PMU + bool "Support PMU for StarFive JH71XX Soc" + depends on PM + depends on ARCH_STARFIVE || COMPILE_TEST + default ARCH_STARFIVE + select PM_GENERIC_DOMAINS + help + Say 'y' here to enable support power domain support. + In order to meet low power requirements, a Power Management Unit (PMU) + is designed for controlling power resources in StarFive JH71XX SoCs. diff --git a/drivers/soc/Kconfig b/drivers/soc/Kconfig index d21e75d69294..be63745d74a4 100644 --- a/drivers/soc/Kconfig +++ b/drivers/soc/Kconfig @@ -24,7 +24,6 @@ source "drivers/soc/renesas/Kconfig" source "drivers/soc/rockchip/Kconfig" source "drivers/soc/samsung/Kconfig" source "drivers/soc/sifive/Kconfig" -source "drivers/soc/starfive/Kconfig" source "drivers/soc/sunxi/Kconfig" source "drivers/soc/tegra/Kconfig" source "drivers/soc/ti/Kconfig" diff --git a/drivers/soc/starfive/Kconfig b/drivers/soc/starfive/Kconfig deleted file mode 100644 index 1e9b0c414fec..000000000000 --- a/drivers/soc/starfive/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 - -config JH71XX_PMU - bool "Support PMU for StarFive JH71XX Soc" - depends on PM - depends on ARCH_STARFIVE || COMPILE_TEST - default ARCH_STARFIVE - select PM_GENERIC_DOMAINS - help - Say 'y' here to enable support power domain support. - In order to meet low power requirements, a Power Management Unit (PMU) - is designed for controlling power resources in StarFive JH71XX SoCs. -- cgit v1.2.3