diff options
author | Magnus Damm <damm+renesas@opensource.se> | 2014-08-24 23:03:52 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2014-09-01 20:32:05 -0400 |
commit | 1a950ca536dd5c40167ef58951e738ae430fa96d (patch) | |
tree | bd24b81db58bf51baa4c4e64d3915664dea4cfb0 /arch/arm/mach-shmobile/Kconfig | |
parent | 0d91843346049d3131c2f75ff21d6b405cb68741 (diff) |
ARM: shmobile: Cleanup pm-rcar.o build using Kconfig
Add a CONFIG_PM_RCAR entry and enable it for R-Car
Generation 1 or 2 in case CONFIG_PM or CONFIG_SMP
is set. Consolidate power management objects and
get rid of #ifdefs in the C code.
Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/Kconfig')
-rw-r--r-- | arch/arm/mach-shmobile/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 73d6d3d7e003..cd13021cda5f 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig | |||
@@ -1,13 +1,18 @@ | |||
1 | config ARCH_SHMOBILE | 1 | config ARCH_SHMOBILE |
2 | bool | 2 | bool |
3 | 3 | ||
4 | config PM_RCAR | ||
5 | bool | ||
6 | |||
4 | config ARCH_RCAR_GEN1 | 7 | config ARCH_RCAR_GEN1 |
5 | bool | 8 | bool |
9 | select PM_RCAR if PM || SMP | ||
6 | select RENESAS_INTC_IRQPIN | 10 | select RENESAS_INTC_IRQPIN |
7 | select SYS_SUPPORTS_SH_TMU | 11 | select SYS_SUPPORTS_SH_TMU |
8 | 12 | ||
9 | config ARCH_RCAR_GEN2 | 13 | config ARCH_RCAR_GEN2 |
10 | bool | 14 | bool |
15 | select PM_RCAR if PM || SMP | ||
11 | select RENESAS_IRQC | 16 | select RENESAS_IRQC |
12 | select SYS_SUPPORTS_SH_CMT | 17 | select SYS_SUPPORTS_SH_CMT |
13 | 18 | ||