@@ -11,7 +11,7 @@ obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o
obj-$(CONFIG_OMAP_32K_TIMER) += timer32k.o
# Power Management
-obj-$(CONFIG_PM) += pm.o sleep.o
+obj-$(CONFIG_PM) += pm.o sleep.o pm_runtime.o
# DSP
obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox_mach.o
new file mode 100644
@@ -0,0 +1,18 @@
+/*
+ * Runtime PM support code for TI OMAP1
+ *
+ * Copyright (C) 2011 Texas Instruments, Inc.
+ * Author: Kevin Hilman <khilman@ti.com>
+ *
+ */
+#include <linux/kernel.h>
+#include <linux/init.h>
+
+#include <asm/pm_runtime.h>
+
+static int __init omap1_pm_runtime_init(void)
+{
+ pm_runtime_clock_init();
+ return 0;
+}
+core_initcall(omap1_pm_runtime_init);
new file mode 100644
@@ -0,0 +1,23 @@
+/*
+ * arch/arm/mach-shmobile/pm_runtime.c
+ *
+ * Runtime PM support code for SuperH Mobile ARM
+ *
+ * Copyright (C) 2009-2010 Magnus Damm
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ */
+
+#include <linux/kernel.h>
+#include <linux/init.h>
+
+#include <asm/pm_runtime.h>
+
+static int __init sh_pm_runtime_init(void)
+{
+ pm_runtime_clock_init();
+ return 0;
+}
+core_initcall(sh_pm_runtime_init);
Signed-off-by: Kevin Hilman <khilman@ti.com> --- arch/arm/mach-omap1/Makefile | 2 +- arch/arm/mach-omap1/pm_runtime.c | 18 ++++++++++++++++++ arch/arm/mach-shmobile/pm_runtime.c | 23 +++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-omap1/pm_runtime.c create mode 100644 arch/arm/mach-shmobile/pm_runtime.c