1 // SPDX-License-Identifier: GPL-2.0-only
3 * Runtime PM support code for OMAP1
5 * Author: Kevin Hilman, Deep Root Systems, LLC
7 * Copyright (C) 2010 Texas Instruments, Inc.
9 #include <linux/init.h>
10 #include <linux/kernel.h>
12 #include <linux/pm_runtime.h>
13 #include <linux/pm_clock.h>
14 #include <linux/platform_device.h>
15 #include <linux/mutex.h>
16 #include <linux/clk.h>
17 #include <linux/err.h>
21 static struct dev_pm_domain default_pm_domain
= {
23 USE_PM_CLK_RUNTIME_OPS
24 USE_PLATFORM_PM_SLEEP_OPS
28 static struct pm_clk_notifier_block platform_bus_notifier
= {
29 .pm_domain
= &default_pm_domain
,
30 .con_ids
= { "ick", "fck", NULL
, },
33 static int __init
omap1_pm_runtime_init(void)
35 if (!cpu_class_is_omap1())
38 pm_clk_add_notifier(&platform_bus_type
, &platform_bus_notifier
);
42 core_initcall(omap1_pm_runtime_init
);