@@ -13,7 +13,6 @@ obj-$(CONFIG_ARCH_EXYNOS) += exynos.o exynos-smc.o firmware.o
obj-$(CONFIG_EXYNOS_CPU_SUSPEND) += pm.o sleep.o
obj-$(CONFIG_PM_SLEEP) += suspend.o
-obj-$(CONFIG_PM_GENERIC_DOMAINS) += pm_domains.o
obj-$(CONFIG_SMP) += platsmp.o headsmp.o
@@ -17,4 +17,13 @@ config EXYNOS_PMU
functionality like initialisation and transition to various low power
states.
+config EXYNOS_POWER_DOMAIN
+ tristate "Support Exynos PM Power Domain"
+ depends on ARCH_EXYNOS && PM_GENERIC_DOMAINS
+ default y
+ help
+ Exynos SOC have power domain gating support. This driver implements
+ that functionality and registers all the necessary hooks to the
+ generic power domain core kernel infrastructure.
+
endmenu
@@ -1 +1,2 @@
-obj-$(CONFIG_EXYNOS_PMU) += exynos-pmu.o
+obj-$(CONFIG_EXYNOS_PMU) += exynos-pmu.o
+obj-$(CONFIG_EXYNOS_POWER_DOMAIN) += pm_domains.o
This patch moves arch/arm/mach-exynos/pm_domains.c to driver/soc/samsung folder. In this way it can be used for both arm and arm64 platforms. This file is moved in this directory as this driver is soc specific and only used by exynos platforms. Cc: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com> --- arch/arm/mach-exynos/Makefile | 1 - drivers/soc/samsung/Kconfig | 9 +++++++++ drivers/soc/samsung/Makefile | 3 ++- .../soc/samsung}/pm_domains.c | 0 4 files changed, 11 insertions(+), 2 deletions(-) rename {arch/arm/mach-exynos => drivers/soc/samsung}/pm_domains.c (100%) diff --git a/arch/arm/mach-exynos/pm_domains.c b/drivers/soc/samsung/pm_domains.c similarity index 100% rename from arch/arm/mach-exynos/pm_domains.c rename to drivers/soc/samsung/pm_domains.c