aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/pm-rmobile.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-shmobile/pm-rmobile.c')
-rw-r--r--arch/arm/mach-shmobile/pm-rmobile.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c
index 682575a2243c..d37d368434da 100644
--- a/arch/arm/mach-shmobile/pm-rmobile.c
+++ b/arch/arm/mach-shmobile/pm-rmobile.c
@@ -167,4 +167,20 @@ void rmobile_add_device_to_domain_td(const char *domain_name,
167 if (pm_clk_no_clocks(dev)) 167 if (pm_clk_no_clocks(dev))
168 pm_clk_add(dev, NULL); 168 pm_clk_add(dev, NULL);
169} 169}
170
171void rmobile_add_devices_to_domains(struct pm_domain_device data[],
172 int size)
173{
174 struct gpd_timing_data latencies = {
175 .stop_latency_ns = DEFAULT_DEV_LATENCY_NS,
176 .start_latency_ns = DEFAULT_DEV_LATENCY_NS,
177 .save_state_latency_ns = DEFAULT_DEV_LATENCY_NS,
178 .restore_state_latency_ns = DEFAULT_DEV_LATENCY_NS,
179 };
180 int j;
181
182 for (j = 0; j < size; j++)
183 rmobile_add_device_to_domain_td(data[j].domain_name,
184 data[j].pdev, &latencies);
185}
170#endif /* CONFIG_PM */ 186#endif /* CONFIG_PM */