Merge branch 'fixes-base' into fixes
[deliverable/linux.git] / arch / arm / mach-omap1 / pm_bus.c
CommitLineData
e933ec7c
KH
1/*
2 * Runtime PM support code for OMAP1
3 *
4 * Author: Kevin Hilman, Deep Root Systems, LLC
5 *
6 * Copyright (C) 2010 Texas Instruments, Inc.
7 *
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without any
10 * warranty of any kind, whether express or implied.
11 */
12#include <linux/init.h>
13#include <linux/kernel.h>
14#include <linux/io.h>
15#include <linux/pm_runtime.h>
b5e8d269 16#include <linux/pm_clock.h>
e933ec7c
KH
17#include <linux/platform_device.h>
18#include <linux/mutex.h>
19#include <linux/clk.h>
20#include <linux/err.h>
21
47ba7099
PW
22#include "soc.h"
23
564b905a 24static struct dev_pm_domain default_pm_domain = {
600b776e 25 .ops = {
2d3dc933 26 USE_PM_CLK_RUNTIME_OPS
600b776e
RW
27 USE_PLATFORM_PM_SLEEP_OPS
28 },
29};
e933ec7c 30
600b776e 31static struct pm_clk_notifier_block platform_bus_notifier = {
2d3dc933 32 .pm_domain = &default_pm_domain,
600b776e 33 .con_ids = { "ick", "fck", NULL, },
e933ec7c
KH
34};
35
36static int __init omap1_pm_runtime_init(void)
37{
7f9187c2
TL
38 if (!cpu_class_is_omap1())
39 return -ENODEV;
40
3d5c3036 41 pm_clk_add_notifier(&platform_bus_type, &platform_bus_notifier);
e933ec7c
KH
42
43 return 0;
44}
45core_initcall(omap1_pm_runtime_init);
e9e35c5a 46
This page took 0.283406 seconds and 5 git commands to generate.