Skip to content

Commit 71d076c

Browse files
geertuhorms
authored andcommitted
ARM: shmobile: Enable PM and PM_GENERIC_DOMAINS for SoCs with PM Domains
All supported Renesas ARM SoCs (except for Emma Mobile EV2) have clock domains. Some SoCs also have power domains. To ensure proper operation of on-SoC modules, module clocks must be ungated, and power domains must be powered up when needed. Currently the user can choose to build a kernel with power management enabled or disabled: - If CONFIG_PM=y, power domains and/or module clocks are handled dynamically by Runtime PM and the generic power domain. - If CONFIG_PM=n, power domains are assumed to be powered up by reset state or by the boot loader, and module clocks are handled by the legacy clock domain on driver (un)bind. The latter is implemented using a platform bus notifier, which applies not only to all on-SoC devices, but to all platform devices present in the system. To remove the dependency on implicit assumptions, and to get rid of the peculiarities of the legacy clock domain, enable CONFIG_PM and CONFIG_PM_GENERIC_DOMAINS unconditionally, for all Renesas ARM SoCs with clock and/or power domains. This does cause an increase in kernel size. Given bloat-o-meter reports a modest increase of 26 KiB for an RZ/A1H kernel, this should not be a problem, even when used on RZ/A1H with XIP and internal RAM only. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1 parent c58b31a commit 71d076c

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎arch/arm/mach-shmobile/Kconfig‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,30 @@ config ARCH_SHMOBILE_MULTI
66

77
config PM_RCAR
88
bool
9-
select PM_GENERIC_DOMAINS if PM
9+
select PM
10+
select PM_GENERIC_DOMAINS
1011

1112
config PM_RMOBILE
1213
bool
14+
select PM
1315
select PM_GENERIC_DOMAINS
1416

1517
config ARCH_RCAR_GEN1
1618
bool
17-
select PM_RCAR if PM || SMP
19+
select PM_RCAR
1820
select RENESAS_INTC_IRQPIN
1921
select SYS_SUPPORTS_SH_TMU
2022

2123
config ARCH_RCAR_GEN2
2224
bool
23-
select PM_RCAR if PM || SMP
25+
select PM_RCAR
2426
select RENESAS_IRQC
2527
select SYS_SUPPORTS_SH_CMT
2628
select PCI_DOMAINS if PCI
2729

2830
config ARCH_RMOBILE
2931
bool
30-
select PM_RMOBILE if PM
32+
select PM_RMOBILE
3133
select SYS_SUPPORTS_SH_CMT
3234
select SYS_SUPPORTS_SH_TMU
3335

@@ -55,7 +57,8 @@ config ARCH_EMEV2
5557

5658
config ARCH_R7S72100
5759
bool "RZ/A1H (R7S72100)"
58-
select PM_GENERIC_DOMAINS if PM
60+
select PM
61+
select PM_GENERIC_DOMAINS
5962
select SYS_SUPPORTS_SH_MTU2
6063

6164
config ARCH_R8A73A4

0 commit comments

Comments
 (0)