power: Add CONFIG_SPL_POWER_DOMAIN config
authorPeng Fan <peng.fan@nxp.com>
Fri, 27 Jul 2018 02:20:37 +0000 (10:20 +0800)
committerAnatolij Gustschin <agust@denx.de>
Mon, 6 Aug 2018 09:51:10 +0000 (11:51 +0200)
Add CONFIG_SPL_POWER_DOMAIN config entry.
Build drivers/power/domain if this config is selected.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/spl/Kconfig
drivers/Makefile
drivers/power/domain/Makefile

index 0be8ff0d87d7240a92c057e7e27c322b7e4891b0..0ad1e049a926e8178179915cbd3c0ddc9de4d618 100644 (file)
@@ -609,6 +609,15 @@ config SPL_POWER_SUPPORT
          in drivers/power, drivers/power/pmic and drivers/power/regulator
          as part of an SPL build.
 
+config SPL_POWER_DOMAIN
+       bool "Support power domain drivers"
+       help
+         Enable support for power domain control in SPL. Many SoCs allow
+         power to be applied to or removed from portions of the SoC (power
+         domains). This may be used to save power. This API provides the
+         means to control such power management hardware. This enables
+         the drivers in drivers/power/domain as part of a SPL build.
+
 config SPL_RAM_SUPPORT
        bool "Support booting from RAM"
        default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
index 276e5ee4d7eedfd6c3be5d8f802b6a614d80771f..d53208540ea61e5620b4adae9191737c009364d0 100644 (file)
@@ -28,6 +28,7 @@ obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
 obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/
 obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
 obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
+obj-$(CONFIG_SPL_POWER_DOMAIN) += power/domain/
 obj-$(CONFIG_SPL_DM_RESET) += reset/
 obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/
 obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/
index c7d764440205c9a5b9e99d959cf138a58e9efb36..020eee23782bde355593a13e3f4dba2db0b2cfc2 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: GPL-2.0
 
-obj-$(CONFIG_POWER_DOMAIN) += power-domain-uclass.o
+obj-$(CONFIG_$(SPL_)POWER_DOMAIN) += power-domain-uclass.o
 obj-$(CONFIG_BCM6328_POWER_DOMAIN) += bcm6328-power-domain.o
 obj-$(CONFIG_SANDBOX_POWER_DOMAIN) += sandbox-power-domain.o
 obj-$(CONFIG_SANDBOX_POWER_DOMAIN) += sandbox-power-domain-test.o