1 // SPDX-License-Identifier: GPL-2.0-only
3 * PM domain driver for Keystone2 devices
5 * Copyright 2013 Texas Instruments, Inc.
6 * Santosh Shilimkar <santosh.shillimkar@ti.com>
8 * Based on Kevins work on DAVINCI SOCs
9 * Kevin Hilman <khilman@linaro.org>
12 #include <linux/init.h>
13 #include <linux/pm_runtime.h>
14 #include <linux/pm_clock.h>
15 #include <linux/platform_device.h>
20 static struct dev_pm_domain keystone_pm_domain
= {
22 USE_PM_CLK_RUNTIME_OPS
23 USE_PLATFORM_PM_SLEEP_OPS
27 static struct pm_clk_notifier_block platform_domain_notifier
= {
28 .pm_domain
= &keystone_pm_domain
,
32 static const struct of_device_id of_keystone_table
[] = {
33 {.compatible
= "ti,k2hk"},
34 {.compatible
= "ti,k2e"},
35 {.compatible
= "ti,k2l"},
36 { /* end of list */ },
39 int __init
keystone_pm_runtime_init(void)
41 struct device_node
*np
;
43 np
= of_find_matching_node(NULL
, of_keystone_table
);
47 pm_clk_add_notifier(&platform_bus_type
, &platform_domain_notifier
);