2 * PM domain driver for Keystone2 devices
4 * Copyright 2013 Texas Instruments, Inc.
5 * Santosh Shilimkar <santosh.shillimkar@ti.com>
7 * Based on Kevins work on DAVINCI SOCs
8 * Kevin Hilman <khilman@linaro.org>
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms and conditions of the GNU General Public License,
12 * version 2, as published by the Free Software Foundation.
15 #include <linux/init.h>
16 #include <linux/pm_runtime.h>
17 #include <linux/pm_clock.h>
18 #include <linux/platform_device.h>
19 #include <linux/clk-provider.h>
22 static struct dev_pm_domain keystone_pm_domain = {
24 USE_PM_CLK_RUNTIME_OPS
25 USE_PLATFORM_PM_SLEEP_OPS
29 static struct pm_clk_notifier_block platform_domain_notifier = {
30 .pm_domain = &keystone_pm_domain,
33 static const struct of_device_id of_keystone_table[] = {
34 {.compatible = "ti,keystone"},
35 { /* end of list */ },
38 int __init keystone_pm_runtime_init(void)
40 struct device_node *np;
42 np = of_find_matching_node(NULL, of_keystone_table);
46 pm_clk_add_notifier(&platform_bus_type, &platform_domain_notifier);