linux/drivers/sh
Geert Uytterhoeven cbc41d0a76 drivers: sh: Disable PM runtime for multi-platform ARM with genpd
If the default PM Domain using PM_CLK is used for PM runtime, the real
Clock Domain cannot be registered from DT later.

Hence do not enable it when running a multi-platform kernel with genpd
support on R-Car or RZ.  The CPG/MSTP Clock Domain driver will take care
of PM runtime management of the module clocks.

Now most multi-platform ARM shmobile platforms (SH-Mobile, R-Mobile,
R-Car, RZ) use DT-based PM Domains to take care of PM runtime management
of the module clocks, simplify the platform logic by replacing the
explicit SoC checks by a single check for the presence of MSTP clocks in
DT.

Backwards-compatiblity with old DTs (mainly for R-Car Gen2) is provided
by checking for the presence of a "#power-domain-cells" property in DT.

The default PM Domain is still needed for:
  - backwards-compatibility with old DTs that lack PM Domain properties,
  - the CONFIG_PM=n case,
  - legacy (non-DT) ARM/shmobile platforms without genpd support
    (r8a7778, r8a7779),
  - legacy SuperH.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
2015-09-14 10:20:23 +09:00
..
clk sh: clk: Use cpufreq_for_each_valid_entry macro for iteration 2014-04-30 00:07:00 +02:00
intc sh/intc: Prepare irq flow handlers for irq argument removal 2015-07-29 10:08:09 +02:00
maple sh: Add module.h to arch/sh specific files as required. 2011-10-31 19:31:04 -04:00
superhyway sh: struct device - replace bus_id with dev_name(), dev_set_name() 2009-03-24 16:38:21 -07:00
Kconfig sh-pfc: Move driver from drivers/sh/ to drivers/pinctrl/ 2013-01-25 09:24:25 +09:00
Makefile sh: intc: Confine SH_INTC to platforms that need it 2014-08-22 12:28:16 +09:00
pm_runtime.c drivers: sh: Disable PM runtime for multi-platform ARM with genpd 2015-09-14 10:20:23 +09:00