diff options
author | Abhilash Kesavan <a.kesavan@samsung.com> | 2011-10-04 07:25:51 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-10-04 07:25:51 -0400 |
commit | 0da3beadcbed2128702831c9fe106ea23e194b3f (patch) | |
tree | cdaa779b331f6f8a7ac48c23f91f73dcc10b6d36 /arch/arm | |
parent | a1a9107deff9b9e5c615058834b74717fa87d49c (diff) |
ARM: S5P: Make the common S5P PM code conditionally compile
Pave the way for adding PM support on S5P64X0, which is more similar
to the S3C64XX series than the S5P series. Hence, the common pm code
(containing dummy functions) should not be used for S5P64X0.
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-exynos4/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/plat-s5p/Kconfig | 6 | ||||
-rw-r--r-- | arch/arm/plat-s5p/Makefile | 3 |
4 files changed, 10 insertions, 2 deletions
diff --git a/arch/arm/mach-exynos4/Kconfig b/arch/arm/mach-exynos4/Kconfig index 2dad16c8cf79..43ccbb0bf410 100644 --- a/arch/arm/mach-exynos4/Kconfig +++ b/arch/arm/mach-exynos4/Kconfig | |||
@@ -12,11 +12,13 @@ if ARCH_EXYNOS4 | |||
12 | config CPU_EXYNOS4210 | 12 | config CPU_EXYNOS4210 |
13 | bool | 13 | bool |
14 | select SAMSUNG_DMADEV | 14 | select SAMSUNG_DMADEV |
15 | select S5P_PM if PM | ||
15 | help | 16 | help |
16 | Enable EXYNOS4210 CPU support | 17 | Enable EXYNOS4210 CPU support |
17 | 18 | ||
18 | config SOC_EXYNOS4212 | 19 | config SOC_EXYNOS4212 |
19 | bool | 20 | bool |
21 | select S5P_PM if PM | ||
20 | help | 22 | help |
21 | Enable EXYNOS4212 SoC support | 23 | Enable EXYNOS4212 SoC support |
22 | 24 | ||
diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig index f22c683272d3..34b772a99327 100644 --- a/arch/arm/mach-s5pv210/Kconfig +++ b/arch/arm/mach-s5pv210/Kconfig | |||
@@ -14,6 +14,7 @@ config CPU_S5PV210 | |||
14 | select SAMSUNG_DMADEV | 14 | select SAMSUNG_DMADEV |
15 | select S5P_EXT_INT | 15 | select S5P_EXT_INT |
16 | select S5P_HRT | 16 | select S5P_HRT |
17 | select S5P_PM if PM | ||
17 | help | 18 | help |
18 | Enable S5PV210 CPU support | 19 | Enable S5PV210 CPU support |
19 | 20 | ||
diff --git a/arch/arm/plat-s5p/Kconfig b/arch/arm/plat-s5p/Kconfig index f9241a7a68ca..53e674348b31 100644 --- a/arch/arm/plat-s5p/Kconfig +++ b/arch/arm/plat-s5p/Kconfig | |||
@@ -40,6 +40,12 @@ config S5P_HRT | |||
40 | help | 40 | help |
41 | Use the High Resolution timer support | 41 | Use the High Resolution timer support |
42 | 42 | ||
43 | config S5P_PM | ||
44 | bool | ||
45 | help | ||
46 | Common code for power management support on S5P and newer SoCs | ||
47 | Note: Do not select this for S5P6440 and S5P6450. | ||
48 | |||
43 | comment "System MMU" | 49 | comment "System MMU" |
44 | 50 | ||
45 | config S5P_SYSTEM_MMU | 51 | config S5P_SYSTEM_MMU |
diff --git a/arch/arm/plat-s5p/Makefile b/arch/arm/plat-s5p/Makefile index 181201974b41..755d7ac4384a 100644 --- a/arch/arm/plat-s5p/Makefile +++ b/arch/arm/plat-s5p/Makefile | |||
@@ -20,8 +20,7 @@ obj-y += irq.o | |||
20 | obj-$(CONFIG_S5P_EXT_INT) += irq-eint.o | 20 | obj-$(CONFIG_S5P_EXT_INT) += irq-eint.o |
21 | obj-$(CONFIG_S5P_GPIO_INT) += irq-gpioint.o | 21 | obj-$(CONFIG_S5P_GPIO_INT) += irq-gpioint.o |
22 | obj-$(CONFIG_S5P_SYSTEM_MMU) += sysmmu.o | 22 | obj-$(CONFIG_S5P_SYSTEM_MMU) += sysmmu.o |
23 | obj-$(CONFIG_PM) += pm.o | 23 | obj-$(CONFIG_S5P_PM) += pm.o irq-pm.o |
24 | obj-$(CONFIG_PM) += irq-pm.o | ||
25 | obj-$(CONFIG_S5P_HRT) += s5p-time.o | 24 | obj-$(CONFIG_S5P_HRT) += s5p-time.o |
26 | 25 | ||
27 | # devices | 26 | # devices |