diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-02-17 10:31:39 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2015-04-27 00:08:12 -0400 |
commit | 41b4b3bc7905615f7617c88bf9cf4b3b04bda78f (patch) | |
tree | f0f20b028e2ba59f5b24317d8b8ff5e6a9b3cc55 | |
parent | b787f68c36d49bb1d9236f403813641efa74a031 (diff) |
drivers: sh: Disable PM runtime for multi-platform sh73a0 with genpd
If the default PM domain using PM_CLK is used for PM runtime, the real PM
domain(s) cannot be registered from DT later.
Hence do not enable it when running a multi-platform kernel with genpd
support on an sh73a0. The R-Mobile PM domain driver will take care of
PM runtime management of the module clocks.
The default PM domain is still needed for:
- platforms without genpd support,
- the legacy (non-DT) case, where genpd may take over later, except
for the C5 "always on" PM domain.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | drivers/sh/pm_runtime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sh/pm_runtime.c b/drivers/sh/pm_runtime.c index cd4c293f0dd0..6b16a67ba618 100644 --- a/drivers/sh/pm_runtime.c +++ b/drivers/sh/pm_runtime.c | |||
@@ -83,6 +83,7 @@ static int __init sh_pm_runtime_init(void) | |||
83 | !of_machine_is_compatible("renesas,r8a73a4") && | 83 | !of_machine_is_compatible("renesas,r8a73a4") && |
84 | #ifndef CONFIG_PM_GENERIC_DOMAINS_OF | 84 | #ifndef CONFIG_PM_GENERIC_DOMAINS_OF |
85 | !of_machine_is_compatible("renesas,r8a7740") && | 85 | !of_machine_is_compatible("renesas,r8a7740") && |
86 | !of_machine_is_compatible("renesas,sh73a0") && | ||
86 | #endif | 87 | #endif |
87 | !of_machine_is_compatible("renesas,r8a7778") && | 88 | !of_machine_is_compatible("renesas,r8a7778") && |
88 | !of_machine_is_compatible("renesas,r8a7779") && | 89 | !of_machine_is_compatible("renesas,r8a7779") && |
@@ -91,8 +92,7 @@ static int __init sh_pm_runtime_init(void) | |||
91 | !of_machine_is_compatible("renesas,r8a7792") && | 92 | !of_machine_is_compatible("renesas,r8a7792") && |
92 | !of_machine_is_compatible("renesas,r8a7793") && | 93 | !of_machine_is_compatible("renesas,r8a7793") && |
93 | !of_machine_is_compatible("renesas,r8a7794") && | 94 | !of_machine_is_compatible("renesas,r8a7794") && |
94 | !of_machine_is_compatible("renesas,sh7372") && | 95 | !of_machine_is_compatible("renesas,sh7372")) |
95 | !of_machine_is_compatible("renesas,sh73a0")) | ||
96 | return 0; | 96 | return 0; |
97 | } | 97 | } |
98 | 98 | ||