Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: shmobile: R-Mobile: Move pm-rmobile to drivers/soc/renesas/

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>

authored by

Geert Uytterhoeven and committed by
Simon Horman
2ed29e15 445aeb08

+7 -7
-5
arch/arm/mach-shmobile/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - config PM_RMOBILE 3 - bool 4 - select PM 5 - select PM_GENERIC_DOMAINS 6 - 7 2 menuconfig ARCH_RENESAS 8 3 bool "Renesas ARM SoCs" 9 4 depends on ARCH_MULTI_V7 && MMU
-1
arch/arm/mach-shmobile/Makefile
··· 35 35 36 36 # PM objects 37 37 obj-$(CONFIG_SUSPEND) += suspend.o 38 - obj-$(CONFIG_PM_RMOBILE) += pm-rmobile.o 39 38 obj-$(CONFIG_ARCH_RCAR_GEN2) += pm-rcar-gen2.o 40 39 41 40 # Framework support
arch/arm/mach-shmobile/pm-rmobile.c drivers/soc/renesas/rmobile-sysc.c
+6 -1
drivers/soc/renesas/Kconfig
··· 34 34 35 35 config ARCH_RMOBILE 36 36 bool 37 - select PM_RMOBILE 37 + select PM 38 + select PM_GENERIC_DOMAINS 38 39 select SYS_SUPPORTS_SH_CMT 39 40 select SYS_SUPPORTS_SH_TMU 41 + select SYSC_RMOBILE 40 42 41 43 config ARCH_RZN1 42 44 bool ··· 298 296 299 297 config SYSC_RCAR 300 298 bool "R-Car System Controller support" if COMPILE_TEST 299 + 300 + config SYSC_RMOBILE 301 + bool "R-Mobile System Controller support" if COMPILE_TEST 301 302 302 303 endif # SOC_RENESAS
+1
drivers/soc/renesas/Makefile
··· 27 27 # Family 28 28 obj-$(CONFIG_RST_RCAR) += rcar-rst.o 29 29 obj-$(CONFIG_SYSC_RCAR) += rcar-sysc.o 30 + obj-$(CONFIG_SYSC_RMOBILE) += rmobile-sysc.o