]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: shmobile: R-Mobile: Move pm-rmobile to drivers/soc/renesas/
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 29 Nov 2018 11:09:31 +0000 (12:09 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 30 Nov 2018 10:29:11 +0000 (11:29 +0100)
The pm-rmobile driver is really a driver for the System Controller
(SYSC) found in R-Mobile SoCs.  An equivalent driver for R-Car SoCs is
already located under drivers/soc/renesas/.

Hence move the pm-rmobile driver from arch/arm/mach-shmobile/ to
drivers/soc/renesas/, and rename it to rmobile-sysc.

Enable compile-testing on non-ARM and non-R-Mobile SoCs.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/Kconfig
arch/arm/mach-shmobile/Makefile
drivers/soc/renesas/Kconfig
drivers/soc/renesas/Makefile
drivers/soc/renesas/rmobile-sysc.c [moved from arch/arm/mach-shmobile/pm-rmobile.c with 100% similarity]

index 9b798c9dffe4e94afb36637478f78762c4805ba6..3683d6f109730ee796687d0b66c063cba8253108 100644 (file)
@@ -1,9 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
-config PM_RMOBILE
-       bool
-       select PM
-       select PM_GENERIC_DOMAINS
-
 menuconfig ARCH_RENESAS
        bool "Renesas ARM SoCs"
        depends on ARCH_MULTI_V7 && MMU
index 5591646cb9bbfd33def30a3f91529acb99c7ed1b..f7bf17b7abaef7a9e0624107146ee05cfd1125a0 100644 (file)
@@ -35,7 +35,6 @@ smp-$(CONFIG_ARCH_EMEV2)      += smp-emev2.o headsmp-scu.o platsmp-scu.o
 
 # PM objects
 obj-$(CONFIG_SUSPEND)          += suspend.o
-obj-$(CONFIG_PM_RMOBILE)       += pm-rmobile.o
 obj-$(CONFIG_ARCH_RCAR_GEN2)   += pm-rcar-gen2.o
 
 # Framework support
index fe7f58616cdd6cf75fef2cc662c8ebf27546b5ad..4d8012e1205c5a7fb068b5c80804e7b6f386f505 100644 (file)
@@ -34,9 +34,11 @@ config ARCH_RCAR_GEN3
 
 config ARCH_RMOBILE
        bool
-       select PM_RMOBILE
+       select PM
+       select PM_GENERIC_DOMAINS
        select SYS_SUPPORTS_SH_CMT
        select SYS_SUPPORTS_SH_TMU
+       select SYSC_RMOBILE
 
 config ARCH_RZN1
        bool
@@ -297,4 +299,7 @@ config RST_RCAR
 config SYSC_RCAR
        bool "R-Car System Controller support" if COMPILE_TEST
 
+config SYSC_RMOBILE
+       bool "R-Mobile System Controller support" if COMPILE_TEST
+
 endif # SOC_RENESAS
index 3bdd7dbc38a9c7a3a9407454ff00d81bc1ad90d4..00764d5a60b33dfe6d998d9304a58ea5b3ca664d 100644 (file)
@@ -27,3 +27,4 @@ endif
 # Family
 obj-$(CONFIG_RST_RCAR)         += rcar-rst.o
 obj-$(CONFIG_SYSC_RCAR)                += rcar-sysc.o
+obj-$(CONFIG_SYSC_RMOBILE)     += rmobile-sysc.o