This source file includes following definitions.
- davinci_pm_runtime_init
1
2
3
4
5
6
7
8
9
10
11
12 #include <linux/init.h>
13 #include <linux/pm_runtime.h>
14 #include <linux/pm_clock.h>
15 #include <linux/platform_device.h>
16 #include <linux/of.h>
17
18 static struct dev_pm_domain davinci_pm_domain = {
19 .ops = {
20 USE_PM_CLK_RUNTIME_OPS
21 USE_PLATFORM_PM_SLEEP_OPS
22 },
23 };
24
25 static struct pm_clk_notifier_block platform_bus_notifier = {
26 .pm_domain = &davinci_pm_domain,
27 .con_ids = { "fck", "master", "slave", NULL },
28 };
29
30 static int __init davinci_pm_runtime_init(void)
31 {
32 if (of_have_populated_dt())
33 return 0;
34
35
36 pm_clk_add_notifier(&platform_bus_type, &platform_bus_notifier);
37
38 return 0;
39 }
40 core_initcall(davinci_pm_runtime_init);