enable common clkdev
author黄涛 <huangtao@rock-chips.com>
Fri, 23 Apr 2010 09:53:52 +0000 (09:53 +0000)
committer黄涛 <huangtao@rock-chips.com>
Mon, 21 Jun 2010 05:34:47 +0000 (13:34 +0800)
arch/arm/Kconfig
arch/arm/mach-rk2818/include/mach/clkdev.h [new file with mode: 0755]

index 4c21765ecb7139f0092f34476e2eef1195ab9cba..ec57b095f1eece079a7893b91fd8944f655297a3 100644 (file)
@@ -705,6 +705,8 @@ config ARCH_RK2818
         bool "Rockchip soc rk2818"
         select CPU_ARM926T
         select CPU_CP15_MMU
+       select HAVE_CLK
+       select COMMON_CLKDEV
         select GENERIC_TIME
         select GENERIC_CLOCKEVENTS
        help
diff --git a/arch/arm/mach-rk2818/include/mach/clkdev.h b/arch/arm/mach-rk2818/include/mach/clkdev.h
new file mode 100755 (executable)
index 0000000..730c49d
--- /dev/null
@@ -0,0 +1,13 @@
+#ifndef __MACH_CLKDEV_H
+#define __MACH_CLKDEV_H
+
+static inline int __clk_get(struct clk *clk)
+{
+       return 1;
+}
+
+static inline void __clk_put(struct clk *clk)
+{
+}
+
+#endif