Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pmdomain: bcm: Move Kconfig options to the pmdomain subsystem

The Kconfig options belongs closer to the corresponding implementations,
hence let's move them from the soc subsystem to the pmdomain subsystem.

Cc: Florian Fainelli <florian.fainelli@broadcom.com>
Cc: Ray Jui <rjui@broadcom.com>
Cc: Scott Branden <sbranden@broadcom.com>
Cc: <linux-mips@vger.kernel.org>
Cc: <linux-rpi-kernel@lists.infradead.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

+43 -51
+1
drivers/pmdomain/Kconfig
··· 4 4 source "drivers/pmdomain/actions/Kconfig" 5 5 source "drivers/pmdomain/amlogic/Kconfig" 6 6 source "drivers/pmdomain/apple/Kconfig" 7 + source "drivers/pmdomain/bcm/Kconfig" 7 8 8 9 endmenu
+42
drivers/pmdomain/bcm/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + menu "Broadcom PM Domains" 3 + 4 + config BCM2835_POWER 5 + bool "BCM2835 power domain driver" 6 + depends on ARCH_BCM2835 || (COMPILE_TEST && OF) 7 + default y if ARCH_BCM2835 8 + select PM_GENERIC_DOMAINS if PM 9 + select RESET_CONTROLLER 10 + help 11 + This enables support for the BCM2835 power domains and reset 12 + controller. Any usage of power domains by the Raspberry Pi 13 + firmware means that Linux usage of the same power domain 14 + must be accessed using the RASPBERRYPI_POWER driver 15 + 16 + config RASPBERRYPI_POWER 17 + bool "Raspberry Pi power domain driver" 18 + depends on ARCH_BCM2835 || (COMPILE_TEST && OF) 19 + depends on RASPBERRYPI_FIRMWARE=y 20 + select PM_GENERIC_DOMAINS if PM 21 + help 22 + This enables support for the RPi power domains which can be enabled 23 + or disabled via the RPi firmware. 24 + 25 + config BCM_PMB 26 + bool "Broadcom PMB (Power Management Bus) driver" 27 + depends on ARCH_BCMBCA || (COMPILE_TEST && OF) 28 + default ARCH_BCMBCA 29 + select PM_GENERIC_DOMAINS if PM 30 + help 31 + This enables support for the Broadcom's PMB (Power Management Bus) that 32 + is used for disabling and enabling SoC devices. 33 + 34 + config BCM63XX_POWER 35 + bool "BCM63xx power domain driver" 36 + depends on BMIPS_GENERIC || (COMPILE_TEST && OF) 37 + select PM_GENERIC_DOMAINS if PM 38 + help 39 + This enables support for the BCM63xx power domains controller on 40 + BCM6318, BCM6328, BCM6362 and BCM63268 SoCs. 41 + 42 + endmenu
-51
drivers/soc/bcm/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 menu "Broadcom SoC drivers" 3 3 4 - config BCM2835_POWER 5 - bool "BCM2835 power domain driver" 6 - depends on ARCH_BCM2835 || (COMPILE_TEST && OF) 7 - default y if ARCH_BCM2835 8 - select PM_GENERIC_DOMAINS if PM 9 - select RESET_CONTROLLER 10 - help 11 - This enables support for the BCM2835 power domains and reset 12 - controller. Any usage of power domains by the Raspberry Pi 13 - firmware means that Linux usage of the same power domain 14 - must be accessed using the RASPBERRYPI_POWER driver 15 - 16 - config RASPBERRYPI_POWER 17 - bool "Raspberry Pi power domain driver" 18 - depends on ARCH_BCM2835 || (COMPILE_TEST && OF) 19 - depends on RASPBERRYPI_FIRMWARE=y 20 - select PM_GENERIC_DOMAINS if PM 21 - help 22 - This enables support for the RPi power domains which can be enabled 23 - or disabled via the RPi firmware. 24 - 25 - config SOC_BCM63XX 26 - bool "Broadcom 63xx SoC drivers" 27 - depends on BMIPS_GENERIC || COMPILE_TEST 28 - help 29 - Enables drivers for the Broadcom 63xx series of chips. 30 - Drivers can be enabled individually within this menu. 31 - 32 - If unsure, say N. 33 - 34 4 config SOC_BRCMSTB 35 5 bool "Broadcom STB SoC drivers" 36 6 depends on ARM || ARM64 || BMIPS_GENERIC || COMPILE_TEST ··· 11 41 can be enabled individually within this menu. 12 42 13 43 If unsure, say N. 14 - 15 - config BCM_PMB 16 - bool "Broadcom PMB (Power Management Bus) driver" 17 - depends on ARCH_BCMBCA || (COMPILE_TEST && OF) 18 - default ARCH_BCMBCA 19 - select PM_GENERIC_DOMAINS if PM 20 - help 21 - This enables support for the Broadcom's PMB (Power Management Bus) that 22 - is used for disabling and enabling SoC devices. 23 - 24 - if SOC_BCM63XX 25 - 26 - config BCM63XX_POWER 27 - bool "BCM63xx power domain driver" 28 - depends on BMIPS_GENERIC || (COMPILE_TEST && OF) 29 - select PM_GENERIC_DOMAINS if PM 30 - help 31 - This enables support for the BCM63xx power domains controller on 32 - BCM6318, BCM6328, BCM6362 and BCM63268 SoCs. 33 - 34 - endif # SOC_BCM63XX 35 44 36 45 source "drivers/soc/bcm/brcmstb/Kconfig" 37 46